1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-03 01:21:56 +02:00

API & misc cleanup

This commit is contained in:
Iaccidentally
2013-04-30 12:25:25 -04:00
parent fd5cddcadd
commit 4892847372
7 changed files with 57 additions and 7 deletions

View File

@@ -231,6 +231,7 @@ public class Teleport implements Runnable, ITeleport
}
//The now function is used when you want to skip tp delay when teleporting someone to a location or player.
@Override
public void now(Location loc, boolean cooldown, TeleportCause cause) throws Exception
{
if (cooldown)
@@ -387,7 +388,7 @@ public class Teleport implements Runnable, ITeleport
teleport(new Target(loc), chargeFor, cause);
}
//The back function is a wrapper used to teleport a player /back to their previous location.
//The back function is a wrapper used to teleport a player /back to their previous location.
public void back(Trade chargeFor) throws Exception
{
teleport(new Target(user.getLastLocation()), chargeFor, TeleportCause.COMMAND);