Class TownSetOutpostSpawnEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.town.TownSetOutpostSpawnEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Fired when a player uses /town set outpost
- Since:
- 0.100.2.7
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionTownSetOutpostSpawnEvent
(Town town, org.bukkit.entity.Player player, org.bukkit.Location newSpawn) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
@NotNull org.bukkit.Location
@NotNull org.bukkit.entity.Player
@NotNull Town
getTown()
void
setNewSpawn
(@NotNull org.bukkit.Location newSpawn) Methods inherited from class com.palmergames.bukkit.towny.event.CancellableTownyEvent
getCancelMessage, isCancelled, setCancelled, setCancelMessage
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
TownSetOutpostSpawnEvent
public TownSetOutpostSpawnEvent(Town town, org.bukkit.entity.Player player, org.bukkit.Location newSpawn)
-
-
Method Details
-
getTown
- Returns:
- The town for which this outpost spawn is being set.
-
getPlayer
@NotNull public @NotNull org.bukkit.entity.Player getPlayer()- Returns:
- The player that ran the command
-
getTownBlock
- Returns:
- The TownBlock where the outpost is located.
-
getNewSpawn
@NotNull public @NotNull org.bukkit.Location getNewSpawn()- Returns:
- The new outpost spawn location.
-
setNewSpawn
public void setNewSpawn(@NotNull @NotNull org.bukkit.Location newSpawn) -
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-