ZotCoreLoader

- исправлено создание комманд
This commit is contained in:
Reider745
2023-12-01 07:45:35 +03:00
parent 6d13eb711f
commit e5c645ac54
3 changed files with 7 additions and 3 deletions
@@ -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