Class KickedFromServerEvent.Notify

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static KickedFromServerEvent.Notify create​(net.kyori.adventure.text.Component message)
      Notifies the player with the specified message but does nothing else.
      net.kyori.adventure.text.Component getMessage()  
      boolean isAllowed()
      Returns whether or not the event is allowed to proceed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
        Returns:
        whether or not the event is allowed to proceed
      • getMessage

        public net.kyori.adventure.text.Component getMessage()
      • create

        public static KickedFromServerEvent.Notify create​(net.kyori.adventure.text.Component message)
        Notifies the player with the specified message but does nothing else.
        Parameters:
        message - the server to send the player to
        Returns:
        the redirect result