-
Notifications
You must be signed in to change notification settings - Fork 0
Events
Mantice edited this page Dec 19, 2023
·
2 revisions
There are currently two custom events:
MobCoinDropEvent and MobCoinShopOpenEvent
Listening to either event:
public class MobCoinDropListener implements Listener {
@EventHandler
public void onMobCoinDrop(MobCoinDropEvent event) {
}
}The MobCoinDropListener is called whenever a player kills a mob that is in mobs.yml!
You may modify the amount the mob dropped!
event.setAmount(), event.addAmount(), event.removeAmount(), or event.multiplyAmount().
You may also cancel the event!
public class MobCoinShopOpenListener implements Listener {
@EventHandler
public void onMobCoinShopOpen(MobCoinShopOpenEvent event) {
}
}The MobCoinShopOpenEvent is called whenever the shop is opened for a player.
You may cancel this event to change what happens when the player opens the shop or it is opened for them!
In case you decide to use a different plugin for the shop.