Smash Kit fix

Gem Booster (dragons) fix
This commit is contained in:
Chiss 2014-08-09 23:25:13 +10:00
parent cac7f85410
commit 3d1ddecffb
3 changed files with 6 additions and 2 deletions

View File

@ -24,6 +24,7 @@ import org.bukkit.craftbukkit.v1_7_R3.entity.CraftEntity;
import org.bukkit.craftbukkit.v1_7_R3.entity.CraftPlayer;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.block.BlockBurnEvent;
import org.bukkit.event.block.BlockFadeEvent;
import org.bukkit.event.block.BlockSpreadEvent;
@ -811,7 +812,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
return _inventoryManager;
}
@EventHandler
@EventHandler(priority = EventPriority.LOWEST)
public void cosmeticState(GameStateChangeEvent event)
{
//Disable

View File

@ -1187,6 +1187,9 @@ public class GameLobbyManager implements IPacketRunnable, Listener
if (Manager.GetGame() == null)
return;
if (Manager.GetGame().GetState() != GameState.Recruit)
return;
if (Manager.getInventoryManager().Get(player).getItemCount("Gem Booster") <= 0)
return;

View File

@ -468,7 +468,7 @@ public class GameManager implements Listener
return true;
}
@EventHandler(priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.LOW)
public void PlayerPrepare(GameStateChangeEvent event)
{
final Game game = event.GetGame();