Examples of saveEverything()


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

    }
    Log.severe("Failed to recover from the deadlock.");
    InsecurityManager.flushLogs();
    if (!TickThreading.instance.exitOnDeadlock) {
      Log.severe("Now attempting to save the world. The server will not stop, you must do this yourself. If you want the server to stop automatically on deadlock, enable exitOnDeadlock in TT's config.");
      minecraftServer.saveEverything();
      return false;
    }
    // Yes, we save multiple times - handleServerStopping may freeze on the same thing we deadlocked on, but if it doesn't might change stuff
    // which needs to be saved.
    minecraftServer.getNetworkThread().stopListening();
View Full Code Here

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

          }
        }.start();
        Runtime.getRuntime().exit(1);
      }
    }.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.
View Full Code Here

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

      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.
    minecraftServer.initiateShutdown();
    InsecurityManager.flushLogs();
    trySleep(1000);
    Runtime.getRuntime().exit(1);
    return false;
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.