Class KonquestCampCreateEvent
java.lang.Object
org.bukkit.event.Event
com.github.rumsfield.konquest.api.event.KonquestEvent
com.github.rumsfield.konquest.api.event.camp.KonquestCampEvent
com.github.rumsfield.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.
-
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 com.github.rumsfield.konquest.api.event.camp.KonquestCampEvent
getCamp
Methods inherited from class com.github.rumsfield.konquest.api.event.KonquestEvent
getHandlerList, getHandlers, getKonquest
Methods 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
-