Package com.booksaw.betterTeams
Class PlayerTeleport
java.lang.Object
com.booksaw.betterTeams.PlayerTeleport
A class to handle a teleport with a delay
- Author:
- booksaw
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerTeleport
(org.bukkit.entity.Player player, org.bukkit.Location location, String reference) This will start the cooldown (there is no delay) -
Method Summary
-
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 teleportlocation
- the location to teleport them toreference
- 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()
-