Add recharge to carl spins so that they don't get triggered twice

This commit is contained in:
Shaun Bennett 2015-08-14 20:43:58 -05:00
parent 0b4dbab871
commit c520bd7921
2 changed files with 1 additions and 2 deletions

View File

@ -60,7 +60,6 @@ public class UpdateRank extends CommandBase<CoreClientManager>
final Rank rank = tempRank;
if (rank == Rank.ADMIN || rank == Rank.YOUTUBE || rank == Rank.TWITCH || rank == Rank.MODERATOR || rank == Rank.JNR_DEV || rank == Rank.HELPER || rank == Rank.ALL || rank == Rank.MAPDEV || rank == Rank.SNR_MODERATOR)
if (rank == Rank.ADMIN || rank == Rank.YOUTUBE || rank == Rank.TWITCH || rank == Rank.MODERATOR || rank == Rank.JNR_DEV || rank == Rank.HELPER || rank == Rank.ALL || rank == Rank.MAPDEV || rank == Rank.SNR_MODERATOR)
{
if (!testServer && rank.Has(Rank.ADMIN) && !Plugin.hasRank(caller, Rank.LT))

View File

@ -482,7 +482,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
{
final BonusClientData clientData = Get(player);
if (clientData.getTickets() > 0)
if (Recharge.Instance.use(player, "Carl Spin", 5000, false, false) && clientData.getTickets() > 0)
{
CarlSpinnerEvent event = new CarlSpinnerEvent(player);
Bukkit.getServer().getPluginManager().callEvent(event);