mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-03 11:06:08 +00:00
Ignore teleport cooldown on /tjail
This commit is contained in:
parent
cbc744c85a
commit
ad60eb538e
3 changed files with 7 additions and 4 deletions
|
@ -46,7 +46,7 @@ public class Jail extends BlockListener implements IConf
|
|||
{
|
||||
if (!(user.getBase() instanceof OfflinePlayer))
|
||||
{
|
||||
user.getTeleport().now(getJail(jail));
|
||||
user.getTeleport().now(getJail(jail), false);
|
||||
}
|
||||
user.setJail(jail);
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ public class EssentialsSpawnPlayerListener extends PlayerListener
|
|||
{
|
||||
try
|
||||
{
|
||||
user.getTeleport().now(ess.getSpawn().getSpawn(ess.getSettings().getNewbieSpawn()));
|
||||
user.getTeleport().now(ess.getSpawn().getSpawn(ess.getSettings().getNewbieSpawn()), false);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue