Spawn egg permission check for 1.12-

This commit is contained in:
Esophose 2019-08-15 00:36:26 -06:00
parent 55c5dcbd05
commit aae24ab1a0

View File

@ -587,7 +587,7 @@ public class Interact implements Listener {
player.updateInventory();
}
}
} else if (event.getItem().getType().name().contains("SPAWN_EGG")) {
} else if (event.getItem().getType().name().contains("SPAWN_EGG") || event.getItem().getType().name().equals("MONSTER_EGG")) {
if (!islandManager.hasPermission(player, block.getLocation(), "SpawnEgg")) {
event.setCancelled(true);