Delayed dousing fire by 2 ticks.

This commit is contained in:
Garbage Mule 2011-10-05 12:17:18 +02:00
parent b13ff6b7fc
commit 279e04abb4
4 changed files with 23 additions and 2 deletions

Binary file not shown.

View File

@ -1,6 +1,6 @@
name: MobArena name: MobArena
main: com.garbagemule.MobArena.MobArena main: com.garbagemule.MobArena.MobArena
version: 0.94.3.13 version: 0.94.3.14
softdepend: [Spout,Permissions,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells] softdepend: [Spout,Permissions,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells]
commands: commands:
ma: ma:

View File

@ -52,6 +52,7 @@ import com.garbagemule.MobArena.repairable.Repairable;
import com.garbagemule.MobArena.repairable.RepairableComparator; import com.garbagemule.MobArena.repairable.RepairableComparator;
import com.garbagemule.MobArena.repairable.RepairableContainer; import com.garbagemule.MobArena.repairable.RepairableContainer;
import com.garbagemule.MobArena.spout.Spouty; import com.garbagemule.MobArena.spout.Spouty;
import com.garbagemule.MobArena.util.Delays;
import com.garbagemule.MobArena.util.InventoryItem; import com.garbagemule.MobArena.util.InventoryItem;
import com.garbagemule.MobArena.util.WaveUtils; import com.garbagemule.MobArena.util.WaveUtils;
import com.garbagemule.MobArena.waves.BossWave; import com.garbagemule.MobArena.waves.BossWave;
@ -662,7 +663,7 @@ public class Arena
p.setGameMode(modeMap.remove(p)); p.setGameMode(modeMap.remove(p));
// Put out fire. // Put out fire.
p.setFireTicks(0); Delays.douse(plugin, p, 3);
// Remove pets. // Remove pets.
removePets(p); removePets(p);

View File

@ -0,0 +1,20 @@
package com.garbagemule.MobArena.util;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import com.garbagemule.MobArena.MobArena;
public class Delays
{
public static void douse(MobArena plugin, final Player p, long delay)
{
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable()
{
public void run()
{
p.setFireTicks(0);
}
}, delay);
}
}