From 7be2bbf492fdef294ee7caa33d842599d0205b0a Mon Sep 17 00:00:00 2001 From: yoyosource Date: Wed, 12 Jun 2024 19:47:44 +0200 Subject: [PATCH] Update ModifyCommand to Administration Permission and PortalCommand --- src/de/steamwar/lobby/command/ModifyCommand.java | 5 +++-- src/de/steamwar/lobby/command/PortalCommand.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/de/steamwar/lobby/command/ModifyCommand.java b/src/de/steamwar/lobby/command/ModifyCommand.java index 49297a2..d782112 100644 --- a/src/de/steamwar/lobby/command/ModifyCommand.java +++ b/src/de/steamwar/lobby/command/ModifyCommand.java @@ -51,8 +51,9 @@ public class ModifyCommand extends SWCommand implements Listener { @Register public void modify(Player player) { SteamwarUser user = SteamwarUser.get(player.getUniqueId()); - if(!user.hasPerm(UserPerm.BUILD)) + if(!user.hasPerm(UserPerm.ADMINISTRATION)) { return; + } if(modifying(player)) { modifying.remove(player); @@ -79,7 +80,7 @@ public class ModifyCommand extends SWCommand implements Listener { @Register("waitinghallspawn") public void setWaitingHallSpawn(Player player) { SteamwarUser user = SteamwarUser.get(player.getUniqueId()); - if(!user.hasPerm(UserPerm.BUILD)) + if(!user.hasPerm(UserPerm.ADMINISTRATION)) return; LobbySystem.config().setWaitingHallSpawn(player.getLocation()); diff --git a/src/de/steamwar/lobby/command/PortalCommand.java b/src/de/steamwar/lobby/command/PortalCommand.java index d2264d2..5c8649b 100644 --- a/src/de/steamwar/lobby/command/PortalCommand.java +++ b/src/de/steamwar/lobby/command/PortalCommand.java @@ -30,7 +30,7 @@ public class PortalCommand extends SWCommand { public static boolean noPermissions(Player player) { SteamwarUser steamwarUser = SteamwarUser.get(player.getUniqueId()); - return !steamwarUser.hasPerm(UserPerm.BUILD); + return !steamwarUser.hasPerm(UserPerm.ADMINISTRATION); } @Register