Package nl.minetopiasdb.api.events.plots
Class PlotCreateEvent
java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.plots.PlotCreateEvent
public class PlotCreateEvent
extends org.bukkit.event.Event
Event thrown when someone creates a plot using /padd
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPlotCreateEvent
(org.bukkit.entity.Player player, com.sk89q.worldguard.protection.regions.ProtectedRegion pr, org.bukkit.World world) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
Get the player who executed the /plot create command.com.sk89q.worldguard.protection.regions.ProtectedRegion
Plot created by /plot createorg.bukkit.World
getWorld()
The world where the plot has been createdMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlotCreateEvent
public PlotCreateEvent(org.bukkit.entity.Player player, com.sk89q.worldguard.protection.regions.ProtectedRegion pr, org.bukkit.World world)
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer()Get the player who executed the /plot create command.- Returns:
- player who created the plot
-
getRegion
public com.sk89q.worldguard.protection.regions.ProtectedRegion getRegion()Plot created by /plot create- Returns:
- The created plot
-
getWorld
public org.bukkit.World getWorld()The world where the plot has been created- Returns:
- World where the plot was created
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-