Update ModifyCommand to Administration Permission and PortalCommand
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Ursprung
905045a1ae
Commit
7be2bbf492
@ -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());
|
||||
|
@ -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
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren