Add tracking to the support server for the Rainbow Bundle

This commit is contained in:
Sam 2017-10-30 11:14:52 +00:00 committed by Alexander Meech
parent 7d8bcdf944
commit c541ab87d6
2 changed files with 27 additions and 0 deletions

View File

@ -43,6 +43,7 @@ import mineplex.staffServer.salespackage.salespackages.OldChest;
import mineplex.staffServer.salespackage.salespackages.OmegaChest; import mineplex.staffServer.salespackage.salespackages.OmegaChest;
import mineplex.staffServer.salespackage.salespackages.Pet; import mineplex.staffServer.salespackage.salespackages.Pet;
import mineplex.staffServer.salespackage.salespackages.PowerPlayClub; import mineplex.staffServer.salespackage.salespackages.PowerPlayClub;
import mineplex.staffServer.salespackage.salespackages.RainbowBundle;
import mineplex.staffServer.salespackage.salespackages.RuneAmplifier; import mineplex.staffServer.salespackage.salespackages.RuneAmplifier;
import mineplex.staffServer.salespackage.salespackages.SalesPackageBase; import mineplex.staffServer.salespackage.salespackages.SalesPackageBase;
import mineplex.staffServer.salespackage.salespackages.SpringChest; import mineplex.staffServer.salespackage.salespackages.SpringChest;
@ -128,6 +129,7 @@ public class SalesPackageManager extends MiniPlugin
addSalesPackage(new ThankfulChest(this)); addSalesPackage(new ThankfulChest(this));
addSalesPackage(new HOGChest(this)); addSalesPackage(new HOGChest(this));
addSalesPackage(new TrickOrTreatChest2017(this)); addSalesPackage(new TrickOrTreatChest2017(this));
addSalesPackage(new RainbowBundle(this));
for (PetType petType : PetType.values()) for (PetType petType : PetType.values())
{ {

View File

@ -0,0 +1,25 @@
package mineplex.staffServer.salespackage.salespackages;
import org.bukkit.entity.Player;
import mineplex.staffServer.salespackage.SalesPackageManager;
public class RainbowBundle extends SalesPackageBase
{
public RainbowBundle(SalesPackageManager manager)
{
super(manager, "Rainbow Bundle");
}
@Override
public void displayToAgent(Player agent, String playerName)
{
addButton(agent, "/sales item " + playerName + " 1 ArrowTrail Rainbow Arrows", "Give Rainbow Arrows.");
addButton(agent, "/sales item " + playerName + " 1 DeathEffect Rainbow Death", "Give Rainbow Death.");
addButton(agent, "/sales item " + playerName + " 1 DoubleJump Rainbow Leap", "Give Rainbow Leap.");
addButton(agent, "/sales item " + playerName + " 1 Particle Rainbow Aura", "Give Rainbow Aura.");
agent.sendMessage(" ");
addBackButton(agent, playerName);
}
}