- Void damage fix

This commit is contained in:
AlexTheCoder 2016-02-12 23:16:56 -05:00
parent ea893bfa48
commit 8b39d7ba43

View File

@ -29,6 +29,7 @@ import nautilus.game.arcade.game.GameTeam;
import nautilus.game.arcade.game.GameTeam.PlayerState;
import nautilus.game.arcade.kit.perks.event.PerkDestructorBlockEvent;
import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.Material;
import org.bukkit.Sound;
@ -913,7 +914,7 @@ public class GameFlagManager implements Listener
if (!Manager.GetDamage().IsEnabled())
{
new EntityDamageEvent(player, DamageCause.VOID, 4);
Bukkit.getPluginManager().callEvent(new EntityDamageEvent(player, DamageCause.VOID, 4));
}
player.getWorld().playSound(player.getLocation(), Sound.NOTE_BASS, 2f, 1f);
@ -924,6 +925,11 @@ public class GameFlagManager implements Listener
Manager.GetDamage().NewDamageEvent(player, null, null,
DamageCause.VOID, 9001, false, false, false,
"Border", "Border Damage");
if (!Manager.GetDamage().IsEnabled())
{
Bukkit.getPluginManager().callEvent(new EntityDamageEvent(player, DamageCause.VOID, 9001));
}
}
}