SteamWar/BauSystem
Archiviert
13
0

UserPerm
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-08-29 23:56:58 +02:00
Ursprung 03320028fc
Commit 40cb6da532

Datei anzeigen

@ -21,10 +21,7 @@ package de.steamwar.bausystem.commands;
import de.steamwar.bausystem.BauSystem;
import de.steamwar.command.SWCommand;
import de.steamwar.sql.SchematicNode;
import de.steamwar.sql.SchematicType;
import de.steamwar.sql.SteamwarUser;
import de.steamwar.sql.UserGroup;
import de.steamwar.sql.*;
import org.bukkit.entity.Player;
public class CommandLockschem extends SWCommand {
@ -35,13 +32,7 @@ public class CommandLockschem extends SWCommand {
@Register(help = true)
public void genericHelp(Player p, String... args) {
SteamwarUser steamwarUser = SteamwarUser.get(p.getUniqueId());
UserGroup userGroup = steamwarUser.getUserGroup();
if (userGroup != UserGroup.Admin &&
userGroup != UserGroup.Developer &&
userGroup != UserGroup.Moderator &&
userGroup != UserGroup.Supporter) {
if (!SteamwarUser.get(p.getUniqueId()).hasPerm(UserPerm.CHECK)) {
return;
}
@ -50,13 +41,7 @@ public class CommandLockschem extends SWCommand {
@Register
public void genericCommand(Player p, String owner, String schematicName) {
SteamwarUser steamwarUser = SteamwarUser.get(p.getUniqueId());
UserGroup userGroup = steamwarUser.getUserGroup();
if (userGroup != UserGroup.Admin &&
userGroup != UserGroup.Developer &&
userGroup != UserGroup.Moderator &&
userGroup != UserGroup.Supporter) {
if (!SteamwarUser.get(p.getUniqueId()).hasPerm(UserPerm.CHECK)) {
return;
}