diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/salespackage/SalesPackageManager.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/salespackage/SalesPackageManager.java index 500435497..f29ebd53e 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/salespackage/SalesPackageManager.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/salespackage/SalesPackageManager.java @@ -48,6 +48,7 @@ import mineplex.staffServer.salespackage.salespackages.SalesPackageBase; import mineplex.staffServer.salespackage.salespackages.SpringChest; import mineplex.staffServer.salespackage.salespackages.StPatricksChest; import mineplex.staffServer.salespackage.salespackages.ThankfulChest; +import mineplex.staffServer.salespackage.salespackages.TrickOrTreatChest2017; import mineplex.staffServer.salespackage.salespackages.TrickOrTreatChest; public class SalesPackageManager extends MiniPlugin @@ -126,6 +127,7 @@ public class SalesPackageManager extends MiniPlugin addSalesPackage(new TrickOrTreatChest(this)); addSalesPackage(new ThankfulChest(this)); addSalesPackage(new HOGChest(this)); + addSalesPackage(new TrickOrTreatChest2017(this)); for (PetType petType : PetType.values()) { @@ -200,7 +202,7 @@ public class SalesPackageManager extends MiniPlugin } else if (salesPackage instanceof MythicalChest || salesPackage instanceof AncientChest || salesPackage instanceof OldChest || salesPackage instanceof IlluminatedChest || salesPackage instanceof FreedomChest || salesPackage instanceof HauntedChest || salesPackage instanceof TrickOrTreatChest || salesPackage instanceof ThankfulChest || salesPackage instanceof GingerbreadChest || salesPackage instanceof MinestrikeChest || salesPackage instanceof LoveChest || salesPackage instanceof StPatricksChest - || salesPackage instanceof SpringChest || salesPackage instanceof HOGChest) + || salesPackage instanceof SpringChest || salesPackage instanceof HOGChest || salesPackage instanceof TrickOrTreatChest2017) { chestBuilder = chestBuilder.extra("[").color("gray").extra(salesPackage.getName()).color("green").click("run_command", "/display " + playerName + " " + salesPackage.getName()).extra("] ").color("gray"); } diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/salespackage/salespackages/TrickOrTreatChest2017.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/salespackage/salespackages/TrickOrTreatChest2017.java new file mode 100644 index 000000000..5c57c8525 --- /dev/null +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/salespackage/salespackages/TrickOrTreatChest2017.java @@ -0,0 +1,20 @@ +package mineplex.staffServer.salespackage.salespackages; + +import org.bukkit.entity.Player; + +import mineplex.staffServer.salespackage.SalesPackageManager; + +public class TrickOrTreatChest2017 extends SalesPackageBase +{ + public TrickOrTreatChest2017(SalesPackageManager manager) + { + super(manager, "1 Trick or Treat Chest 2017"); + } + + public void displayToAgent(Player agent, String playerName) + { + addButton(agent, "/sales item " + playerName + " 1 Item Trick or Treat Chest 2017", "Give 1 Trick or Treat Chest 2017."); + agent.sendMessage(" "); + addBackButton(agent, playerName); + } +} \ No newline at end of file