use of net.minecraft.command.ICommandManager 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.ICommandManager 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.ICommandManager 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