mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-01 14:38:46 +00:00
added perms.
This commit is contained in:
1 parent
5729a7b25b
commit
ff64f09a31
4 files changed
+12
-3
No files matched your search
@@ -57,6 +57,9 @@ public class BlockBreakListener implements Listener {
|
||||
if (!e.getPlayer().getGameMode().equals(GameMode.CREATIVE)) {
|
||||
return;
|
||||
}
|
||||
if (!e.getPlayer().hasPermission("builders.util.slabs")) {
|
||||
return;
|
||||
}
|
||||
Material type = e.getPlayer().getInventory().getItemInMainHand().getType();
|
||||
if (type.toString().toLowerCase().contains("slab")) {
|
||||
if (e.isCancelled()) {
|
||||
|
||||
@@ -59,6 +59,9 @@ public class IronTrapdoorListener implements Listener {
|
||||
if (!e.getPlayer().getGameMode().equals(GameMode.CREATIVE)) {
|
||||
return;
|
||||
}
|
||||
if (!e.getPlayer().hasPermission("builders.util.trapdoor")) {
|
||||
return;
|
||||
}
|
||||
if (!e.getAction().equals(Action.RIGHT_CLICK_BLOCK)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -68,6 +68,9 @@ public class TerracottaInteractListener implements Listener {
|
||||
if (!event.getPlayer().isSneaking()) {
|
||||
return;
|
||||
}
|
||||
if (!event.getPlayer().hasPermission("builders.util.terracotta")) {
|
||||
return;
|
||||
}
|
||||
Material type = event.getPlayer().getInventory().getItemInHand().getType();
|
||||
if (!(type.equals(Material.AIR))) {
|
||||
return;
|
||||
|
||||
@@ -65,11 +65,11 @@ commands:
|
||||
|
||||
permissions:
|
||||
builders.util.trapdoor:
|
||||
default: false
|
||||
default: true
|
||||
builders.util.slabs:
|
||||
default: false
|
||||
default: true
|
||||
builders.util.terracotta:
|
||||
default: false
|
||||
default: true
|
||||
builders.util.nightvision:
|
||||
default: false
|
||||
builders.util.noclip:
|
||||
|
||||
Reference in new issue
Block a user