public class WauzPlayerEventMailClaim extends java.lang.Object implements WauzPlayerEvent
Modifier and Type | Field and Description |
---|---|
private long |
coinAttachment
The coin attachment of the mail.
|
private org.bukkit.inventory.ItemStack |
itemAttachment
The item attachment of the mail.
|
private org.bukkit.inventory.ItemStack |
mailItemStack
The item stack, representing the mail content.
|
private java.lang.String |
mailName
The name of the mail.
|
core
Constructor and Description |
---|
WauzPlayerEventMailClaim(org.bukkit.entity.Player player,
java.lang.String mailName)
Creates an event to claim the given mail.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute(org.bukkit.entity.Player player)
Executes the event for the given player.
|
org.bukkit.inventory.ItemStack |
getMailItemStack() |
private java.lang.String mailName
private org.bukkit.inventory.ItemStack mailItemStack
private long coinAttachment
private org.bukkit.inventory.ItemStack itemAttachment
public WauzPlayerEventMailClaim(org.bukkit.entity.Player player, java.lang.String mailName)
player
- The player who owns the mail.mailName
- The name of the mail.public boolean execute(org.bukkit.entity.Player player)
execute
in interface WauzPlayerEvent
player
- The player for the execution.PlayerMailConfigurator.deletePlayerMail(Player, String)
public org.bukkit.inventory.ItemStack getMailItemStack()