Hey there. I was just wondering how I can do the following: Make the server save-all And shut itself down All from the plugin code. Thanks in advanced for the help
Code: for (World w : this.getServer().getWorlds()) { w.save(); } this.getServer().savePlayers(); for (Player p : this.getServer().getOnlinePlayers()) { p.kickPlayer("Server shutting down!"); } this.getServer().shutdown();