From 3f47ae6e2e5eb342d6253411de51754610be05a2 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 31 Jul 2017 16:49:08 +0100 Subject: [PATCH] Remove a rouge class --- .../gamemodifiers/GameModifierType.java | 76 ------------------- 1 file changed, 76 deletions(-) delete mode 100644 Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/gamemodifiers/GameModifierType.java diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/gamemodifiers/GameModifierType.java b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/gamemodifiers/GameModifierType.java deleted file mode 100644 index 018092c15..000000000 --- a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/gamemodifiers/GameModifierType.java +++ /dev/null @@ -1,76 +0,0 @@ -package mineplex.core.gadget.gadgets.gamemodifiers; - -import java.util.List; - -import org.bukkit.Material; -import org.bukkit.inventory.ItemStack; - -import mineplex.core.common.util.C; -import mineplex.core.common.util.LineFormat; -import mineplex.core.common.util.UtilText; -import mineplex.core.itemstack.ItemStackFactory; - -/** - * The game modifier type. Normal a specific game. - */ - -public enum GameModifierType -{ - - MineStrike("MineStrike", new String[]{"Apply custom gun models and skin to use ingame"}, Material.TNT, 0), - SurvivalGames("Survival Games", new String[]{"Placeholder"}, Material.DIAMOND_SWORD, 0, true), - Bridges("Bridges", new String[]{"Placeholder"}, Material.IRON_PICKAXE, 0, true), - - GemHunters("Gem Hunters", new String[] { "" }, Material.EMERALD, 0) - - ; - - private String _name; - private List _desc; - private Material _mat; - private int _data; - private boolean _hasKits = false; - - GameModifierType(String name, String[] desc, Material mat, int data, boolean hasKits) - { - this(name, desc, mat, data); - _hasKits = hasKits; - } - - GameModifierType(String name, String[] desc, Material mat, int data) - { - _name = name; - _mat = mat; - - _desc = UtilText.splitLines(desc, LineFormat.LORE); - for(int i = 0; i < _desc.size(); i++) if(!_desc.get(i).contains("ยง.")) _desc.set(i, C.cGray + _desc.get(i)); - - _data = data; - } - - public ItemStack getItemStack() - { - return ItemStackFactory.Instance.CreateStack(_mat, (byte) _data, 1, C.cGreen + C.Bold + _name, _desc); - } - - public String getName() - { - return _name; - } - - public List getDesc() - { - return _desc; - } - - public int getData() - { - return _data; - } - - public boolean hasKits() - { - return _hasKits; - } - -}