Made things cleaner

This commit is contained in:
bm01
2012-06-25 14:30:55 +02:00
parent 76afd5a7ca
commit b8e9269488
5 changed files with 26 additions and 20 deletions

View File

@ -26,7 +26,7 @@ public class MmoupdateCommand implements CommandExecutor {
}
sender.sendMessage(ChatColor.GRAY + "Starting conversion..."); //TODO: Needs more locale.
Users.clearUsers();
Users.clearAll();
convertToMySQL();
for (Player x : plugin.getServer().getOnlinePlayers()) {

View File

@ -102,7 +102,7 @@ public class McremoveCommand implements CommandExecutor {
PlayerProfile playerProfile = Users.getProfile(player);
if (playerProfile != null) {
Users.getProfiles().remove(playerProfile);
Users.remove(player.getName());
if (player.isOnline()) {
Users.addUser((Player) player);