Class PlayerTeleport

java.lang.Object
com.booksaw.betterTeams.PlayerTeleport

public class PlayerTeleport extends Object
A class to handle a teleport with a delay
Author:
booksaw
  • Constructor Details

    • PlayerTeleport

      public PlayerTeleport(org.bukkit.entity.Player player, org.bukkit.Location location, String reference) throws Exception
      This will start the cooldown (there is no delay)
      Parameters:
      player - The player to teleport
      location - the location to teleport them to
      reference - the reference for the message that should be sent when the player is teleported
      Throws:
      Exception - Well, isn't this a generic one?
  • Method Details

    • runTp

      public void runTp()
    • canTp

      public boolean canTp()
    • cancel

      public void cancel()