From 7777eaac807b2d619ed7bb0311cd8eed138e2ef5 Mon Sep 17 00:00:00 2001 From: Relluem94 Date: Wed, 28 Feb 2024 21:12:45 +0100 Subject: [PATCH] RE-164 Cleanup of Codebase --- .../server/spigot/essentials/commands/PermissionsGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/relluem94/minecraft/server/spigot/essentials/commands/PermissionsGroup.java b/src/main/java/de/relluem94/minecraft/server/spigot/essentials/commands/PermissionsGroup.java index aa7ab330..1b19c929 100644 --- a/src/main/java/de/relluem94/minecraft/server/spigot/essentials/commands/PermissionsGroup.java +++ b/src/main/java/de/relluem94/minecraft/server/spigot/essentials/commands/PermissionsGroup.java @@ -74,7 +74,7 @@ else if (isCMDBlock(sender) || isConsole(sender)) { private static GroupEntry checkGroupExists(String groupName, Player p) { GroupEntry g = Groups.getGroup(groupName); - if(g == null){ + if(Groups.groupExists(groupName)){ p.sendMessage(PLUGIN_COMMAND_SETGROUP_GROUP_NOT_FOUND); return null; }