Class TeleportManager
java.lang.Object
net.sacredlabyrinth.phaed.simpleclans.managers.TeleportManager
Class responsible for managing teleports and its queue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd player to teleport waiting queue@NotNull org.bukkit.LocationgetSafe(@NotNull org.bukkit.Location location) Converts the specifiedLocationto a safe one, i.e. where there is no risk of suffocationvoidTeleports all online and non-vanished members of thisClanto the specifiedLocationvoidteleport(@NotNull org.bukkit.entity.Player requester, @NotNull Clan clan, @NotNull org.bukkit.Location location) Teleports all online and non-vanished members of thisClanto the specifiedLocationvoidteleportToHome(@NotNull org.bukkit.entity.Player player, @NotNull Clan clan) voidteleportToHome(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Location destination, @NotNull String clanName)
-
Constructor Details
-
TeleportManager
public TeleportManager()
-
-
Method Details
-
addPlayer
public void addPlayer(org.bukkit.entity.Player player, org.bukkit.Location destination, String clanName) Add player to teleport waiting queue- Parameters:
player- the Playerdestination- the destinationclanName- the Clan name
-
teleport
public void teleport(@NotNull @NotNull org.bukkit.entity.Player requester, @NotNull @NotNull Clan clan, @NotNull @NotNull org.bukkit.Location location) Teleports all online and non-vanished members of thisClanto the specifiedLocation- Parameters:
requester- the Player requesting the teleportclan- the Clanlocation- the Location
-
teleport
Teleports all online and non-vanished members of thisClanto the specifiedLocation- Parameters:
clan- the Clanlocation- the Location
-
teleportToHome
public void teleportToHome(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.Location destination, @NotNull @NotNull String clanName) -
teleportToHome
public void teleportToHome(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull Clan clan) -
getSafe
@NotNull public @NotNull org.bukkit.Location getSafe(@NotNull @NotNull org.bukkit.Location location) Converts the specifiedLocationto a safe one, i.e. where there is no risk of suffocation- Parameters:
location- the Location- Returns:
- the safe Location
-