diff options
Diffstat (limited to '')
-rw-r--r-- | Server/Plugins/APIDump/APIDesc.lua | 76 | ||||
-rw-r--r-- | Server/Plugins/APIDump/Classes/Plugins.lua | 4 | ||||
-rw-r--r-- | Server/Plugins/APIDump/Classes/World.lua | 4 |
3 files changed, 71 insertions, 13 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index d7dc83043..674729624 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, @@ -8650,7 +8670,7 @@ a_Player:OpenWindow(Window); { { Name = "MobType", - Type = "Globals#eMonsterType", + Type = "eMonsterType", }, }, Returns = @@ -8710,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)", @@ -8801,7 +8821,7 @@ a_Player:OpenWindow(Window); { { Name = "MobType", - Type = "Globals#eMonsterType", + Type = "eMonsterType", }, }, Returns = @@ -8819,7 +8839,7 @@ a_Player:OpenWindow(Window); { { Name = "MobType", - Type = "Globals#eMonsterType", + Type = "eMonsterType", }, }, Returns = @@ -8910,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.", @@ -9976,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.", @@ -10076,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}}.<br /> <b>NOTE:</b> Instead of comparing the value returned by this function to the gmXXX constants, use the IsGameModeXXX() functions. These functions handle the gamemode inheritance automatically.", @@ -10861,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.", @@ -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 = @@ -13831,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.", @@ -13849,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.", @@ -13867,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.", 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.", diff --git a/Server/Plugins/APIDump/Classes/World.lua b/Server/Plugins/APIDump/Classes/World.lua index d523f3881..63c2162e6 100644 --- a/Server/Plugins/APIDump/Classes/World.lua +++ b/Server/Plugins/APIDump/Classes/World.lua @@ -1820,7 +1820,7 @@ function OnAllChunksAvailable()</pre> All return values from the callbacks are i { { Name = "ShrapnelLevel", - Type = "Globals#eShrapnelLevel", + Type = "eShrapnelLevel", }, }, Notes = "Returns the shrapnel level, representing the block types that are propelled outwards following an explosion. Based on this value and a random picker, blocks are selectively converted to physics entities (FallingSand) and flung outwards.", @@ -2830,7 +2830,7 @@ function OnAllChunksAvailable()</pre> All return values from the callbacks are i { { Name = "ShrapnelLevel", - Type = "Globals#eShrapnelLevel", + Type = "eShrapnelLevel", }, }, Notes = "Sets the Shrapnel level of the world.", |