Fixed spawn permission. close #59

This commit is contained in:
t3hk0d3 2012-11-04 01:29:04 +04:00
parent eb36ff3422
commit f8a976d339
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}