Class SignEditEvent

java.lang.Object
com.welcome234.pluginsystem.events.SignEditEvent

public class SignEditEvent extends Object
Called when a player edits a sign
  • Constructor Details

    • SignEditEvent

      public SignEditEvent(String playername, int x, int y, boolean endDimension, String text)
  • Method Details

    • getPlayer

      public Player getPlayer()
      Gets the player who edited this sign
      Returns:
      Player instance
    • getX

      public int getX()
      Gets the X coordinate of the sign
      Returns:
      X-coordinate
    • getY

      public int getY()
      Gets the Y coordinate of the sign
      Returns:
      Y-coordinate
    • getDimension

      public boolean getDimension()
      Gets the dimension of the sign
      Returns:
      Dimension (false = Overworld, true = End)
    • getSignText

      public String getSignText()
      Gets the edited sign message
      Returns:
      Sign message
    • isCancelled

      public boolean isCancelled()
      Gets whether this event is cancelled
      Returns:
      Whether cancelled
    • setCancelled

      public void setCancelled(boolean cancelled)
      Sets the cancellation status of this event
      Parameters:
      cancelled - Whether cancelled