Remove a rouge class
This commit is contained in:
parent
89e820e442
commit
3f47ae6e2e
@ -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<String> _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<String> getDesc()
|
||||
{
|
||||
return _desc;
|
||||
}
|
||||
|
||||
public int getData()
|
||||
{
|
||||
return _data;
|
||||
}
|
||||
|
||||
public boolean hasKits()
|
||||
{
|
||||
return _hasKits;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user