Change event priorities

This commit is contained in:
GeorgH93 2020-04-11 15:05:43 +02:00
parent 72e3b948a1
commit 785d56271c
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8

View File

@ -127,21 +127,21 @@ public void onJoin(PlayerJoinEvent event)
addItem(event.getPlayer());
}
@EventHandler
@EventHandler(priority = EventPriority.MONITOR)
public void onSpawn(PlayerRespawnEvent event)
{
if(plugin.isDisabled(event.getPlayer()) != WorldBlacklistMode.None) return;
addItem(event.getPlayer());
}
@EventHandler
@EventHandler(priority = EventPriority.MONITOR)
public void onWorldChange(PlayerChangedWorldEvent event)
{
if(plugin.isDisabled(event.getPlayer()) != WorldBlacklistMode.None) return;
addItem(event.getPlayer());
}
@EventHandler
@EventHandler(priority = EventPriority.MONITOR)
public void onInventoryClear(InventoryClearedEvent event)
{
if(plugin.isDisabled(event.getPlayer()) != WorldBlacklistMode.None) return;