예제 #1
0
 /**
  * Entering in boat.
  *
  * @param player The player to add.
  */
 private void enterInBoat() {
   player.getTemporaryAttributtes().put("priority1", false);
   player.getTemporaryAttributtes().put("priority2", false);
   if (waitingPlayers.size() > 25) player.getTemporaryAttributtes().put("priority1", true);
   if (waitingPlayers.size() > 50) player.getTemporaryAttributtes().put("priority2", true);
   waitingPlayers.add(player);
   player.setNextWorldTile(new WorldTile(2661, 2639, 0));
   player.getPackets().sendGameMessage("You board the lander.", true);
   sendInterfaces();
   startGame();
 }
예제 #2
0
 /**
  * Leaving the boat.
  *
  * @param player the player to remove.
  */
 private void leaveBoat() {
   if (waitingPlayers.contains(player)) waitingPlayers.remove(player);
   player.closeInterfaces();
   player.setNextWorldTile(OUTSIDE_AREA);
 }