浏览代码

Actually use the new /addxp registration function

GJ 12 年之前
父节点
当前提交
b6b03369f7
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/main/java/com/gmail/nossr50/mcMMO.java

+ 1 - 2
src/main/java/com/gmail/nossr50/mcMMO.java

@@ -21,7 +21,6 @@ import com.gmail.nossr50.util.blockmeta.chunkmeta.ChunkManagerFactory;
 import com.gmail.nossr50.chat.commands.ACommand;
 import com.gmail.nossr50.chat.commands.PCommand;
 import com.gmail.nossr50.commands.CommandRegistrationHelper;
-import com.gmail.nossr50.commands.admin.AddxpCommand;
 import com.gmail.nossr50.commands.admin.McgodCommand;
 import com.gmail.nossr50.commands.admin.McrefreshCommand;
 import com.gmail.nossr50.commands.admin.MmoeditCommand;
@@ -344,7 +343,7 @@ public class mcMMO extends JavaPlugin {
         getCommand("ptp").setExecutor(new PtpCommand(this));
 
         // Other commands
-        getCommand("addxp").setExecutor(new AddxpCommand());
+        CommandRegistrationHelper.registerAddxpCommand();
         CommandRegistrationHelper.registerAddlevelsCommand();
         getCommand("mmoedit").setExecutor(new MmoeditCommand());
         getCommand("inspect").setExecutor(new InspectCommand());