Ejemplo n.º 1
0
 public boolean start() {
   if (TYPE.equals(TeleportRequestType.TELEPORT_HERE)) {
     if ((PLAYER != null) && (PLAYER2 != null)) {
       Teleport teleport =
           new Teleport(PLAYER2.getEntity().getLocation(), PLAYER.getEntity().getLocation());
       teleport.animatedTeleport();
       return true;
     }
   } else {
     if ((PLAYER != null) && (PLAYER2 != null)) {
       Teleport teleport =
           new Teleport(PLAYER.getEntity().getLocation(), PLAYER2.getEntity().getLocation());
       teleport.animatedTeleport();
       return true;
     }
   }
   return false;
 }