Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the random message about /donate to include the new <message> parameter #1245

Merged
merged 4 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading