|
Callback interface for server authentication. You need to supply one of these for Server::setAuthenticator. If an added callback ever throws an exception or goes away, it will be automatically removed. Please note that unlike ServerCallback and ServerContextCallback, these methods are called synchronously. If the response lags, the entire murmur server will lag. Also note that, as the method calls are synchronous, calling a function from Server or Meta will deadlock the server.
Called to authenticate a player. If you do not know the playername in question, always return -2 from this method to fall through to normal database authentication. Note that if authentication succeeds, murmur will create a record of the player in it's database, reserving the playername and id so it cannot be used for normal database authentication.
PlayerID of authenticated player, -1 for authentication failures and -2 for unknown player (fallthrough).
Map a name to a player id.
Player id or -2 for unknown name.
Map a player to a Player id.
Name of player or empty string for unknown id.
Map a player to a custom Texture.
User texture or an empty texture for unknwon players or players without textures.
|