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:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user