Fixed Bad Hider achievement
This commit is contained in:
parent
ae35e82e22
commit
5b1a185a5f
@ -12,6 +12,7 @@ import org.bukkit.event.entity.PlayerDeathEvent;
|
|||||||
import nautilus.game.arcade.events.GameStateChangeEvent;
|
import nautilus.game.arcade.events.GameStateChangeEvent;
|
||||||
import nautilus.game.arcade.game.Game;
|
import nautilus.game.arcade.game.Game;
|
||||||
import nautilus.game.arcade.game.games.hideseek.HideSeek;
|
import nautilus.game.arcade.game.games.hideseek.HideSeek;
|
||||||
|
import nautilus.game.arcade.game.games.hideseek.forms.CreatureForm;
|
||||||
|
|
||||||
public class BadHiderStatTracker extends StatTracker<HideSeek>
|
public class BadHiderStatTracker extends StatTracker<HideSeek>
|
||||||
{
|
{
|
||||||
@ -28,7 +29,8 @@ public class BadHiderStatTracker extends StatTracker<HideSeek>
|
|||||||
if (getGame().GetState() != Game.GameState.Live)
|
if (getGame().GetState() != Game.GameState.Live)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_disqualified.add(event.getPlayer().getUniqueId());
|
if (event.getForm() instanceof CreatureForm)
|
||||||
|
_disqualified.add(event.getPlayer().getUniqueId());
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
|
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
|
||||||
@ -40,15 +42,6 @@ public class BadHiderStatTracker extends StatTracker<HideSeek>
|
|||||||
_disqualified.add(event.getEntity().getUniqueId());
|
_disqualified.add(event.getEntity().getUniqueId());
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
|
|
||||||
public void onPlayerSolidify(HideSeek.PlayerSolidifyEvent event)
|
|
||||||
{
|
|
||||||
if (getGame().GetState() != Game.GameState.Live)
|
|
||||||
return;
|
|
||||||
|
|
||||||
_disqualified.add(event.getPlayer().getUniqueId());
|
|
||||||
}
|
|
||||||
|
|
||||||
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
|
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
|
||||||
public void onGameStateChange(GameStateChangeEvent event)
|
public void onGameStateChange(GameStateChangeEvent event)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user