use of net.minecraft.command.ServerCommandManager in project ICBM-Classic by BuiltBrokenModding.
the class ICBMClassic method serverStarting.
@EventHandler
public void serverStarting(FMLServerStartingEvent event) {
// Setup command
ICommandManager commandManager = FMLCommonHandler.instance().getMinecraftServerInstance().getCommandManager();
ServerCommandManager serverCommandManager = ((ServerCommandManager) commandManager);
serverCommandManager.registerCommand(new CommandICBM());
}
use of net.minecraft.command.ServerCommandManager in project PneumaticCraft by MineMaarten.
the class PneumaticCraft method onServerStart.
@EventHandler
public void onServerStart(FMLServerStartingEvent event) {
ServerCommandManager comManager = (ServerCommandManager) MinecraftServer.getServer().getCommandManager();
new PCCommandManager().init(comManager);
}
use of net.minecraft.command.ServerCommandManager in project ArsMagica2 by Mithion.
the class AMCore method serverStarting.
@EventHandler
public void serverStarting(FMLServerStartingEvent event) {
ICommandManager commandManager = event.getServer().getCommandManager();
ServerCommandManager serverCommandManager = ((ServerCommandManager) commandManager);
serverCommandManager.registerCommand(new SetMagicLevelCommand());
serverCommandManager.registerCommand(new UnlockAugmentedCastingCommand());
serverCommandManager.registerCommand(new SetAffinityCommand());
serverCommandManager.registerCommand(new ShiftAffinityCommand());
serverCommandManager.registerCommand(new RecoverKeystoneCommand());
serverCommandManager.registerCommand(new RegisterTeamHostilityCommand());
serverCommandManager.registerCommand(new FillManaBarCommand());
serverCommandManager.registerCommand(new ReloadSkillTree());
serverCommandManager.registerCommand(new GiveSkillPoints());
serverCommandManager.registerCommand(new TakeSkillPoints());
serverCommandManager.registerCommand(new ClearKnownSpellParts());
serverCommandManager.registerCommand(new Explosions());
serverCommandManager.registerCommand(new DumpNBT());
serverCommandManager.registerCommand(new Respec());
serverCommandManager.registerCommand(new UnlockCompendiumEntry());
}
use of net.minecraft.command.ServerCommandManager 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());
}
use of net.minecraft.command.ServerCommandManager in project Engine by VoltzEngine-Project.
the class Engine method serverStarting.
@EventHandler
public void serverStarting(FMLServerStartingEvent event) {
if (!CommandVE.disableCommands) {
// Setup command
ICommandManager commandManager = FMLCommonHandler.instance().getMinecraftServerInstance().getCommandManager();
ServerCommandManager serverCommandManager = ((ServerCommandManager) commandManager);
//Register commands
serverCommandManager.registerCommand(CommandVE.INSTANCE);
}
for (int i = 0; i < actionProcessorThreads; i++) {
Thread thread = new WorkerThread("" + i);
thread.start();
}
}
Aggregations