Alowed performing undos from other player sessions, if they exist.

This commit is contained in:
zml2008
2011-08-29 14:24:35 -07:00
parent a3186c2ce4
commit 02d8acfa81
4 changed files with 54 additions and 7 deletions

View File

@ -173,6 +173,16 @@ public class WorldEdit {
commands.register(ToolCommands.class);
commands.register(UtilityCommands.class);
}
/*
* Gets the LocalSession for a player name if it exists
*
* @param player
* @return The session for the player, if it exists
*/
public LocalSession getSession(String player) {
return sessions.get(player);
}
/**
* Gets the WorldEdit session for a player.