Add clans box sales package

This commit is contained in:
Alexander Meech 2017-06-16 18:20:21 -04:00 committed by GitHub
parent 7a2864a701
commit 93a316e5e3

View File

@ -0,0 +1,22 @@
package mineplex.staffServer.salespackage.salespackages;
import mineplex.staffServer.salespackage.SalesPackageManager;
import org.bukkit.entity.Player;
public class ClansBox extends SalesPackageBase
{
private String _boxType;
public ClansBox(SalesPackageManager manager, String boxType)
{
super(manager, "1 Clans " + boxType + " Box");
_boxType = boxType;
}
public void displayToAgent(Player agent, String playerName)
{
addButton(agent, "/sales item " + playerName + " 1 Item Clans " + _boxType + " Box", "Give 1 Clans " + _boxType + " Box.");
agent.sendMessage(" ");
addBackButton(agent, playerName);
}
}