From 925f960ea2aeeea8eaeae94a8ef6602690b215c2 Mon Sep 17 00:00:00 2001 From: dImrich Date: Thu, 4 Feb 2021 00:33:17 +0100 Subject: Adds playerlist header and footer broadcasting (1.8-1.13) --- Server/Plugins/APIDump/APIDesc.lua | 30 ++++++++++++++++++++++++++++++ Server/Plugins/APIDump/Classes/World.lua | 15 +++++++++++++++ 2 files changed, 45 insertions(+) (limited to 'Server') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index 88e999bd3..430e43df6 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -1584,6 +1584,21 @@ end }, Notes = "Sends the specified animation of the specified entity to the client. The AnimationNumber is protocol-specific.", }, + SendPlayerListHeaderFooter = + { + Params = + { + { + Type = "cCompositeChat", + Name = "Header", + }, + { + Type = "cCompositeChat", + Name = "Footer", + }, + }, + Desc = "Sends the header and footer of the player list to the client.", + }, SendHideTitle = { Notes = "Hides the title. This makes the title and subtitle disappear, but if you call SendTitleTimes() the same title and subtitle will appear again." @@ -11388,6 +11403,21 @@ a_Player:OpenWindow(Window); }, Notes = "Broadcasts the specified message to all players, with its message type set to mtWarning. Use for concerning events, such as plugin reload etc.", }, + BroadcastPlayerListsHeaderFooter = + { + Params = + { + { + Type = "cCompositeChat", + Name = "Header", + }, + { + Type = "cCompositeChat", + Name = "Footer", + }, + }, + Desc = "Broadcasts the header and footer of the player list to all players.", + }, DoWithPlayerByUUID = { Params = diff --git a/Server/Plugins/APIDump/Classes/World.lua b/Server/Plugins/APIDump/Classes/World.lua index a1f2bc979..8792e7651 100644 --- a/Server/Plugins/APIDump/Classes/World.lua +++ b/Server/Plugins/APIDump/Classes/World.lua @@ -327,6 +327,21 @@ return }, Notes = "Spawns the specified particles to all players in the world exept the optional ExeptClient. A list of available particles by thinkofdeath can be found {{https://gist.github.com/thinkofdeath/5110835|Here}}", }, + BroadcastPlayerListHeaderFooter = + { + Params = + { + { + Type = "cCompositeChat", + Name = "Header", + }, + { + Type = "cCompositeChat", + Name = "Footer", + }, + }, + Desc = "Broadcasts the header and footer of the player list to all players in the world.", + }, BroadcastSoundEffect = { Params = -- cgit v1.2.3