Package net.minecraft.server

Examples of net.minecraft.server.MinecraftServer.stopServer()


    }.start();
    minecraftServer.saveEverything(); // Save first
    Log.info("Saved, now attempting to stop the server and disconnect players cleanly");
    try {
      minecraftServer.getConfigurationManager().disconnectAllPlayers("The server has frozen and must now restart.");
      minecraftServer.stopServer();
      FMLCommonHandler.instance().handleServerStopping(); // Try to get mods to save data - this may lock up, as we deadlocked.
    } catch (Throwable throwable) {
      Log.severe("Error stopping server", throwable);
    }
    minecraftServer.saveEverything(); // Save again, in case they changed anything.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.