Class DistrictCreatedEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.plot.district.DistrictAddEvent
com.palmergames.bukkit.towny.event.plot.district.DistrictCreatedEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Called when a district is created.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionDistrictCreatedEvent
(District district, TownBlock townBlock, org.bukkit.entity.Player player) -
Method Summary
Methods inherited from class com.palmergames.bukkit.towny.event.plot.district.DistrictAddEvent
getDistrict, getHandlerList, getHandlers, getPlayer
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
-
DistrictCreatedEvent
-
-
Method Details
-
getTownBlock
- Overrides:
getTownBlock
in classDistrictAddEvent
- Returns:
- The initial townblock that this district is being created with.
-