mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-26 20:45:17 +01:00
Delayed dousing fire by 2 ticks.
This commit is contained in:
parent
b13ff6b7fc
commit
279e04abb4
BIN
MobArena.jar
BIN
MobArena.jar
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
name: MobArena
|
||||
main: com.garbagemule.MobArena.MobArena
|
||||
version: 0.94.3.13
|
||||
version: 0.94.3.14
|
||||
softdepend: [Spout,Permissions,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells]
|
||||
commands:
|
||||
ma:
|
||||
|
@ -52,6 +52,7 @@ import com.garbagemule.MobArena.repairable.Repairable;
|
||||
import com.garbagemule.MobArena.repairable.RepairableComparator;
|
||||
import com.garbagemule.MobArena.repairable.RepairableContainer;
|
||||
import com.garbagemule.MobArena.spout.Spouty;
|
||||
import com.garbagemule.MobArena.util.Delays;
|
||||
import com.garbagemule.MobArena.util.InventoryItem;
|
||||
import com.garbagemule.MobArena.util.WaveUtils;
|
||||
import com.garbagemule.MobArena.waves.BossWave;
|
||||
@ -662,7 +663,7 @@ public class Arena
|
||||
p.setGameMode(modeMap.remove(p));
|
||||
|
||||
// Put out fire.
|
||||
p.setFireTicks(0);
|
||||
Delays.douse(plugin, p, 3);
|
||||
|
||||
// Remove pets.
|
||||
removePets(p);
|
||||
|
20
src/com/garbagemule/MobArena/util/Delays.java
Normal file
20
src/com/garbagemule/MobArena/util/Delays.java
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user