From 69b7c3077f9dac37c45f877f752691887bcc350f Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 28 Feb 2012 12:53:27 -0800 Subject: [PATCH] Tweaked mcremove --- .../java/com/gmail/nossr50/commands/mc/McremoveCommand.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 79218ed02..7b4b21c53 100644 --- a/src/main/java/com/gmail/nossr50/commands/mc/McremoveCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/mc/McremoveCommand.java @@ -71,7 +71,7 @@ public class McremoveCommand implements CommandExecutor { +LoadProperties.MySQLtablePrefix+"experience WHERE " +LoadProperties.MySQLtablePrefix+"experience.user_id="+userId); - System.out.println("User "+playerName+" removed from MySQL DB!"); + sender.sendMessage("User "+playerName+" removed from MySQL DB!"); } else { //FlatFile removal //TODO: Properly remove users from FlatFile, it's going to be a huge bitch with how our FlatFile system works. Let's adopt SQLite support. @@ -81,6 +81,7 @@ public class McremoveCommand implements CommandExecutor { if(targetPlayer.isOnline()) { Users.getProfile(targetPlayer).resetAllData(); + sender.sendMessage("User "+playerName+" removed from FlatFile DB!"); } else { sender.sendMessage("[mcMMO] This command is not fully functional for FlatFile yet, the player needs to be online."); return true; @@ -106,6 +107,8 @@ public class McremoveCommand implements CommandExecutor { Users.removeUserByName(playerName); } + sender.sendMessage("[mcMMO] mcremove operation completed."); + return true; } } \ No newline at end of file