use of com.builtbroken.mc.lib.world.edit.thread.WorkerThread 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