Package konquest.api.event.camp
Class KonquestCampCreateEvent
java.lang.Object
org.bukkit.event.Event
konquest.api.event.KonquestEvent
konquest.api.event.camp.KonquestCampEvent
konquest.api.event.camp.KonquestCampCreateEvent
Called when a new camp is created by a barbarian player.
This event cannot be cancelled, as it is called after the camp is created.
To prevent players creating camps, listen for KonquestPlayerCampEvent 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
ConstructorsConstructorDescriptionKonquestCampCreateEvent(KonquestAPI konquest, KonquestCamp camp, KonquestPlayer player) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionGets the player that created the camp.Methods inherited from class konquest.api.event.camp.KonquestCampEvent
getCampMethods inherited from class konquest.api.event.KonquestEvent
getHandlerList, getHandlers, getKonquestMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
KonquestCampCreateEvent
Default constructor- Parameters:
konquest- The API instancecamp- The campplayer- The player
-
-
Method Details
-
getPlayer
Gets the player that created the camp.- Returns:
- The player
-