public class WauzPlayerEventHomeChange extends java.lang.Object implements WauzPlayerEvent
Modifier and Type | Field and Description |
---|---|
private boolean |
fromCommand
If the event was triggered by a command.
|
private org.bukkit.Location |
innkeeperLocation
The location of the innkeeper, to set the home to.
|
private org.bukkit.inventory.ItemStack |
scroll
The scroll that triggered the event.
|
core
Constructor and Description |
---|
WauzPlayerEventHomeChange(org.bukkit.Location innkeeperLocation,
boolean fromCommand)
Creates an event to set the new home location of a player,
to the position of an innkeeper.
|
WauzPlayerEventHomeChange(org.bukkit.Location innkeeperLocation,
org.bukkit.inventory.ItemStack scroll)
Creates an event to set the new home location of a player,
to the position of an innkeeper.
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute(org.bukkit.entity.Player player)
Executes the event for the given player.
|
private org.bukkit.Location innkeeperLocation
private boolean fromCommand
private org.bukkit.inventory.ItemStack scroll
public WauzPlayerEventHomeChange(org.bukkit.Location innkeeperLocation, boolean fromCommand)
innkeeperLocation
- The location of the innkeeper, to set the home to.fromCommand
- If the event was triggered by a command.public WauzPlayerEventHomeChange(org.bukkit.Location innkeeperLocation, org.bukkit.inventory.ItemStack scroll)
innkeeperLocation
- The location of the innkeeper (in this case likely the player himself), to set the home to.scroll
- The scroll that triggered the event.public boolean execute(org.bukkit.entity.Player player)
execute
in interface WauzPlayerEvent
player
- The player for the execution.PlayerConfigurator.setCharacterHearthstone(Player, org.bukkit.Location, String)