Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
bc8aff31cb
@ -19,6 +19,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 +194,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,6 +27,8 @@ import mineplex.core.recharge.Recharge;
|
||||
|
||||
public class OutfitTeam extends OutfitGadget
|
||||
{
|
||||
private boolean _enabled = true;
|
||||
|
||||
private HashMap<String, Color> _colorSetting = new HashMap<String, Color>();
|
||||
|
||||
public OutfitTeam(GadgetManager manager, String name,
|
||||
@ -100,6 +102,9 @@ public class OutfitTeam extends OutfitGadget
|
||||
@EventHandler(priority=EventPriority.LOWEST)
|
||||
public void setColor(PlayerCommandPreprocessEvent event)
|
||||
{
|
||||
if (!_enabled)
|
||||
return;
|
||||
|
||||
Player player = event.getPlayer();
|
||||
|
||||
if (!event.getMessage().toLowerCase().startsWith("/team"))
|
||||
@ -235,4 +240,9 @@ public class OutfitTeam extends OutfitGadget
|
||||
{
|
||||
return _colorSetting.get(player.getName());
|
||||
}
|
||||
|
||||
public void setEnabled(boolean var)
|
||||
{
|
||||
_enabled = var;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -63,6 +63,9 @@ import mineplex.core.donation.DonationManager;
|
||||
import mineplex.core.elo.EloManager;
|
||||
import mineplex.core.energy.Energy;
|
||||
import mineplex.core.explosion.Explosion;
|
||||
import mineplex.core.gadget.gadgets.OutfitTeam;
|
||||
import mineplex.core.gadget.types.Gadget;
|
||||
import mineplex.core.gadget.types.GadgetType;
|
||||
import mineplex.core.hologram.HologramManager;
|
||||
import mineplex.core.inventory.InventoryManager;
|
||||
import mineplex.core.itemstack.ItemStackFactory;
|
||||
|
Loading…
Reference in New Issue
Block a user