Examples of teleport()


Examples of com.earth2me.essentials.Teleport.teleport()

                             
                                Teleport teleport = user.getTeleport();
                                if (!chunk.isLoaded()) chunk.load();
                                // Cause an essentials exception if in cooldown.
                                teleport.cooldown(true);
                                teleport.teleport(town.getSpawn(),null);
                            }
                        } catch (Exception e) {
                            TownyMessaging.sendErrorMsg(player, "Error: " + e.getMessage());
                            // cooldown?
                            return;
View Full Code Here

Examples of com.mojang.minecraft.net.NetworkPlayer.teleport()

                                       var42.minecraft.player.moveTo((float)var38 / 32.0F, (float)var36 / 32.0F, (float)var47 / 32.0F, (float)(var53 * 360) / 256.0F, (float)(var9 * 360) / 256.0F);
                                    } else {
                                       var53 = (byte)(var53 + 128);
                                       var36 = (short)(var36 - 22);
                                       if((var61 = (NetworkPlayer)var42.players.get(Byte.valueOf(var5))) != null) {
                                          var61.teleport(var38, var36, var47, (float)(var53 * 360) / 256.0F, (float)(var9 * 360) / 256.0F);
                                       }
                                    }
                                 } else {
                                    byte var37;
                                    byte var44;
View Full Code Here

Examples of com.onarandombox.MultiverseCore.api.Teleporter.teleport()

            this.messaging.sendMessage(teleporter, "Sorry Boss, I tried everything, but just couldn't teleport ya there!", false);
            return;
        }
        Teleporter teleportObject = (d instanceof CustomTeleporterDestination) ?
                ((CustomTeleporterDestination)d).getTeleporter() : this.playerTeleporter;
        TeleportResult result = teleportObject.teleport(teleporter, teleportee, d);
        if (result == TeleportResult.FAIL_UNSAFE) {
            this.plugin.log(Level.FINE, "Could not teleport " + teleportee.getName()
                    + " to " + plugin.getLocationManipulation().strCoordsRaw(d.getLocation(teleportee)));
            this.plugin.log(Level.FINE, "Queueing Command");
            Class<?>[] paramTypes = { CommandSender.class, Player.class, Location.class };
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.teleport()

      final StendhalRPZone zone = player2.getZone();
      final int x = player2.getX();
      final int y = player2.getY();

      player1.teleport(zone, x, y, null, admin);

      /*
       * StendhalRPRuleProcessor.get().addGameEvent(admin.getName(),
       * "teleportsend", action.get("target") + " -> " +
       * action.get("args"), zone.getName(), Integer.toString(x),
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.teleport()

      final StendhalRPZone zone = (StendhalRPZone) SingletonRepository.getRPWorld().getRPZone(
          zoneid);
      final int x = action.getInt(X);
      final int y = action.getInt(Y);
      new GameEvent(player.getName(), TELEPORT, action.get(TARGET), zone.getName(), Integer.toString(x), Integer.toString(y)).raise();
      teleported.teleport(zone, x, y, null, player);
     
      SingletonRepository.getJail().grantParoleIfPlayerWasAPrisoner(teleported);
    }
  }
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.teleport()

              invite2.setInfoString("honeymoon," + husband.getTitle());
              if (wife.equipToInventoryOnly(invite1) &&  husband.equipToInventoryOnly(invite2)) {
                npc.say("Great choice! I will arrange that now.");
                husband.setQuest(marriage.getQuestSlot(), "done");
                wife.setQuest(marriage.getQuestSlot(), "done");
                wife.teleport(zone, 5, 5, Direction.DOWN, player);
                husband.teleport(zone, 6, 5, Direction.DOWN, player);
                final String scrollmessage = "Linda tells you: Use the scroll in your bag to return to the hotel, our special honeymoon suites are so private that they don't use normal entrances and exits!";
                wife.sendPrivateText(scrollmessage);
                                husband.sendPrivateText(scrollmessage);
                wife.notifyWorldAboutChanges();
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.teleport()

        KeepFreeArea keepFreeArea = entry.getKeepFreeArea();
        Player player = entry.getPlayer();
        if (player == null) {
          continue;
        }
        player.teleport(keepFreeArea.getZone(), keepFreeArea.getX(), keepFreeArea.getY(), Direction.DOWN, player);
      }
    }
  }

  /**
 
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.teleport()

    int x = Integer.parseInt(args.get(1));
    int y = Integer.parseInt(args.get(2));

    for (PlayerEntry entry : PlayerEntryContainer.getContainer()) {
      Player player = (Player) entry.object;
      player.teleport(targetZone, x, y, null, player);
    }
  }

}
View Full Code Here

Examples of lineage2.gameserver.model.Party.Teleport()

        {
          player.sendMessage("In order to enter the Anomic Foundry your party should be carrying all 5 medals of Tully");
          return;
        }
      }
      party.Teleport(new Location(25512, 247240, -2656));
    }
    else
    {
      super.onBypassFeedback(player, command);
    }
View Full Code Here

Examples of net.citizensnpcs.resources.npclib.HumanNPC.teleport()

            if (isSoldier(npc)) {
                if (holding) {
                    select(event.getPlayer(), npc, getSelection(event.getPlayer()));
                } else if (UtilityProperties.isHoldingTool("SoldierReturnTool", event.getPlayer())) {
                    npc.getHandle().cancelTarget();
                    npc.teleport(npc.getBaseLocation());
                }
                return;
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.