Class AsyncPlayerClickExternalMessageBoxEvent

java.lang.Object
org.bukkit.event.Event
xyz.gmitch215.socketmc.events.SocketEvent
xyz.gmitch215.socketmc.events.input.AsyncPlayerClickExternalMessageBoxEvent

public class AsyncPlayerClickExternalMessageBoxEvent extends SocketEvent
Called when a player clicks a button from an external message box, generated from Instruction.EXTERNAL_WINDOW_MESSAGE_BOX.
  • Constructor Details

    • AsyncPlayerClickExternalMessageBoxEvent

      public AsyncPlayerClickExternalMessageBoxEvent(boolean isSuccess, @NotNull @NotNull SocketPlayer player)
      Creates a new AsyncPlayerClickExternalMessageBoxEvent.
      Parameters:
      isSuccess - Whether the player exited the window with success
      player - The player associated with this event
  • Method Details

    • isSuccess

      public boolean isSuccess()
      Returns whether the player did not click on cancel.
      Returns:
      Whether the window was closed with success