mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2024-11-28 12:35:41 +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
|
return; // no need to check further
|
||||||
case MONSTER_EGG:
|
case MONSTER_EGG: // don't add MONSTER_EGGS here
|
||||||
case MONSTER_EGGS:
|
|
||||||
if (permissionDenied(player, "modifyworld.spawn", ((SpawnEgg)player.getItemInHand().getData()).getSpawnedType())) {
|
if (permissionDenied(player, "modifyworld.spawn", ((SpawnEgg)player.getItemInHand().getData()).getSpawnedType())) {
|
||||||
event.setUseItemInHand(Result.DENY);
|
event.setUseItemInHand(Result.DENY);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user