VoiceClientState - SocketSVC Docs
SocketSVC Docs

VoiceClientState

Whether a player is running the SocketSVC client mod.

Generated from source

Enum com.socketsvc.api.VoiceClientState — generated from VoiceClientState.java. Edit the Javadoc in the Java source, then run pnpm gen:api.

package com.socketsvc.api;

public enum VoiceClientState { ... }

Whether a player is running the SocketSVC client mod.

Three states rather than two, and the third is the one that matters. A client announces itself by registering the plugin channel the handshake travels on, which happens shortly after they join rather than at the instant they do - so for a moment after somebody arrives the honest answer is that nobody knows yet. Collapsing that into "no" is how a check ends up kicking people who did nothing wrong.

Constants

ConstantDescription
PRESENTThey have the client mod: it registered the handshake channel.
ABSENTThey do not: the grace period has passed and nothing was registered.
UNKNOWNNot yet known - they have only just joined, or they are not online at all.

Methods

present

public boolean present()

On this page

View as Markdown

Ask about this page