Add "deltree" tool for removing floating trees.

This commit is contained in:
Moo0
2011-05-10 23:31:24 +01:00
parent 08daee3727
commit 0aba329cf5
3 changed files with 158 additions and 0 deletions

View File

@ -132,4 +132,21 @@ public class ToolCommands {
LocalSession session, LocalPlayer player, EditSession editSession)
throws WorldEditException {
}
@Command(
aliases = {"deltree"},
usage = "",
desc = "Floating tree remover tool",
min = 0,
max = 0
)
@CommandPermissions({"worldedit.tool.deltree"})
public static void deltree(CommandContext args, WorldEdit we,
LocalSession session, LocalPlayer player, EditSession editSession)
throws WorldEditException {
session.setTool(player.getItemInHand(), new FloatingTreeRemover());
player.print("Floating tree remover tool bound to "
+ ItemType.toHeldName(player.getItemInHand()) + ".");
}
}