Search in sources :

Example 1 with AirshipSettingsCommand

use of ValkyrienWarfareBase.Command.AirshipSettingsCommand in project Valkyrien-Warfare-Revamped by ValkyrienWarfare.

the class ModCommands method registerCommands.

// There's some Strange bug with registering commands in the Mod File (The client loading server classes, and then freaking out). Best to just do them all in
// a separate class
public static void registerCommands(MinecraftServer server) {
    ServerCommandManager manager = (ServerCommandManager) server.getCommandManager();
    manager.registerCommand(new PhysSettingsCommand());
    manager.registerCommand(new AirshipSettingsCommand());
    manager.registerCommand(new AirshipMapCommand());
    manager.registerCommand(new ValkyrienWarfareHelpCommand());
}
Also used : ServerCommandManager(net.minecraft.command.ServerCommandManager) PhysSettingsCommand(ValkyrienWarfareBase.Command.PhysSettingsCommand) AirshipSettingsCommand(ValkyrienWarfareBase.Command.AirshipSettingsCommand) AirshipMapCommand(ValkyrienWarfareBase.Command.AirshipMapCommand) ValkyrienWarfareHelpCommand(ValkyrienWarfareBase.Command.ValkyrienWarfareHelpCommand)

Aggregations

AirshipMapCommand (ValkyrienWarfareBase.Command.AirshipMapCommand)1 AirshipSettingsCommand (ValkyrienWarfareBase.Command.AirshipSettingsCommand)1 PhysSettingsCommand (ValkyrienWarfareBase.Command.PhysSettingsCommand)1 ValkyrienWarfareHelpCommand (ValkyrienWarfareBase.Command.ValkyrienWarfareHelpCommand)1 ServerCommandManager (net.minecraft.command.ServerCommandManager)1