Package konquest.api.event.town
Class KonquestTownSettleEvent
java.lang.Object
org.bukkit.event.Event
konquest.api.event.KonquestEvent
konquest.api.event.town.KonquestTownEvent
konquest.api.event.town.KonquestTownSettleEvent
Called when a new town is settled by a player.
This event cannot be cancelled, as it is called after the town is created.
To prevent players settling towns, listen for KonquestPlayerSettleEvent and cancel it.
- Author:
- Rumsfield
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionKonquestTownSettleEvent(KonquestAPI konquest, KonquestTown town, KonquestPlayer player, KonquestKingdom kingdom) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionGets the kingdom of the new town.Gets the player that settled the town.Methods inherited from class konquest.api.event.town.KonquestTownEvent
getTownMethods inherited from class konquest.api.event.KonquestEvent
getHandlerList, getHandlers, getKonquestMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
KonquestTownSettleEvent
public KonquestTownSettleEvent(KonquestAPI konquest, KonquestTown town, KonquestPlayer player, KonquestKingdom kingdom) Default constructor- Parameters:
konquest- The API instancetown- The townplayer- The playerkingdom- The kingdom
-
-
Method Details
-
getPlayer
Gets the player that settled the town. This player is the town lord.- Returns:
- The player
-
getKingdom
Gets the kingdom of the new town.- Returns:
- The kingdom
-