mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-11-21 11:26:13 +01:00
Fixed spawn permission. close #59
This commit is contained in:
parent
eb36ff3422
commit
f8a976d339
@ -267,8 +267,7 @@ public class PlayerListener extends ModifyworldListener {
|
||||
}
|
||||
}
|
||||
return; // no need to check further
|
||||
case MONSTER_EGG:
|
||||
case MONSTER_EGGS:
|
||||
case MONSTER_EGG: // don't add MONSTER_EGGS here
|
||||
if (permissionDenied(player, "modifyworld.spawn", ((SpawnEgg)player.getItemInHand().getData()).getSpawnedType())) {
|
||||
event.setUseItemInHand(Result.DENY);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user