OK, so I've got a database running that stores a players "friends" list. Using the chat command /add friend PlayerName this gets the players UID with;
Player p = getServer.getPlayer("playername");
String friendUID = (String)p.getUID();
(or something like that!)
Here comes the perplexing part!
Now say the players "friend" goes off and destroys their stuff whilst they are not online. When they next login they want to remove the player with something like /remove friend PlayerName now clearly this is only going to be possible *if* the "bad" player is logged in at the same time to enable the server to work out the UID.
Now, I could execute this with a command such as /remove friend PlayerNameUID (like 28372728294828282) but that's going to be very difficult for a user to do.
Can anyone think of any magic way to make this easier?
(I'm half way thinking a GUI is going to be the only way. . .)