InstancePlayerMovement

public final class InstancePlayerMovement

Player movement that instance escape protection accepts, kept for existing callers. Each move carries an authorization bound to one player and one exact destination for the duration of the call, issued by MagmaCore's match core.

Functions

Link copied to clipboard
public static boolean teleportForMatch(Player player, Location destination, MatchInstance match, boolean notifyEliteMobs)
The existing match owner admits, rescues, spectates or evacuates one player synchronously.
Link copied to clipboard
public static boolean teleportLeavingInstance(Player player, Location destination, PlayerTeleportEvent.TeleportCause cause)
An explicit exit counts as quitting only after Bukkit accepts and completes the teleport.
Link copied to clipboard
public static boolean teleportWithinWorld(Player player, Location destination, PlayerTeleportEvent.TeleportCause cause)
Moves a player without weakening instance escape protection.