java.lang.Object
io.github._4drian3d.authmevelocity.api.velocity.event.ServerResult
All Implemented Interfaces:
ResultedEvent.Result

public final class ServerResult extends Object implements ResultedEvent.Result
A result that produces a resulting server
  • Method Details

    • isAllowed

      public boolean isAllowed()
      Specified by:
      isAllowed in interface ResultedEvent.Result
    • getServer

      public RegisteredServer getServer()
      Obtain the resulted server
      Returns:
      the resulted server if is allowed, else null
    • allowed

      public static ServerResult allowed(RegisteredServer server)
      Allowed ServerResult
      Parameters:
      server - the resulted server
      Returns:
      A ServerResult with allowed result and custom server result
    • denied

      public static ServerResult denied()
      Denied ServerResult
      Returns:
      A ServerResult with denied result and null server