Package nl.minetopiasdb.api.events.plots
Class PlotDeleteEvent
java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.plots.PlotDeleteEvent
public class PlotDeleteEvent
extends org.bukkit.event.Event
Event thrown whenever someone deletes a plot using /delplot
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPlotDeleteEvent
(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 delete command.com.sk89q.worldguard.protection.regions.ProtectedRegion
Plot deleted by /plot deleteorg.bukkit.World
getWorld()
The world where the plot has been deletedMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlotDeleteEvent
public PlotDeleteEvent(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 delete command.- Returns:
- player who deleted the plot
-
getRegion
public com.sk89q.worldguard.protection.regions.ProtectedRegion getRegion()Plot deleted by /plot delete- Returns:
- The deleted plot
-
getWorld
public org.bukkit.World getWorld()The world where the plot has been deleted- Returns:
- World where the plot was deleted
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-