Exported cServer:ShouldAuthenticate to Lua API.
This commit is contained in:
parent
1b97e4e6ff
commit
2218f31cde
@ -2172,10 +2172,11 @@ end
|
||||
{
|
||||
GetDescription = { Return = "string", Notes = "Returns the server description set in the settings.ini." },
|
||||
GetMaxPlayers = { Return = "number", Notes = "Returns the max amount of players who can join the server." },
|
||||
SetMaxPlayers = { Params = "number", Notes = "Sets the max amount of players who can join." },
|
||||
GetNumPlayers = { Return = "number", Notes = "Returns the amount of players online." },
|
||||
GetServerID = { Return = "string", Notes = "Returns the ID of the server?" },
|
||||
IsHardcore = { Params = "", Return = "bool", Notes = "Returns true if the server is hardcore (players get banned on death)." },
|
||||
SetMaxPlayers = { Params = "number", Notes = "Sets the max amount of players who can join." },
|
||||
ShouldAuthenticate = { Params = "", Return = "bool", Notes = "Returns true iff the server is set to authenticate players (\"online mode\")." },
|
||||
},
|
||||
}, -- cServer
|
||||
|
||||
|
@ -120,7 +120,7 @@ public: // tolua_export
|
||||
const AString & GetPublicKeyDER(void) const { return m_PublicKeyDER; }
|
||||
|
||||
/** Returns true if authentication has been turned on in server settings. */
|
||||
bool ShouldAuthenticate(void) const { return m_ShouldAuthenticate; }
|
||||
bool ShouldAuthenticate(void) const { return m_ShouldAuthenticate; } // tolua_export
|
||||
|
||||
/** Returns true if offline UUIDs should be used to load data for players whose normal UUIDs cannot be found.
|
||||
Loaded from the settings.ini [PlayerData].LoadOfflinePlayerData setting. */
|
||||
|
Loading…
Reference in New Issue
Block a user