From 6bc503151746ea05842009983c7de932fa80cd03 Mon Sep 17 00:00:00 2001 From: satoshinm Date: Sun, 27 Aug 2017 14:10:20 -0700 Subject: Implement Forge protocol handshake support (#3869) --- Server/Plugins/APIDump/APIDesc.lua | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'Server/Plugins/APIDump/APIDesc.lua') 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 = -- cgit v1.2.3 From d5c4b3af6bef90a7ea9d23cbf6f932ba7ee3c00d Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Sat, 26 Aug 2017 15:23:58 +0200 Subject: APIDump: Removed unneeded Globals prefix --- Server/Plugins/APIDump/APIDesc.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'Server/Plugins/APIDump/APIDesc.lua') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index 573837333..674729624 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -8670,7 +8670,7 @@ a_Player:OpenWindow(Window); { { Name = "MobType", - Type = "Globals#eMonsterType", + Type = "eMonsterType", }, }, Returns = @@ -8730,7 +8730,7 @@ a_Player:OpenWindow(Window); { { Name = "MobType", - Type = "Globals#eMonsterType", + Type = "eMonsterType", }, }, Notes = "Returns the type of this mob ({{Globals#eMonsterType|mtXXX}} constant)", @@ -8821,7 +8821,7 @@ a_Player:OpenWindow(Window); { { Name = "MobType", - Type = "Globals#eMonsterType", + Type = "eMonsterType", }, }, Returns = @@ -8839,7 +8839,7 @@ a_Player:OpenWindow(Window); { { Name = "MobType", - Type = "Globals#eMonsterType", + Type = "eMonsterType", }, }, Returns = @@ -8930,7 +8930,7 @@ a_Player:OpenWindow(Window); { { Name = "MobType", - Type = "Globals#eMonsterType", + Type = "eMonsterType", }, }, Notes = "Returns the mob type ({{Globals#eMonsterType|mtXXX}} constant) parsed from the string type (\"creeper\"), or mtInvalidType if unrecognized.", @@ -9996,7 +9996,7 @@ a_Player:OpenWindow(Window); { { Name = "GameMode", - Type = "Globals#eGameMode", + Type = "eGameMode", }, }, Notes = "(OBSOLETE) Returns the current resolved game mode of the player. If the player is set to inherit the world's gamemode, returns that instead. See also GetGameMode() and IsGameModeXXX() functions. Note that this function is the same as GetGameMode(), use that function instead.", @@ -10096,7 +10096,7 @@ a_Player:OpenWindow(Window); { { Name = "GameMode", - Type = "Globals#eGameMode", + Type = "eGameMode", }, }, Notes = "Returns the player's gamemode. The player may have their gamemode unassigned, in which case they inherit the gamemode from the current {{cWorld|world}}.
NOTE: Instead of comparing the value returned by this function to the gmXXX constants, use the IsGameModeXXX() functions. These functions handle the gamemode inheritance automatically.", @@ -10881,7 +10881,7 @@ a_Player:OpenWindow(Window); { { Name = "NewGameMode", - Type = "Globals#eGameMode", + Type = "eGameMode", }, }, Notes = "Sets the gamemode for the player. The new gamemode overrides the world's default gamemode, unless it is set to gmInherit.", @@ -13885,7 +13885,7 @@ end { { Name = "BiomeType", - Type = "Globals#EMCSBiome", + Type = "EMCSBiome", }, }, Notes = "Converts a string representation to a {{Globals#BiomeTypes|BiomeType}} enumerated value. Returns biInvalidBiome if the input is not a recognized biome.", @@ -13903,7 +13903,7 @@ end { { Name = "DamageType", - Type = "Globals#eDamageType", + Type = "eDamageType", }, }, Notes = "Converts a string representation to a {{Globals#DamageType|DamageType}} enumerated value. Returns -1 if the inupt is not a recognized damage type.", @@ -13921,7 +13921,7 @@ end { { Name = "Dimension", - Type = "Globals#eDimension", + Type = "eDimension", }, }, Notes = "Converts a string representation to a {{Globals#eDimension|eDimension}} enumerated value. Returns dimNotSet if the input is not a recognized dimension.", -- cgit v1.2.3