2013-08-27 17:14:08 +02:00
|
|
|
package nautilus.game.arcade.kit;
|
|
|
|
|
|
|
|
import org.bukkit.ChatColor;
|
|
|
|
|
|
|
|
public enum KitAvailability
|
|
|
|
{
|
|
|
|
Free(ChatColor.YELLOW),
|
|
|
|
Green(ChatColor.GREEN),
|
|
|
|
Blue(ChatColor.AQUA),
|
|
|
|
Hide(ChatColor.YELLOW),
|
|
|
|
Null(ChatColor.BLACK);
|
|
|
|
|
|
|
|
ChatColor _color;
|
|
|
|
|
|
|
|
KitAvailability(ChatColor color)
|
|
|
|
{
|
|
|
|
_color = color;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ChatColor GetColor()
|
|
|
|
{
|
|
|
|
return _color;
|
|
|
|
}
|
2014-08-04 05:44:01 +02:00
|
|
|
|
|
|
|
public int getDefaultCost()
|
|
|
|
{
|
|
|
|
int cost = 0;
|
|
|
|
|
|
|
|
switch (this)
|
|
|
|
{
|
|
|
|
case Blue:
|
|
|
|
cost = 5000;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
cost = 2000;
|
|
|
|
}
|
|
|
|
|
|
|
|
return cost;
|
|
|
|
}
|
2013-08-27 17:14:08 +02:00
|
|
|
}
|