mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-22 10:15:54 +01:00
Spawn egg permission check for 1.12-
This commit is contained in:
parent
55c5dcbd05
commit
aae24ab1a0
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user