Bentobox: Hook into EpicHoppers

Created on 25 Oct 2019  路  9Comments  路  Source: BentoBoxWorld/BentoBox

Additional context

Can you hook bentobox to epichopper plugin?
Because players who are not members of the island can influence the hoppers.

Done Addon

Most helpful comment

We would happily support your SkyBlock plugin :P If you can list the requirements you would need from a hook we can get right to that ^-^

All 9 comments

Yes that is required. I'm not using epichoppers cuz of that

Premium plugin, hu? Well, looks like the code is open source so I might have a look at that, but keep in mind a few things: I won't be able to test the integration nor will it be easy for us to keep it up to date. Songoda has a pretty long background of breaking their API unpredictably.

By looking at EpicHopper plugin I do not see an ability to support it from the BentoBox side.
Even more, I did not found anything that would allow protecting hoppers from any protection plugin (like askyblock, uskyblock, factions and worldguard), except their skyblock.
At least, I do not find it.

So, probably you should ask them to implement a hook.

It looks like after their system redesign they forgot to implement them.
By small investigation:
since 4.0 alpha version, epicHopper does not support any other protection plugin besides its own skyblock. Any outside API access is removed.

BentoBox cannot do anything here. You need to ask EpicHopper developers to implement any integration.

I guess they won't do that, since, well, they wanna make money out of their own Skyblock plugin - that's quite obvious. Why would they grant us the ability to "compete" with them? That's the harsh rule of money, I'm afraid.

We would happily support your SkyBlock plugin :P If you can list the requirements you would need from a hook we can get right to that ^-^

I would prefer and cancelable event on each epichopper interaction.
The same as Spigot is calling events and plugin creators could cancel them.

This would allow to not only integrate into BentoBox, but also any addons. However, it will hit performance.

But that is my idea... you do not need to follow it :)

This looks good, and we can start to implement our side now.

~But I think InteractListeners should also contain an event, as otherwise, everyone will be able to click interaction.~

This is a simple implementation as a separate addon:
https://github.com/BONNe/EpicHooks

I did it in addon as I do not think bentobox should catch generic events with some name, as someone (like me) definitely could create an event with the same name.
So this is a separate addon, with a separate protection flag that has EpicHopper plugin as a hard dependency to avoid catching event that does not exist.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wellnesscookie picture wellnesscookie  路  6Comments

SirvydasS picture SirvydasS  路  6Comments

OverBrave picture OverBrave  路  4Comments

rudipratm picture rudipratm  路  4Comments

HuJunwei23333 picture HuJunwei23333  路  6Comments