This commit is contained in:
LCastr0 2016-12-17 19:15:45 -02:00 committed by cnr
parent e8d698ac37
commit dd9729c0f4

View File

@ -44,7 +44,7 @@ public class EternalTaunt extends TauntGadget
public EternalTaunt(GadgetManager manager)
{
super(manager, "Eternal Taunt", UtilText.splitLinesToArray(new String[]{C.cGray + "Although the Eternal has been around forever, he waited to long for a worthy opponent he turned to bones.",
super(manager, "Eternal Taunt", UtilText.splitLinesToArray(new String[]{C.cGray + "Although the Eternal has been around forever, he waited to long for a worthy opponent and he turned to bones.",
"",
C.cWhite + "Use /taunt in game to show how long you've been waiting.",
C.cRed + "Cannot be used while in PvP!"}, LineFormat.LORE),
@ -56,29 +56,18 @@ public class EternalTaunt extends TauntGadget
addDisabledGames(GameType.SMASH, GameType.SMASHTEAMS, GameType.SMASHDOMINATION);
}
@Override
public void disableCustom(Player player, boolean message)
{
finish(player);
}
@Override
public void onStart(Player player)
{
if (!Recharge.Instance.use(player, getName(), COOLDOWN, true, false, "Cosmetics"))
return;
UtilFirework.playFirework(player.getLocation(), FireworkEffect.builder().with(FireworkEffect.Type.BALL_LARGE).withColor(Color.fromRGB(255, 175, 175)).withFade(Color.RED).build());
/*List<EternalClock> clocks = new ArrayList<>();
EnableArcadeSpawnEvent enableArcadeSpawnEvent = new EnableArcadeSpawnEvent(true);
Bukkit.getPluginManager().callEvent(enableArcadeSpawnEvent);
// Creates armor stands
for (EternalClock.ClockPosition clockPosition : EternalClock.ClockPosition.values())
{
EternalClock eternalClock = new EternalClock(player, clockPosition, this);
eternalClock.createStand();
clocks.add(eternalClock);
}
_clocks.put(player.getUniqueId(), clocks);
enableArcadeSpawnEvent = new EnableArcadeSpawnEvent(false);
Bukkit.getPluginManager().callEvent(enableArcadeSpawnEvent);*/
_clocks.put(player.getUniqueId(), new ArrayList<>());