shorten portal "rescue" time to 20 seconds

This commit is contained in:
RoboMWM 2016-10-02 01:03:01 -07:00
parent 35a67de339
commit e1955fb337

View File

@ -3669,7 +3669,8 @@ public class GriefPrevention extends JavaPlugin
ConcurrentHashMap<UUID, BukkitTask> portalReturnTaskMap = new ConcurrentHashMap<UUID, BukkitTask>();
public void startRescueTask(Player player)
{
BukkitTask task = new CheckForPortalTrapTask(player, this).runTaskLater(GriefPrevention.instance, 600L);
//Schedule task to reset player's portal cooldown after 20 seconds
BukkitTask task = new CheckForPortalTrapTask(player, this).runTaskLater(GriefPrevention.instance, 400L);
//Cancel existing rescue task
if (portalReturnTaskMap.containsKey(player.getUniqueId()))