Class KonquestTownSettleEvent

java.lang.Object
org.bukkit.event.Event

public class KonquestTownSettleEvent extends KonquestTownEvent
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.

  • Constructor Details

    • KonquestTownSettleEvent

      public KonquestTownSettleEvent(KonquestAPI konquest, KonquestTown town, KonquestPlayer player, KonquestKingdom kingdom)
      Default constructor
      Parameters:
      konquest - The API instance
      town - The town
      player - The player
      kingdom - The kingdom
  • Method Details

    • getPlayer

      public KonquestPlayer getPlayer()
      Gets the player that settled the town. This player is the town lord.
      Returns:
      The player
    • getKingdom

      public KonquestKingdom getKingdom()
      Gets the kingdom of the new town.
      Returns:
      The kingdom