summaryrefslogtreecommitdiffstats
path: root/Server
diff options
context:
space:
mode:
authorsatoshinm <snmatsutake@yahoo.co.jp>2017-08-27 23:10:20 +0200
committerMattes D <github@xoft.cz>2017-08-27 23:10:20 +0200
commit6bc503151746ea05842009983c7de932fa80cd03 (patch)
treea7ce87c25b2acb9c5f76cd1a25180b77ebf16f26 /Server
parentImplement anvil chunk sparsing (diff)
downloadcuberite-6bc503151746ea05842009983c7de932fa80cd03.tar
cuberite-6bc503151746ea05842009983c7de932fa80cd03.tar.gz
cuberite-6bc503151746ea05842009983c7de932fa80cd03.tar.bz2
cuberite-6bc503151746ea05842009983c7de932fa80cd03.tar.lz
cuberite-6bc503151746ea05842009983c7de932fa80cd03.tar.xz
cuberite-6bc503151746ea05842009983c7de932fa80cd03.tar.zst
cuberite-6bc503151746ea05842009983c7de932fa80cd03.zip
Diffstat (limited to '')
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua54
-rw-r--r--Server/Plugins/APIDump/Classes/Plugins.lua4
2 files changed, 58 insertions, 0 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua
index d7dc83043..573837333 100644
--- a/Server/Plugins/APIDump/APIDesc.lua
+++ b/Server/Plugins/APIDump/APIDesc.lua
@@ -1338,6 +1338,16 @@ end
},
Notes = "Returns the brand that the client has sent in their MC|Brand plugin message.",
},
+ GetForgeMods =
+ {
+ Returns =
+ {
+ {
+ Type = "table",
+ },
+ },
+ Notes = "Returns the Forge mods installed on the client.",
+ },
GetIPString =
{
Returns =
@@ -1456,6 +1466,16 @@ end
},
Notes = "Returns true if the client has registered to receive messages on the specified plugin channel.",
},
+ IsForgeClient =
+ {
+ Returns =
+ {
+ {
+ Type = "boolean",
+ },
+ },
+ Notes = "Returns true if the client is modded with Forge.",
+ },
IsUUIDOnline =
{
IsStatic = true,
@@ -11892,6 +11912,25 @@ end
},
Notes = "Returns true if the specified player is queued to be transferred to a World.",
},
+ RegisterForgeMod =
+ {
+ Params =
+ {
+ {
+ Name = "ModName",
+ Type = "string",
+ },
+ {
+ Name = "ModVersion",
+ Type = "string",
+ },
+ {
+ Name = "ProtocolVersionNumber",
+ Type = "number",
+ },
+ },
+ Notes = "Add a Forge mod name/version to the server ping list.",
+ },
SetMaxPlayers =
{
Params =
@@ -11913,6 +11952,21 @@ end
},
Notes = "Returns true iff the server is set to authenticate players (\"online mode\").",
},
+ UnregisterForgeMod =
+ {
+ Params =
+ {
+ {
+ Name = "ModName",
+ Type = "string",
+ },
+ {
+ Name = "ProtocolVersionNumber",
+ Type = "number",
+ },
+ },
+ Notes = "Remove a Forge mod name/version from the server ping list.",
+ },
},
},
cStringCompression =
diff --git a/Server/Plugins/APIDump/Classes/Plugins.lua b/Server/Plugins/APIDump/Classes/Plugins.lua
index e22f4e3a0..6c9df7902 100644
--- a/Server/Plugins/APIDump/Classes/Plugins.lua
+++ b/Server/Plugins/APIDump/Classes/Plugins.lua
@@ -796,6 +796,10 @@ cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChatMessage);
{
Notes = "Called when a Login packet is sent to the client, before the client is queued for authentication.",
},
+ HOOK_LOGIN_FORGE =
+ {
+ Notes = "Called when a Forge client has sent its ModList to the server, during the login handshake.",
+ },
HOOK_PLAYER_ANIMATION =
{
Notes = "Called when a client send the Animation packet.",