示例#1
0
文件: Server.java 项目: Ventuz/vscape
 @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();
 }
示例#2
0
 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);
 }