Ignore teleport cooldown on /tjail

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

View File

@ -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);
}

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
{
if (cooldown)
{
cooldown(false);
}
now(new Target(loc));
}

View File

@ -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)
{