1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-21 11:13:00 +01:00

mcremove command is now fully functional for MySQL

This commit is contained in:
nossr50
2012-02-28 12:16:23 -08:00
parent 649ce1c147
commit 6cc22a3b63
16 changed files with 69 additions and 18 deletions

View File

@@ -90,6 +90,21 @@ public class Users {
players.remove(player);
}
}
public static void removeUserByName(String playerName)
{
Player target = null;
for(Player player : players.keySet())
{
PlayerProfile PP = players.get(player);
if(PP.getPlayerName().equals(playerName))
{
target = player;
}
}
players.remove(target);
}
public static PlayerProfile getProfile(Player player){
if(players.get(player) != null)