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
1 changed files with 1 additions and 0 deletions

View File

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