From c47d57fbb6ba9bc7fbb1bd8b4feea3f0b465a897 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 30 Aug 2023 00:01:39 +0200 Subject: [PATCH] UserPerm --- .../commands/schematiccommand/SchematicCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/schematiccommand/SchematicCommand.java b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/schematiccommand/SchematicCommand.java index 2326777..6e005de 100644 --- a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/schematiccommand/SchematicCommand.java +++ b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/schematiccommand/SchematicCommand.java @@ -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; } -- 2.39.2