Refactor EnginePermBuild to more suitable structure.

This commit is contained in:
ulumulu1510 committed 2017-07-17 12:56:34 +02:00
1 parent 093dbde473
commit edfabb7718
5 files changed
+313 -357

No files matched your search

@@ -53,11 +53,8 @@ public class EngineSpigot extends Engine
// Only care for armor stands.
if (entity.getType() != EntityType.ARMOR_STAND) return;
// If we can't use ...
if (EnginePermBuild.canPlayerUseEntity(player, entity, verboose)) return;
// ... block use.
event.setCancelled(true);
// If we can't use, block it
EnginePermBuild.useEntity(player, entity, verboose, event);
}
/*