Skip to content

Commit

Permalink
Update the random message about /donate to include the new message …
Browse files Browse the repository at this point in the history
…parameter (#1245)

* Update init.lua

* Update init.lua

* Update ranking_commands.lua

* Update init.lua

---------

Co-authored-by: LoneWolfHT <[email protected]>
  • Loading branch information
a-blob and LoneWolfHT authored Nov 25, 2023
1 parent 3f820ea commit 48ea551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mods/ctf/ctf_modebase/ranking_commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<playername> <score> <message>",
params = "<playername> <score> [message]",
func = function(name, param)
local current_mode = ctf_modebase:get_current_mode()
if not current_mode or not ctf_modebase.match_started then
Expand Down
2 changes: 1 addition & 1 deletion mods/other/random_messages/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 <playername> <score> to reward a team-mate for their work.",
"Use /donate <playername> <score> [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.",
Expand Down

0 comments on commit 48ea551

Please sign in to comment.