Merge branch 'master' of ssh://dev.mineplex.com:7999/min/Mineplex
This commit is contained in:
commit
a307a4854f
@ -552,35 +552,6 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
|||||||
return _visibilityManager;
|
return _visibilityManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@EventHandler
|
|
||||||
public void HeartDisplay(UpdateEvent event)
|
|
||||||
{
|
|
||||||
if (event.getType() != UpdateType.FASTER)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for (Player player : UtilServer.getPlayers())
|
|
||||||
{
|
|
||||||
if (!player.isOp())
|
|
||||||
continue;
|
|
||||||
|
|
||||||
for (Player other : UtilServer.getPlayers())
|
|
||||||
{
|
|
||||||
if (player.getName().equalsIgnoreCase("Chiss"))
|
|
||||||
UtilParticle.PlayParticle(other, ParticleType.HEART, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 1);
|
|
||||||
|
|
||||||
else if (player.getName().equalsIgnoreCase("defek7"))
|
|
||||||
UtilParticle.PlayParticle(other, ParticleType.FIREWORKS_SPARK, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 2);
|
|
||||||
|
|
||||||
else if (player.getName().equalsIgnoreCase("Spu_"))
|
|
||||||
UtilParticle.PlayParticle(other, ParticleType.FLAME, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 2);
|
|
||||||
|
|
||||||
else if (player.getName().equalsIgnoreCase("sterling_"))
|
|
||||||
UtilParticle.PlayParticle(other, ParticleType.WITCH_MAGIC, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetPortalDelay(Entity ent)
|
public void SetPortalDelay(Entity ent)
|
||||||
{
|
{
|
||||||
if (ent instanceof Player)
|
if (ent instanceof Player)
|
||||||
@ -599,4 +570,35 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
|||||||
|
|
||||||
return UtilTime.elapsed(_portalTime.get(player.getName()), 5000);
|
return UtilTime.elapsed(_portalTime.get(player.getName()), 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
public void HeartDisplay(UpdateEvent event)
|
||||||
|
{
|
||||||
|
if (event.getType() != UpdateType.FASTER)
|
||||||
|
return;
|
||||||
|
|
||||||
|
for (Player player : UtilServer.getPlayers())
|
||||||
|
{
|
||||||
|
if (!player.isOp() && !player.getName().equals("MonsieurApple"))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
for (Player other : UtilServer.getPlayers())
|
||||||
|
{
|
||||||
|
if (player.getName().equalsIgnoreCase("Chiss"))
|
||||||
|
UtilParticle.PlayParticle(other, ParticleType.HEART, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 1);
|
||||||
|
|
||||||
|
else if (player.getName().equalsIgnoreCase("defek7"))
|
||||||
|
UtilParticle.PlayParticle(other, ParticleType.FIREWORKS_SPARK, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 2);
|
||||||
|
|
||||||
|
else if (player.getName().equalsIgnoreCase("Spu_"))
|
||||||
|
UtilParticle.PlayParticle(other, ParticleType.FLAME, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 2);
|
||||||
|
|
||||||
|
else if (player.getName().equalsIgnoreCase("sterling_"))
|
||||||
|
UtilParticle.PlayParticle(other, ParticleType.WITCH_MAGIC, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 2);
|
||||||
|
|
||||||
|
else if (player.getName().equalsIgnoreCase("MonsieurApple"))
|
||||||
|
UtilParticle.PlayParticle(other, ParticleType.SPLASH, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 10);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,9 @@ public class Halloween extends SoloGame
|
|||||||
private int _maxMobs = 80;
|
private int _maxMobs = 80;
|
||||||
private ArrayList<CreatureBase> _mobs = new ArrayList<CreatureBase>();
|
private ArrayList<CreatureBase> _mobs = new ArrayList<CreatureBase>();
|
||||||
|
|
||||||
|
public long total = 0;
|
||||||
|
public long move = 0;
|
||||||
|
|
||||||
public Halloween(ArcadeManager manager)
|
public Halloween(ArcadeManager manager)
|
||||||
{
|
{
|
||||||
super(manager, GameType.Halloween,
|
super(manager, GameType.Halloween,
|
||||||
@ -111,9 +114,26 @@ public class Halloween extends SoloGame
|
|||||||
GetTeamList().add(new GameTeam("Pumpkin King", ChatColor.RED, WorldData.GetDataLocs("RED")));
|
GetTeamList().add(new GameTeam("Pumpkin King", ChatColor.RED, WorldData.GetDataLocs("RED")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
|
public void TimeReport(UpdateEvent event)
|
||||||
|
{
|
||||||
|
if (event.getType() != UpdateType.SEC)
|
||||||
|
return;
|
||||||
|
|
||||||
|
System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");
|
||||||
|
System.out.println("Total Time: " + UtilTime.convertString(total, 4, TimeUnit.MILLISECONDS));
|
||||||
|
System.out.println("Move Time: " + UtilTime.convertString(move, 4, TimeUnit.MILLISECONDS));
|
||||||
|
System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");
|
||||||
|
|
||||||
|
total = 0;
|
||||||
|
move = 0;
|
||||||
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void SoundUpdate(UpdateEvent event)
|
public void SoundUpdate(UpdateEvent event)
|
||||||
{
|
{
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
|
|
||||||
if (event.getType() != UpdateType.SLOW)
|
if (event.getType() != UpdateType.SLOW)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -125,11 +145,15 @@ public class Halloween extends SoloGame
|
|||||||
|
|
||||||
for (Player player : UtilServer.getPlayers())
|
for (Player player : UtilServer.getPlayers())
|
||||||
player.playSound(player.getLocation(), Sound.AMBIENCE_CAVE, 3f, 1f);
|
player.playSound(player.getLocation(), Sound.AMBIENCE_CAVE, 3f, 1f);
|
||||||
|
|
||||||
|
total += System.currentTimeMillis() - start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void WaveUpdate(UpdateEvent event)
|
public void WaveUpdate(UpdateEvent event)
|
||||||
{
|
{
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
|
|
||||||
if (event.getType() != UpdateType.TICK)
|
if (event.getType() != UpdateType.TICK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -142,6 +166,8 @@ public class Halloween extends SoloGame
|
|||||||
|
|
||||||
EndCheck();
|
EndCheck();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
total += System.currentTimeMillis() - start;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArrayList<Location> GetSpawnSet(int i)
|
public ArrayList<Location> GetSpawnSet(int i)
|
||||||
@ -168,6 +194,8 @@ public class Halloween extends SoloGame
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void CreatureMoveUpdate(UpdateEvent event)
|
public void CreatureMoveUpdate(UpdateEvent event)
|
||||||
{
|
{
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
|
|
||||||
if (event.getType() != UpdateType.TICK)
|
if (event.getType() != UpdateType.TICK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -184,11 +212,16 @@ public class Halloween extends SoloGame
|
|||||||
}
|
}
|
||||||
|
|
||||||
_mobs.add(base);
|
_mobs.add(base);
|
||||||
|
|
||||||
|
total += System.currentTimeMillis() - start;
|
||||||
|
move += System.currentTimeMillis() - start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void CreatureUpdate(UpdateEvent event)
|
public void CreatureUpdate(UpdateEvent event)
|
||||||
{
|
{
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
|
|
||||||
if (!IsLive())
|
if (!IsLive())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -201,20 +234,30 @@ public class Halloween extends SoloGame
|
|||||||
if (base.Updater(event))
|
if (base.Updater(event))
|
||||||
mobIterator.remove();
|
mobIterator.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
total += System.currentTimeMillis() - start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void CreatureDamage(CustomDamageEvent event)
|
public void CreatureDamage(CustomDamageEvent event)
|
||||||
{
|
{
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
|
|
||||||
for (CreatureBase base : _mobs)
|
for (CreatureBase base : _mobs)
|
||||||
base.Damage(event);
|
base.Damage(event);
|
||||||
|
|
||||||
|
total += System.currentTimeMillis() - start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void CreatureTarget(EntityTargetEvent event)
|
public void CreatureTarget(EntityTargetEvent event)
|
||||||
{
|
{
|
||||||
|
long start = System.currentTimeMillis();
|
||||||
|
|
||||||
for (CreatureBase base : _mobs)
|
for (CreatureBase base : _mobs)
|
||||||
base.Target(event);
|
base.Target(event);
|
||||||
|
|
||||||
|
total += System.currentTimeMillis() - start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGHEST)
|
@EventHandler(priority = EventPriority.HIGHEST)
|
||||||
|
@ -8,6 +8,7 @@ import nautilus.game.arcade.game.Game;
|
|||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Creeper;
|
import org.bukkit.entity.Creeper;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.entity.EntityTargetEvent;
|
import org.bukkit.event.entity.EntityTargetEvent;
|
||||||
|
|
||||||
public class MobCreeper extends CreatureBase<Creeper> implements InterfaceMove
|
public class MobCreeper extends CreatureBase<Creeper> implements InterfaceMove
|
||||||
@ -58,7 +59,8 @@ public class MobCreeper extends CreatureBase<Creeper> implements InterfaceMove
|
|||||||
//Untarget
|
//Untarget
|
||||||
if (GetEntity().getTarget() != null)
|
if (GetEntity().getTarget() != null)
|
||||||
{
|
{
|
||||||
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10)
|
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10 ||
|
||||||
|
(GetEntity().getTarget() instanceof Player && Host.IsAlive((Player)GetEntity().getTarget())))
|
||||||
{
|
{
|
||||||
GetEntity().setTarget(null);
|
GetEntity().setTarget(null);
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import mineplex.minecraft.game.core.damage.CustomDamageEvent;
|
|||||||
import nautilus.game.arcade.game.Game;
|
import nautilus.game.arcade.game.Game;
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.entity.Zombie;
|
import org.bukkit.entity.Zombie;
|
||||||
import org.bukkit.event.entity.EntityTargetEvent;
|
import org.bukkit.event.entity.EntityTargetEvent;
|
||||||
|
|
||||||
@ -64,7 +65,8 @@ public class MobPigZombie extends CreatureBase<Zombie> implements InterfaceMove
|
|||||||
//Untarget
|
//Untarget
|
||||||
if (GetEntity().getTarget() != null)
|
if (GetEntity().getTarget() != null)
|
||||||
{
|
{
|
||||||
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10)
|
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10 ||
|
||||||
|
(GetEntity().getTarget() instanceof Player && Host.IsAlive((Player)GetEntity().getTarget())))
|
||||||
{
|
{
|
||||||
GetEntity().setTarget(null);
|
GetEntity().setTarget(null);
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import nautilus.game.arcade.game.Game;
|
|||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.entity.Skeleton;
|
import org.bukkit.entity.Skeleton;
|
||||||
import org.bukkit.event.entity.EntityTargetEvent;
|
import org.bukkit.event.entity.EntityTargetEvent;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
@ -63,7 +64,8 @@ public class MobSkeletonArcher extends CreatureBase<Skeleton> implements Interfa
|
|||||||
//Untarget
|
//Untarget
|
||||||
if (GetEntity().getTarget() != null)
|
if (GetEntity().getTarget() != null)
|
||||||
{
|
{
|
||||||
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10)
|
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10 ||
|
||||||
|
(GetEntity().getTarget() instanceof Player && Host.IsAlive((Player)GetEntity().getTarget())))
|
||||||
{
|
{
|
||||||
GetEntity().setTarget(null);
|
GetEntity().setTarget(null);
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import nautilus.game.arcade.game.Game;
|
|||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.entity.Zombie;
|
import org.bukkit.entity.Zombie;
|
||||||
import org.bukkit.event.entity.EntityTargetEvent;
|
import org.bukkit.event.entity.EntityTargetEvent;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
@ -66,7 +67,8 @@ public class MobSkeletonWarrior extends CreatureBase<Zombie> implements Interfac
|
|||||||
//Untarget
|
//Untarget
|
||||||
if (GetEntity().getTarget() != null)
|
if (GetEntity().getTarget() != null)
|
||||||
{
|
{
|
||||||
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10)
|
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10 ||
|
||||||
|
(GetEntity().getTarget() instanceof Player && Host.IsAlive((Player)GetEntity().getTarget())))
|
||||||
{
|
{
|
||||||
GetEntity().setTarget(null);
|
GetEntity().setTarget(null);
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ import nautilus.game.arcade.game.Game;
|
|||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.CaveSpider;
|
import org.bukkit.entity.CaveSpider;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.entity.EntityTargetEvent;
|
import org.bukkit.event.entity.EntityTargetEvent;
|
||||||
|
|
||||||
public class MobSpiderLeaper extends CreatureBase<CaveSpider> implements InterfaceMove
|
public class MobSpiderLeaper extends CreatureBase<CaveSpider> implements InterfaceMove
|
||||||
@ -82,7 +83,8 @@ public class MobSpiderLeaper extends CreatureBase<CaveSpider> implements Interfa
|
|||||||
//Untarget
|
//Untarget
|
||||||
if (GetEntity().getTarget() != null)
|
if (GetEntity().getTarget() != null)
|
||||||
{
|
{
|
||||||
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10)
|
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10 ||
|
||||||
|
(GetEntity().getTarget() instanceof Player && Host.IsAlive((Player)GetEntity().getTarget())))
|
||||||
{
|
{
|
||||||
GetEntity().setTarget(null);
|
GetEntity().setTarget(null);
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import mineplex.minecraft.game.core.damage.CustomDamageEvent;
|
|||||||
import nautilus.game.arcade.game.Game;
|
import nautilus.game.arcade.game.Game;
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.entity.Zombie;
|
import org.bukkit.entity.Zombie;
|
||||||
import org.bukkit.event.entity.EntityTargetEvent;
|
import org.bukkit.event.entity.EntityTargetEvent;
|
||||||
|
|
||||||
@ -63,7 +64,8 @@ public class MobSpiderSmasher extends CreatureBase<Zombie> implements InterfaceM
|
|||||||
//Untarget
|
//Untarget
|
||||||
if (GetEntity().getTarget() != null)
|
if (GetEntity().getTarget() != null)
|
||||||
{
|
{
|
||||||
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10)
|
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10 ||
|
||||||
|
(GetEntity().getTarget() instanceof Player && Host.IsAlive((Player)GetEntity().getTarget())))
|
||||||
{
|
{
|
||||||
GetEntity().setTarget(null);
|
GetEntity().setTarget(null);
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import mineplex.minecraft.game.core.damage.CustomDamageEvent;
|
|||||||
import nautilus.game.arcade.game.Game;
|
import nautilus.game.arcade.game.Game;
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.entity.Zombie;
|
import org.bukkit.entity.Zombie;
|
||||||
import org.bukkit.event.entity.EntityTargetEvent;
|
import org.bukkit.event.entity.EntityTargetEvent;
|
||||||
|
|
||||||
@ -53,7 +54,8 @@ public class MobZombie extends CreatureBase<Zombie> implements InterfaceMove
|
|||||||
//Untarget
|
//Untarget
|
||||||
if (GetEntity().getTarget() != null)
|
if (GetEntity().getTarget() != null)
|
||||||
{
|
{
|
||||||
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10)
|
if (UtilMath.offset2d(GetEntity(), GetEntity().getTarget()) > 10 ||
|
||||||
|
(GetEntity().getTarget() instanceof Player && Host.IsAlive((Player)GetEntity().getTarget())))
|
||||||
{
|
{
|
||||||
GetEntity().setTarget(null);
|
GetEntity().setTarget(null);
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ import org.bukkit.inventory.ItemStack;
|
|||||||
|
|
||||||
import mineplex.core.common.util.C;
|
import mineplex.core.common.util.C;
|
||||||
import mineplex.core.common.util.UtilMath;
|
import mineplex.core.common.util.UtilMath;
|
||||||
|
import mineplex.core.common.util.UtilPlayer;
|
||||||
import mineplex.core.itemstack.ItemStackFactory;
|
import mineplex.core.itemstack.ItemStackFactory;
|
||||||
import mineplex.core.updater.UpdateType;
|
import mineplex.core.updater.UpdateType;
|
||||||
import mineplex.core.updater.event.UpdateEvent;
|
import mineplex.core.updater.event.UpdateEvent;
|
||||||
@ -91,23 +92,43 @@ public class KitRobinHood extends SmashKit
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void Aura(UpdateEvent event)
|
public void Aura(UpdateEvent event)
|
||||||
{
|
{
|
||||||
if (event.getType() != UpdateType.SLOW)
|
if (event.getType() == UpdateType.FAST)
|
||||||
return;
|
|
||||||
|
|
||||||
for (Player player : Manager.GetGame().GetPlayers(true))
|
|
||||||
{
|
{
|
||||||
if (!HasKit(player))
|
for (Player player : Manager.GetGame().GetPlayers(true))
|
||||||
continue;
|
|
||||||
|
|
||||||
for (Player other : Manager.GetGame().GetPlayers(true))
|
|
||||||
{
|
{
|
||||||
if (other.equals(player))
|
if (!HasKit(player))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (UtilMath.offset(player, other) > 8)
|
for (Player other : Manager.GetGame().GetPlayers(true))
|
||||||
|
{
|
||||||
|
if (other.equals(player))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (UtilMath.offset(player, other) > 8)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
Manager.GetCondition().Factory().Regen("Aura", other, player, 1.9, 0, false, false, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (event.getType() == UpdateType.SLOW)
|
||||||
|
{
|
||||||
|
for (Player player : Manager.GetGame().GetPlayers(true))
|
||||||
|
{
|
||||||
|
if (!HasKit(player))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Manager.GetCondition().Factory().Regen("Aura", other, player, 4.9, 0, false, false, false);
|
for (Player other : Manager.GetGame().GetPlayers(true))
|
||||||
|
{
|
||||||
|
if (other.equals(player))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (UtilMath.offset(player, other) > 8)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
UtilPlayer.health(other, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user