13
0

Merge pull request 'UserPerm' (#150) from userPerm into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #150
Reviewed-by: Chaoscaot <chaoscaot@zohomail.eu>
Dieser Commit ist enthalten in:
Chaoscaot 2023-08-30 00:19:18 +02:00
Commit 4e76cd654b

Datei anzeigen

@ -54,7 +54,7 @@ public class SchematicCommand extends SWCommand {
@Register(value = "togglepublic", noTabComplete = true)
public void togglePublicMode(Player player) {
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
if (!user.getUserGroup().isAdminGroup()) {
if (!user.hasPerm(UserPerm.ADMINISTRATION)) {
genericHelp(player);
return;
}