From 53846acbf679afeab8589ae51c0df757de48c38d Mon Sep 17 00:00:00 2001 From: TadahTech Date: Thu, 1 Sep 2016 05:39:47 -0500 Subject: [PATCH] Dont let Minestrike use NextBestGame --- .../nautilus/game/arcade/managers/NextBestGameManager.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/NextBestGameManager.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/NextBestGameManager.java index d3a6dc757..af551dfb6 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/NextBestGameManager.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/managers/NextBestGameManager.java @@ -18,6 +18,7 @@ import nautilus.game.arcade.events.PlayerStateChangeEvent; import nautilus.game.arcade.game.Game; import nautilus.game.arcade.game.Game.GameState; import nautilus.game.arcade.game.GameTeam.PlayerState; +import nautilus.game.arcade.game.games.minestrike.Minestrike; import net.md_5.bungee.api.ChatColor; import net.md_5.bungee.api.chat.ClickEvent; import net.md_5.bungee.api.chat.HoverEvent; @@ -237,6 +238,11 @@ public class NextBestGameManager implements Listener @EventHandler public void onDeath(PlayerStateChangeEvent event) { + if(event.GetGame() instanceof Minestrike) + { + return; + } + new BukkitRunnable() {