@SuppressWarnings("unused") private void initiateRestart() { for (Player player : World.getPlayers()) { if (player == null || player.getIndex() == -1) continue; player.getActionSender().sendUpdateServer(30); } new ShutdownWorldProcess(30).start(); }
public static void summon(Player player) { player.getActionSender().walkTo(-1, 0, true); Npc npc = new Npc(238); npc.setPosition(new Position(2780, 3515, 0)); npc.setSpawnPosition(new Position(2780, 3515, 0)); World.register(npc); npc.setPlayerOwner(player.getIndex()); Dialogues.startDialogue(player, 238); }