From 68c821d8a619c4e2f09f33ca6c2d7114c4fc06c8 Mon Sep 17 00:00:00 2001 From: zml2008 Date: Sun, 8 Jan 2012 21:11:13 -0800 Subject: [PATCH] Updated for new SpoutAPI command methods --- .../java/com/sk89q/worldedit/spout/SpoutServerInterface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/spout/SpoutServerInterface.java b/src/main/java/com/sk89q/worldedit/spout/SpoutServerInterface.java index 2a4383f89..a5a3cbc49 100644 --- a/src/main/java/com/sk89q/worldedit/spout/SpoutServerInterface.java +++ b/src/main/java/com/sk89q/worldedit/spout/SpoutServerInterface.java @@ -80,7 +80,7 @@ public class SpoutServerInterface extends ServerInterface { @Override public void onCommandRegistration(List commands) { for (Command command : commands) { - Spout.getGame().getRootCommand().sub(plugin, command.aliases()[0]) + Spout.getGame().getRootCommand().addSubCommand(plugin, command.aliases()[0]) .addAlias(command.aliases()).setRawExecutor(executor).closeSubCommand(); } }