Class PlayerSignCommandPreprocessEvent

All Implemented Interfaces:
Cancellable

@NullMarked public class PlayerSignCommandPreprocessEvent extends PlayerCommandPreprocessEvent
Called when a Player clicks a side on a sign that causes a command to run.

This command is run with elevated permissions which allows players to access commands on signs they wouldn't normally be able to run.

  • Constructor Details

  • Method Details

    • getSign

      public Sign getSign()
      Gets the sign that the command originated from.
      Returns:
      the sign
    • getSide

      public Side getSide()
      Gets the side of the sign that the command originated from.
      Returns:
      the sign side