From a33a1ebf8f26532fc40de03b6497d9640893e224 Mon Sep 17 00:00:00 2001 From: DeathByDenim Date: Sun, 7 Aug 2022 14:26:56 -0400 Subject: [PATCH] Admin panel for BZFlag --- scripts/deploy_bzflag.sh | 56 ++++++++++++++++++++++++++++++++++++++++ website/js/consoles.js | 8 ++++++ 2 files changed, 64 insertions(+) diff --git a/scripts/deploy_bzflag.sh b/scripts/deploy_bzflag.sh index 29b7fb3..a82acfd 100755 --- a/scripts/deploy_bzflag.sh +++ b/scripts/deploy_bzflag.sh @@ -13,6 +13,35 @@ if [ -d bzflag ]; then fi git clone --branch ${bzflag_version} https://github.com/BZFlag-Dev/bzflag.git cd bzflag +# Apply patch to reduce bzadmin CPU usage due to bug +patch -p1 < /etc/systemd/system/bzflag.service < /etc/systemd/system/bzflag-monitor.service < /etc/nginx/gameserver.d/bzflag.conf <\tKick the player\n• num_ais \tSet the number of AIs for games with more than one player.\n• limit_rounds\tEnd the match after this number of rounds" ); + createConsole( + root, + 'bzflag', + convertTerminalCodeToHtml, + '/playerlist', + 'https://wiki.bzflag.org/Slash_Commands', + "Helpful commands:\n• /playerlist\tDisplay list of players\n• /kick \tKick the player\n• /gameover\tend the current game" + ); createConsole( root, 'mindustry',