Added a Title for the winners of the BOTB Winter Haven event
This commit is contained in:
parent
285476b902
commit
e8e9eb3052
@ -23,6 +23,7 @@ import mineplex.core.titles.commands.GiveTrackCommand;
|
|||||||
import mineplex.core.titles.tracks.award.AlienInvasionTrack;
|
import mineplex.core.titles.tracks.award.AlienInvasionTrack;
|
||||||
import mineplex.core.titles.tracks.award.AprilFools2017Track;
|
import mineplex.core.titles.tracks.award.AprilFools2017Track;
|
||||||
import mineplex.core.titles.tracks.award.Bridges2017Track;
|
import mineplex.core.titles.tracks.award.Bridges2017Track;
|
||||||
|
import mineplex.core.titles.tracks.award.Bridges2017WinterTrack;
|
||||||
import mineplex.core.titles.tracks.award.CCIIPublicTrack;
|
import mineplex.core.titles.tracks.award.CCIIPublicTrack;
|
||||||
import mineplex.core.titles.tracks.award.CCIITrack;
|
import mineplex.core.titles.tracks.award.CCIITrack;
|
||||||
import mineplex.core.titles.tracks.award.CastleSiegeTesterTrack;
|
import mineplex.core.titles.tracks.award.CastleSiegeTesterTrack;
|
||||||
@ -125,6 +126,7 @@ public class TrackManager extends MiniPlugin
|
|||||||
registerTrack(new Minestrike2017Track());
|
registerTrack(new Minestrike2017Track());
|
||||||
registerTrack(new CCIITrack());
|
registerTrack(new CCIITrack());
|
||||||
registerTrack(new CCIIPublicTrack());
|
registerTrack(new CCIIPublicTrack());
|
||||||
|
registerTrack(new Bridges2017WinterTrack());
|
||||||
|
|
||||||
// Staff tracks
|
// Staff tracks
|
||||||
registerTrack(new BuilderTrack());
|
registerTrack(new BuilderTrack());
|
||||||
|
@ -0,0 +1,46 @@
|
|||||||
|
package mineplex.core.titles.tracks.award;
|
||||||
|
|
||||||
|
import net.md_5.bungee.api.ChatColor;
|
||||||
|
|
||||||
|
import mineplex.core.titles.tracks.ItemizedTrack;
|
||||||
|
import mineplex.core.titles.tracks.TrackFormat;
|
||||||
|
import mineplex.core.titles.tracks.TrackTier;
|
||||||
|
import mineplex.core.titles.tracks.custom.ScrollAnimation;
|
||||||
|
|
||||||
|
public class Bridges2017WinterTrack extends ItemizedTrack
|
||||||
|
{
|
||||||
|
|
||||||
|
private static final String TITLE = "❄ 2017 Haven Champion ❄";
|
||||||
|
private static String[] buildAnimation()
|
||||||
|
{
|
||||||
|
return new ScrollAnimation(TITLE)
|
||||||
|
.withPrimaryColour(ChatColor.AQUA)
|
||||||
|
.withSecondaryColour(ChatColor.WHITE)
|
||||||
|
.withTertiaryColour(ChatColor.BLUE)
|
||||||
|
.bold()
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Bridges2017WinterTrack()
|
||||||
|
{
|
||||||
|
super(
|
||||||
|
"tournament-br-2017-winter",
|
||||||
|
ChatColor.AQUA,
|
||||||
|
"BotB 2017 Winter",
|
||||||
|
"2017 Haven Champion",
|
||||||
|
"This track is awarded to the winners of the 2017 BotB Winter Haven Tournament",
|
||||||
|
true);
|
||||||
|
|
||||||
|
special();
|
||||||
|
|
||||||
|
getRequirements()
|
||||||
|
.addTier(new TrackTier(
|
||||||
|
TITLE,
|
||||||
|
null,
|
||||||
|
this::owns,
|
||||||
|
new TrackFormat(ChatColor.AQUA)
|
||||||
|
.animated(2, buildAnimation())
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user