Add clans box sales package
This commit is contained in:
parent
7a2864a701
commit
93a316e5e3
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user