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