1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-01 16:46:51 +02:00

Ignore teleport cooldown on /tjail

This commit is contained in:
snowleo
2011-12-04 22:57:40 +01:00
parent c73037bb84
commit 49004cf0ec
3 changed files with 7 additions and 4 deletions

View File

@@ -228,9 +228,12 @@ public class Teleport implements Runnable
user.getBase().teleport(Util.getSafeDestination(target.getLocation()));
}
public void now(Location loc) throws Exception
public void now(Location loc, boolean cooldown) throws Exception
{
cooldown(false);
if (cooldown)
{
cooldown(false);
}
now(new Target(loc));
}