--- miscJava/minecraft-plugins/hoeruputils/src/HoerupUtils.java 2010/12/01 08:53:44 1200 +++ miscJava/minecraft-plugins/hoeruputils/src/HoerupUtils.java 2010/12/04 11:38:36 1201 @@ -134,6 +134,8 @@ final static int BLOCK_GRASS = 2; final static int BLOCK_DIRT = 3; + private HashMap commands = new HashMap(); + //http://www.minecraftforum.net/viewtopic.php?f=35&t=14739 @@ -206,8 +208,20 @@ if (! player.canUseCommand(split[0]) ) { return false; } + + if ( split[0].equals("/levelarea") || split[0].equals("/la") || split[0].equals("/slopearea") || split[0].equals("/fillarea") || split[0].equals("/setsurface") ) { + commands.put(player.getName(), split); + } - if( split[0].equals("/setpos") && player.canUseCommand("/setpos") ) { + if ( split[0].equals("//") ) { + String cmd[] = commands.get(player.getName() ); + if (cmd != null) { + onCommand(player, commands.get(player.getName() ) ); + } else { + player.sendMessage("//: no recorded command found"); + } + return true; + } else if( split[0].equals("/setpos") && player.canUseCommand("/setpos") ) { setPos(player, split); return true; } else if ( split[0].equals("/whereis" ) && player.canUseCommand("/whereis")) {