Class ServerLoginPluginMessageEvent.ResponseResult
java.lang.Object
com.velocitypowered.api.event.player.ServerLoginPluginMessageEvent.ResponseResult
- All Implemented Interfaces:
ResultedEvent.Result
- Enclosing class:
- ServerLoginPluginMessageEvent
public static class ServerLoginPluginMessageEvent.ResponseResult
extends Object
implements ResultedEvent.Result
The result class, containing a response to the login plugin message sent by the server.
-
Method Details
-
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 interfaceResultedEvent.Result
- Returns:
- whether or not the event is allowed to proceed
-
getResponse
public byte[] getResponse()Returns the response to the message.- Returns:
- the response to the message
- Throws:
IllegalStateException
- if there is no reply (an unknown message)
-
unknown
-
reply
-
equals
-
hashCode
public int hashCode() -
toString
-