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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)byte[]getResponse()Returns the response to the message.inthashCode()booleanisAllowed()Returns whether or not the event is allowed to proceed.static ServerLoginPluginMessageEvent.ResponseResultreply(byte[] response)StringtoString()static ServerLoginPluginMessageEvent.ResponseResultunknown()
-
-
-
Method Detail
-
isAllowed
public boolean isAllowed()
Description copied from interface:ResultedEvent.ResultReturns 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:
isAllowedin 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
public static ServerLoginPluginMessageEvent.ResponseResult unknown()
-
reply
public static ServerLoginPluginMessageEvent.ResponseResult reply(byte[] response)
-
-