Class KickedFromServerEvent.RedirectPlayer

    • 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.RedirectPlayer create​(RegisteredServer server,
                                                                  net.kyori.adventure.text.Component message)
        Creates a new redirect result to forward the player to the specified server.
        Parameters:
        server - the server to send the player to
        Returns:
        the redirect result