From a6144f6dee4d4d741a6472636c65ba0a950085e4 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Tue, 15 Jan 2013 22:24:46 -0500 Subject: [PATCH] Hehe no silly hat for me --- .../java/com/gmail/nossr50/commands/mc/McremoveCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/mc/McremoveCommand.java b/src/main/java/com/gmail/nossr50/commands/mc/McremoveCommand.java index d2ec6e1e1..c2834df93 100644 --- a/src/main/java/com/gmail/nossr50/commands/mc/McremoveCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/mc/McremoveCommand.java @@ -51,10 +51,10 @@ public class McremoveCommand implements CommandExecutor { /* MySQL */ if (Config.getInstance().getUseMySQL()) { Database database = mcMMO.getPlayerDatabase(); - int success = 0; - success = database.update("DELETE FROM " + tablePrefix + "users WHERE " + tablePrefix + "users.user = '" + playerName + "'"); + int affected = 0; + affected = database.update("DELETE FROM " + tablePrefix + "users WHERE " + tablePrefix + "users.user = '" + playerName + "'"); - if (success > 0) { + if (affected > 0) { sender.sendMessage(success); } else { sender.sendMessage(LocaleLoader.getString("Commands.DoesNotExist"));