completely disabled team armor in arcade. avoids typing it just as game starts.
This commit is contained in:
parent
fc1a8e4e25
commit
1487692609
@ -1,5 +1,7 @@
|
||||
package mineplex.core.cosmetic;
|
||||
|
||||
import nautilus.game.arcade.game.Game.GameState;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
@ -19,6 +21,9 @@ import mineplex.core.common.util.UtilServer;
|
||||
import mineplex.core.cosmetic.ui.CosmeticShop;
|
||||
import mineplex.core.donation.DonationManager;
|
||||
import mineplex.core.gadget.GadgetManager;
|
||||
import mineplex.core.gadget.gadgets.OutfitTeam;
|
||||
import mineplex.core.gadget.types.Gadget;
|
||||
import mineplex.core.gadget.types.GadgetType;
|
||||
import mineplex.core.inventory.InventoryManager;
|
||||
import mineplex.core.itemstack.ItemStackFactory;
|
||||
import mineplex.core.mount.MountManager;
|
||||
@ -191,4 +196,15 @@ public class CosmeticManager extends MiniPlugin
|
||||
{
|
||||
return _treasureManager;
|
||||
}
|
||||
|
||||
public void disableTeamArmor()
|
||||
{
|
||||
for (Gadget gadget : getGadgetManager().getGadgets(GadgetType.Costume))
|
||||
{
|
||||
if (gadget instanceof OutfitTeam)
|
||||
{
|
||||
((OutfitTeam)gadget).setEnabled(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -25,6 +25,9 @@ import mineplex.core.disguise.DisguiseManager;
|
||||
import mineplex.core.donation.DonationManager;
|
||||
import mineplex.core.friend.FriendManager;
|
||||
import mineplex.core.gadget.GadgetManager;
|
||||
import mineplex.core.gadget.gadgets.OutfitTeam;
|
||||
import mineplex.core.gadget.types.Gadget;
|
||||
import mineplex.core.gadget.types.GadgetType;
|
||||
import mineplex.core.give.Give;
|
||||
import mineplex.core.hologram.HologramManager;
|
||||
import mineplex.core.ignore.IgnoreManager;
|
||||
@ -55,6 +58,7 @@ import mineplex.core.visibility.VisibilityManager;
|
||||
import mineplex.minecraft.game.core.combat.CombatManager;
|
||||
import mineplex.minecraft.game.core.damage.DamageManager;
|
||||
import nautilus.game.arcade.game.GameServerConfig;
|
||||
import nautilus.game.arcade.game.Game.GameState;
|
||||
|
||||
public class Arcade extends JavaPlugin
|
||||
{
|
||||
@ -140,6 +144,8 @@ public class Arcade extends JavaPlugin
|
||||
GadgetManager gadgetManager = new GadgetManager(this, _clientManager, _donationManager, inventoryManager, mountManager, petManager, preferenceManager, disguiseManager, blockRestore, projectileManager, achievementManager);
|
||||
CosmeticManager cosmeticManager = new CosmeticManager(this, _clientManager, _donationManager, inventoryManager, gadgetManager, mountManager, petManager, null);
|
||||
cosmeticManager.setInterfaceSlot(7);
|
||||
cosmeticManager.disableTeamArmor();
|
||||
|
||||
|
||||
//Arcade Manager
|
||||
PollManager pollManager = new PollManager(this, _clientManager, _donationManager);
|
||||
|
@ -1195,15 +1195,6 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Disable Team Armor
|
||||
for (Gadget gadget : getCosmeticManager().getGadgetManager().getGadgets(GadgetType.Costume))
|
||||
{
|
||||
if (gadget instanceof OutfitTeam)
|
||||
{
|
||||
((OutfitTeam)gadget).setEnabled(event.GetState() == GameState.Recruit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*public void saveBasicStats(final Game game)
|
||||
|
Loading…
Reference in New Issue
Block a user