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
|
@Register
|
||||||
public void modify(Player player) {
|
public void modify(Player player) {
|
||||||
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
||||||
if(!user.hasPerm(UserPerm.BUILD))
|
if(!user.hasPerm(UserPerm.ADMINISTRATION)) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(modifying(player)) {
|
if(modifying(player)) {
|
||||||
modifying.remove(player);
|
modifying.remove(player);
|
||||||
@ -79,7 +80,7 @@ public class ModifyCommand extends SWCommand implements Listener {
|
|||||||
@Register("waitinghallspawn")
|
@Register("waitinghallspawn")
|
||||||
public void setWaitingHallSpawn(Player player) {
|
public void setWaitingHallSpawn(Player player) {
|
||||||
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
||||||
if(!user.hasPerm(UserPerm.BUILD))
|
if(!user.hasPerm(UserPerm.ADMINISTRATION))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
LobbySystem.config().setWaitingHallSpawn(player.getLocation());
|
LobbySystem.config().setWaitingHallSpawn(player.getLocation());
|
||||||
|
@ -30,7 +30,7 @@ public class PortalCommand extends SWCommand {
|
|||||||
|
|
||||||
public static boolean noPermissions(Player player) {
|
public static boolean noPermissions(Player player) {
|
||||||
SteamwarUser steamwarUser = SteamwarUser.get(player.getUniqueId());
|
SteamwarUser steamwarUser = SteamwarUser.get(player.getUniqueId());
|
||||||
return !steamwarUser.hasPerm(UserPerm.BUILD);
|
return !steamwarUser.hasPerm(UserPerm.ADMINISTRATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Register
|
@Register
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren