Class PlotComponentSetEvent

java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlotComponentSetEvent

public class PlotComponentSetEvent extends PlotEvent
Called when a plot component is set
  • Constructor Details

    • PlotComponentSetEvent

      public PlotComponentSetEvent(Plot plot, String component, com.sk89q.worldedit.function.pattern.Pattern pattern)
      PlotComponentSetEvent: Called when a player attempts to set the component of a plot (e.g. walls)
      Parameters:
      plot - The plot having its component set
      component - The component being set
      pattern - The pattern the component is being set to
  • Method Details

    • getPlotId

      public PlotId getPlotId()
      Get the PlotId
      Returns:
      PlotId
    • getWorld

      public String getWorld()
      Get the world name
      Returns:
      String
    • getComponent

      public String getComponent()
      Get the component which was set
      Returns:
      Component name
    • setComponent

      public void setComponent(String component)
      Change the component being set
      Parameters:
      component - the component to set
    • getPattern

      public com.sk89q.worldedit.function.pattern.Pattern getPattern()
      Get the pattern being set
      Returns:
      Pattern
    • setPattern

      public void setPattern(com.sk89q.worldedit.function.pattern.Pattern pattern)
      Change the pattern being set
      Parameters:
      pattern - the pattern to set