Package com.plotsquared.core.events
Class PlotComponentSetEvent
java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlotComponentSetEvent
Called when a plot component is set
-
Constructor Summary
ConstructorDescriptionPlotComponentSetEvent
(Plot plot, String component, Pattern pattern) PlotComponentSetEvent: Called when a player attempts to set the component of a plot (e.g. -
Method Summary
Modifier and TypeMethodDescriptionGet the component which was setGet the pattern being setGet the PlotIdgetWorld()
Get the world namevoid
setComponent
(String component) Change the component being setvoid
setPattern
(Pattern pattern) Change the pattern being setMethods inherited from class com.plotsquared.core.events.PlotEvent
getEventName, getPlot
-
Constructor Details
-
PlotComponentSetEvent
PlotComponentSetEvent: Called when a player attempts to set the component of a plot (e.g. walls)- Parameters:
plot
- The plot having its component setcomponent
- The component being setpattern
- The pattern the component is being set to
-
-
Method Details
-
getPlotId
Get the PlotId- Returns:
- PlotId
-
getWorld
Get the world name- Returns:
- String
-
getComponent
Get the component which was set- Returns:
- Component name
-
setComponent
Change the component being set- Parameters:
component
- the component to set
-
getPattern
Get the pattern being set- Returns:
- Pattern
-
setPattern
Change the pattern being set- Parameters:
pattern
- the pattern to set
-