From d4c37b2fc223eaf0c0b249877e8f46aeeb8df2fd Mon Sep 17 00:00:00 2001 From: Maxetto Date: Fri, 10 Jul 2015 23:03:09 +0200 Subject: [PATCH] Coding without Eclipse is hard! But that should do the trick. --- .../fr/xephi/authme/commands/AdminCommand.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/fr/xephi/authme/commands/AdminCommand.java b/src/main/java/fr/xephi/authme/commands/AdminCommand.java index fc4981eb3..7a56ca194 100644 --- a/src/main/java/fr/xephi/authme/commands/AdminCommand.java +++ b/src/main/java/fr/xephi/authme/commands/AdminCommand.java @@ -206,20 +206,20 @@ public class AdminCommand implements CommandExecutor { auth = plugin.database.getAuth(arguments[1].toLowerCase()); } catch (NullPointerException npe) { m.send(fSender, "unknown_user"); - return true; + return; } if (auth == null) { m.send(fSender, "unknown_user"); - return true; + return; } List accountList = plugin.database.getAllAuthsByName(auth); if (accountList.isEmpty() || accountList == null) { m.send(fSender, "user_unknown"); - return true; + return; } if (accountList.size() == 1) { fSender.sendMessage("[AuthMe] " + arguments[1] + " is a single account player"); - return true; + return; } int i = 0; for (String account : accountList) { @@ -246,16 +246,16 @@ public class AdminCommand implements CommandExecutor { String message = "[AuthMe] "; if (arguments[1] == null) { fSender.sendMessage("[AuthMe] Please put a valid IP"); - return true; + return; } List accountList = plugin.database.getAllAuthsByIp(arguments[1]); if (accountList.isEmpty() || accountList == null) { fSender.sendMessage("[AuthMe] This IP does not exist in the database"); - return true; + return; } if (accountList.size() == 1) { fSender.sendMessage("[AuthMe] " + arguments[1] + " is a single account player"); - return true; + return; } int i = 0; for (String account : accountList) {