Class KickedFromServerEvent.Notify

    • Method Detail

      • isAllowed

        public boolean isAllowed()
        Description copied from interface: ResultedEvent.Result
        Returns whether or not the event is allowed to proceed. Plugins may choose to skip denied events, and the proxy will respect the result of this method.
        Specified by:
        isAllowed in interface ResultedEvent.Result
        whether or not the event is allowed to proceed
      • getMessage

        public net.kyori.text.Component getMessage()
      • getMessageComponent

        public Component getMessageComponent()
      • create

        public static KickedFromServerEvent.Notify create​(Component message)
        Notifies the player with the specified message but does nothing else.
        message - the server to send the player to
        the redirect result