summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-20 22:21:41 +0200
committerMattes D <github@xoft.cz>2014-08-20 22:21:41 +0200
commit2218f31cde5d04157469de0d5164059ffb8a6bca (patch)
tree805679baceec73d8cd1d88a3bb7951d2225eff9a
parentcPlayer: Exported the LoadRank function to Lua API. (diff)
downloadcuberite-2218f31cde5d04157469de0d5164059ffb8a6bca.tar
cuberite-2218f31cde5d04157469de0d5164059ffb8a6bca.tar.gz
cuberite-2218f31cde5d04157469de0d5164059ffb8a6bca.tar.bz2
cuberite-2218f31cde5d04157469de0d5164059ffb8a6bca.tar.lz
cuberite-2218f31cde5d04157469de0d5164059ffb8a6bca.tar.xz
cuberite-2218f31cde5d04157469de0d5164059ffb8a6bca.tar.zst
cuberite-2218f31cde5d04157469de0d5164059ffb8a6bca.zip
-rw-r--r--MCServer/Plugins/APIDump/APIDesc.lua3
-rw-r--r--src/Server.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/MCServer/Plugins/APIDump/APIDesc.lua b/MCServer/Plugins/APIDump/APIDesc.lua
index ce3303087..90d95bba2 100644
--- a/MCServer/Plugins/APIDump/APIDesc.lua
+++ b/MCServer/Plugins/APIDump/APIDesc.lua
@@ -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
diff --git a/src/Server.h b/src/Server.h
index c1640b388..f20e6932f 100644
--- a/src/Server.h
+++ b/src/Server.h
@@ -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. */