From 48ea551df256ad294b2be1581fe33d2612daee1e Mon Sep 17 00:00:00 2001 From: GreenBlob <88883098+a-blob@users.noreply.github.com> Date: Sun, 26 Nov 2023 00:43:46 +0800 Subject: [PATCH] Update the random message about `/donate` to include the new message parameter (#1245) * Update init.lua * Update init.lua * Update ranking_commands.lua * Update init.lua --------- Co-authored-by: LoneWolfHT --- mods/ctf/ctf_modebase/ranking_commands.lua | 2 +- mods/other/random_messages/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ctf/ctf_modebase/ranking_commands.lua b/mods/ctf/ctf_modebase/ranking_commands.lua index 1af43e5767..ee628b3b54 100644 --- a/mods/ctf/ctf_modebase/ranking_commands.lua +++ b/mods/ctf/ctf_modebase/ranking_commands.lua @@ -97,7 +97,7 @@ end) minetest.register_chatcommand("donate", { description = "Donate your match score to your teammate\nCan be used only once in 10 minutes", - params = " ", + params = " [message]", func = function(name, param) local current_mode = ctf_modebase:get_current_mode() if not current_mode or not ctf_modebase.match_started then diff --git a/mods/other/random_messages/init.lua b/mods/other/random_messages/init.lua index cac49c46d9..fcd80b3483 100644 --- a/mods/other/random_messages/init.lua +++ b/mods/other/random_messages/init.lua @@ -67,7 +67,7 @@ function random_messages.read_messages() "You can capture multiple enemy flags at once!", "Consider joining our Discord server at https://discord.gg/vcZTRPX", "You can press sneak while jumping to jump up two blocks.", - "Use /donate to reward a team-mate for their work.", + "Use /donate [message] (message optional) to reward a team-mate for their work.", "A medic and knight working together can wreak havoc on the enemy team(s)", "Use /lb to see a list of bountied players you can kill for score", "In the Nade Fight mode, you can team up with someone using the void grenade for easier kills.",