ZotCoreLoader
- исправлено создание комманд
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
package com.reider745.commands;
|
||||
|
||||
import cn.nukkit.command.SimpleCommandMap;
|
||||
import com.reider745.InnerCoreServer;
|
||||
|
||||
public class CommandsHelper {
|
||||
public static void init(){
|
||||
InnerCoreServer.server.getCommandMap().register("innercore", new ModsListCommand());
|
||||
SimpleCommandMap map = InnerCoreServer.server.getCommandMap();
|
||||
map.register("innercore", new ModsListCommand());
|
||||
map.register("innercore", new CustomBlocksCommands());
|
||||
map.register("innercore", new CustomItemsCommands());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.reider745.item.ItemMethod;
|
||||
|
||||
public class CustomBlocksCommands extends Command {
|
||||
public CustomBlocksCommands() {
|
||||
super("mods", "get list custom blocks");
|
||||
super("custom_blocks", "get list custom blocks");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.reider745.item.ItemMethod;
|
||||
|
||||
public class CustomItemsCommands extends Command {
|
||||
public CustomItemsCommands() {
|
||||
super("mods", "get list custom items");
|
||||
super("custom_items", "get list custom items");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user