2013-08-29 08:20:36 +02:00
|
|
|
package nautilus.game.arcade.kit;
|
|
|
|
|
|
|
|
import mineplex.core.common.util.C;
|
|
|
|
import mineplex.core.common.util.UtilPlayer;
|
|
|
|
import nautilus.game.arcade.ArcadeFormat;
|
|
|
|
import nautilus.game.arcade.ArcadeManager;
|
|
|
|
|
|
|
|
import org.bukkit.entity.EntityType;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
import org.bukkit.inventory.ItemStack;
|
|
|
|
|
|
|
|
public abstract class SmashKit extends Kit
|
2013-09-04 03:55:19 +02:00
|
|
|
{
|
2013-08-29 08:20:36 +02:00
|
|
|
public SmashKit(ArcadeManager manager, String name,
|
|
|
|
KitAvailability kitAvailability, String[] kitDesc, Perk[] kitPerks,
|
|
|
|
EntityType entityType, ItemStack itemInHand)
|
|
|
|
{
|
|
|
|
super(manager, name, kitAvailability, kitDesc, kitPerks, entityType, itemInHand);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void DisplayDesc(Player player)
|
|
|
|
{
|
|
|
|
for (int i=0 ; i<3 ; i++)
|
|
|
|
UtilPlayer.message(player, "");
|
2013-09-04 03:55:19 +02:00
|
|
|
|
2013-08-29 08:20:36 +02:00
|
|
|
UtilPlayer.message(player, ArcadeFormat.Line);
|
|
|
|
|
2014-05-26 01:42:39 +02:00
|
|
|
UtilPlayer.message(player, "§aKit - §f§l" + GetName());
|
2013-09-02 06:40:06 +02:00
|
|
|
|
2013-08-29 08:20:36 +02:00
|
|
|
//Desc
|
|
|
|
for (String line : GetDesc())
|
|
|
|
{
|
|
|
|
UtilPlayer.message(player, C.cGray + " " + line);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Perk Descs
|
|
|
|
for (Perk perk : GetPerks())
|
|
|
|
{
|
|
|
|
if (!perk.IsVisible())
|
|
|
|
continue;
|
2013-09-02 06:40:06 +02:00
|
|
|
|
2013-08-29 08:20:36 +02:00
|
|
|
for (String line : perk.GetDesc())
|
|
|
|
{
|
|
|
|
UtilPlayer.message(player, C.cGray + " " + line);
|
|
|
|
}
|
|
|
|
}
|
2013-09-02 06:40:06 +02:00
|
|
|
|
2013-08-29 08:20:36 +02:00
|
|
|
UtilPlayer.message(player, ArcadeFormat.Line);
|
|
|
|
|
|
|
|
}
|
2013-09-02 06:40:06 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public int GetCost()
|
|
|
|
{
|
|
|
|
return 3000;
|
|
|
|
}
|
2013-08-29 08:20:36 +02:00
|
|
|
}
|