Fixed lacking of permission still letting players place the blocks

This commit is contained in:
OmerBenGera 2020-09-14 18:46:01 +03:00
parent 856215ab97
commit 8fa24f7cd9

View File

@ -34,6 +34,7 @@ public final class BlocksListener implements Listener {
return; return;
if(!e.getPlayer().hasPermission("wildloaders.use")) { if(!e.getPlayer().hasPermission("wildloaders.use")) {
e.setCancelled(true);
Locale.NO_PLACE_PERMISSION.send(e.getPlayer()); Locale.NO_PLACE_PERMISSION.send(e.getPlayer());
return; return;
} }