1package com.runehive.content.skill.impl.magic.teleport;
3import com.runehive.content.activity.Activity;
4import com.runehive.content.lms.LMSGame;
5import com.runehive.content.lms.lobby.LMSLobby;
6import com.runehive.game.action.impl.TeleportAction;
7import com.runehive.game.world.entity.mob.Mob;
8import com.runehive.game.world.entity.mob.data.PacketType;
9import com.runehive.game.world.entity.mob.player.Player;
10import com.runehive.game.world.entity.mob.player.PlayerRight;
11import com.runehive.game.world.position.Position;
12import com.runehive.net.packet.out.SendMessage;
72 player.
message(
"You are currently under the affects of a teleblock spell and can not teleport!");
77 player.
send(
new SendMessage(
"You can't teleport past " + wilderness +
" wilderness!"));
87 player.pvpInstance =
false;
89 if (player.
pet !=
null) {
90 player.pet.instance = player.
instance;
A Activity object constructs an in-game activity and sequences it through the start() and finish() me...
static boolean evaluate(Mob mob, Predicate< Activity > predicate)
static boolean isActivePlayer(Player player)
Checks if a player is a active player within the LMS game.
static List< Player > lobbyMembers
A list with all the players in the lobby.
Handles a player teleporting.
static boolean teleport(Player player, Position position, int wilderness, TeleportationData teleport)
static void activateOverride(Mob mob, Position position, TeleportationData teleport, Runnable runnable)
static boolean teleport(Player player, Position position)
static void activateOverride(Mob mob, Position position, TeleportationData teleport)
static boolean teleport(Player player, Position position, int wilderness)
static boolean teleport(Player player, Position position, int wilderness, Runnable runnable)
static boolean teleport(Player player, Position position, int wilderness, TeleportationData teleport, Runnable runnable)
static boolean teleport(Player player, Position position, TeleportationData teleport, Runnable runnable)
static boolean teleport(Player player, Position position, TeleportationData teleport)
public< A extends Action<?> > void execute(A action)
Teleports an entity to another part of the world.
static final int DEFAULT_INSTANCE
boolean locked()
Checks if the mob is locked.
void close(int interfaceId)
This class represents a character controlled by a player.
void message(String message)
final InterfaceManager interfaceManager
void send(OutgoingPacket encoder)
Combat< Player > getCombat()
The combat of the mob.
Represents a single tile on the game world.
The OutgoingPacket that sends a message to a Players chatbox in the client.
Created by Daniel on 2018-02-07.
Holds all the player right data.
static boolean isDeveloper(Player player)
Checks if the player has developer status.