Tweaked mcremove

This commit is contained in:
nossr50 2012-02-28 12:53:27 -08:00
parent f158858262
commit 69b7c3077f

View File

@ -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;
}
}