public class WauzPlayerEventMaterialsSell extends java.lang.Object implements WauzPlayerEvent
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
inventoryName
The name of the inventory to sell the contents of.
|
core
Constructor and Description |
---|
WauzPlayerEventMaterialsSell(java.lang.String inventoryName)
Creates an event to buy a title.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute(org.bukkit.entity.Player player)
Executes the event for the given player.
|
private java.lang.String inventoryName
public WauzPlayerEventMaterialsSell(java.lang.String inventoryName)
inventoryName
- The name of the inventory to sell the contents of.public boolean execute(org.bukkit.entity.Player player)
execute
in interface WauzPlayerEvent
player
- The player for the execution.WauzShopActions.sell(Player, ItemStack, boolean)
,
MaterialPouch.getInventory(Player, String)
,
MaterialPouch.open(Player, String)