Class TeleportManager

java.lang.Object
net.sacredlabyrinth.phaed.simpleclans.managers.TeleportManager

public final class TeleportManager extends Object
Class responsible for managing teleports and its queue
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addPlayer(org.bukkit.entity.Player player, org.bukkit.Location destination, String clanName)
    Add player to teleport waiting queue
    @NotNull org.bukkit.Location
    getSafe(@NotNull org.bukkit.Location location)
    Converts the specified Location to a safe one, i.e. where there is no risk of suffocation
    void
    teleport(Clan clan, org.bukkit.Location location)
    Teleports all online and non-vanished members of this Clan to the specified Location
    void
    teleport(@NotNull org.bukkit.entity.Player requester, @NotNull Clan clan, @NotNull org.bukkit.Location location)
    Teleports all online and non-vanished members of this Clan to the specified Location
    void
    teleportToHome(@NotNull org.bukkit.entity.Player player, @NotNull Clan clan)
     
    void
    teleportToHome(@NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.Location destination, @NotNull String clanName)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 Player
      destination - the destination
      clanName - 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 this Clan to the specified Location
      Parameters:
      requester - the Player requesting the teleport
      clan - the Clan
      location - the Location
    • teleport

      public void teleport(Clan clan, org.bukkit.Location location)
      Teleports all online and non-vanished members of this Clan to the specified Location
      Parameters:
      clan - the Clan
      location - 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 specified Location to a safe one, i.e. where there is no risk of suffocation
      Parameters:
      location - the Location
      Returns:
      the safe Location