Merge branch 'master' of ssh://184.154.0.242:7999/min/mineplex into wizards
This commit is contained in:
commit
81aeff86bf
@ -50,7 +50,7 @@ public class CustomDamageEvent extends Event implements Cancellable
|
||||
{
|
||||
_eventCause = cause;
|
||||
|
||||
if (initialSource == null || initialReason == null)
|
||||
//if (initialSource == null || initialReason == null)
|
||||
_initialDamage = damage;
|
||||
|
||||
_damageeEntity = damagee;
|
||||
@ -66,7 +66,7 @@ public class CustomDamageEvent extends Event implements Cancellable
|
||||
_ignoreArmor = ignoreArmor;
|
||||
|
||||
if (initialSource != null && initialReason != null)
|
||||
AddMod(initialSource, initialReason, damage, true);
|
||||
AddMod(initialSource, initialReason, 0, true);
|
||||
|
||||
if (_eventCause == DamageCause.FALL)
|
||||
_ignoreArmor = true;
|
||||
@ -116,11 +116,11 @@ public class CustomDamageEvent extends Event implements Cancellable
|
||||
{
|
||||
double damage = GetDamageInitial();
|
||||
|
||||
for (DamageChange mult : _damageMult)
|
||||
damage *= mult.GetDamage();
|
||||
|
||||
for (DamageChange mult : _damageMod)
|
||||
damage += mult.GetDamage();
|
||||
|
||||
for (DamageChange mult : _damageMult)
|
||||
damage *= mult.GetDamage();
|
||||
|
||||
return damage;
|
||||
}
|
||||
|
@ -265,7 +265,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
new MiscManager(this);
|
||||
_hologramManager = hologramManager;
|
||||
_idleManager = new IdleManager(this);
|
||||
new HolidayManager(this);
|
||||
//new HolidayManager(this);
|
||||
|
||||
// Game Addons
|
||||
new CompassAddon(plugin, this);
|
||||
|
@ -2134,6 +2134,8 @@ public class MineStrike extends TeamGame
|
||||
targetTeam = GetTeamList().get(0);
|
||||
|
||||
SetPlayerTeam(event.getPlayer(), targetTeam, false);
|
||||
|
||||
((CraftPlayer) event.getPlayer()).getHandle().spectating = true;
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
|
@ -287,7 +287,7 @@ public class ShopManager
|
||||
|
||||
public void update()
|
||||
{
|
||||
for (Player player : Host.GetPlayers(true))
|
||||
for (Player player : Host.GetPlayers(false))
|
||||
{
|
||||
GameTeam team = Host.GetTeam(player);
|
||||
|
||||
@ -309,12 +309,12 @@ public class ShopManager
|
||||
}
|
||||
|
||||
//Leave Shop
|
||||
if (_inShop.contains(player) && (!nearShop || !isBuyTime()) || Host.Manager.isSpectator(player))
|
||||
if (_inShop.contains(player) && (!nearShop || !isBuyTime()) || Host.Manager.isSpectator(player) || player.getAllowFlight())
|
||||
{
|
||||
leaveShop(player, true, false);
|
||||
}
|
||||
//Enter Shop
|
||||
else if (!_inShop.contains(player) && (nearShop && isBuyTime()) && !Host.Manager.isSpectator(player))
|
||||
else if (!_inShop.contains(player) && (nearShop && isBuyTime()) && !Host.Manager.isSpectator(player) && !player.getAllowFlight())
|
||||
{
|
||||
enterShop(player);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user