From e45aa885044409a1f7925c6606d0d3c3fa7fd611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Vis=C3=A9e?= Date: Sat, 21 Nov 2015 21:03:50 +0100 Subject: [PATCH] Fixed result not being returned --- src/main/java/fr/xephi/authme/util/Utils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/util/Utils.java b/src/main/java/fr/xephi/authme/util/Utils.java index aa1ba5c53..957a948f3 100644 --- a/src/main/java/fr/xephi/authme/util/Utils.java +++ b/src/main/java/fr/xephi/authme/util/Utils.java @@ -130,8 +130,9 @@ public class Utils { * False is also returned if groups aren't supported with the current permissions system. */ public static boolean setGroup(Player player, GroupType group) { + // Check whether the permissions check is enabled if(!Settings.isPermissionCheckEnabled) - return; + return false; // Get the permissions manager, and make sure it's valid PermissionsManager permsMan = plugin.getPermissionsManager();