mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-05 09:21:27 +01:00
Fixed lacking of permission still letting players place the blocks
This commit is contained in:
parent
856215ab97
commit
8fa24f7cd9
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user