diff options
author | dImrich <damian@haze.sk> | 2021-02-04 00:33:17 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-02-06 15:14:40 +0100 |
commit | 925f960ea2aeeea8eaeae94a8ef6602690b215c2 (patch) | |
tree | c865f2e046008670b8fc9e7985c8394a7590c97e /src/Broadcaster.cpp | |
parent | Creative mode hits immediately disappear boats (#5117) (diff) | |
download | cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.tar cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.tar.gz cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.tar.bz2 cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.tar.lz cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.tar.xz cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.tar.zst cuberite-925f960ea2aeeea8eaeae94a8ef6602690b215c2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Broadcaster.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Broadcaster.cpp b/src/Broadcaster.cpp index e7a29cb5d..98759a58b 100644 --- a/src/Broadcaster.cpp +++ b/src/Broadcaster.cpp @@ -418,6 +418,19 @@ void cWorld::BroadcastPlayerListAddPlayer(const cPlayer & a_Player, const cClien +void cWorld::BroadcastPlayerListHeaderFooter(const cCompositeChat & a_Header, const cCompositeChat & a_Footer) +{ + ForClientsInWorld(*this, nullptr, [&](cClientHandle & a_Client) + { + a_Client.SendPlayerListHeaderFooter(a_Header, a_Footer); + } + ); +} + + + + + void cWorld::BroadcastPlayerListRemovePlayer(const cPlayer & a_Player, const cClientHandle * a_Exclude) { ForClientsInWorld(*this, a_Exclude, [&](cClientHandle & a_Client) |