Colorize command references in chat output

This commit is contained in:
sfan5
2024-04-20 14:21:28 +02:00
parent 602f175cc0
commit 41d53180b1
7 changed files with 24 additions and 20 deletions

View File

@ -11,7 +11,8 @@ local function safe_region(name, count, callback)
--save callback to call later
safe_region_callback[name] = callback
worldedit.player_notify(name, S("WARNING: this operation could affect up to @1 nodes; type //y to continue or //n to cancel", count))
worldedit.player_notify(name, S("WARNING: this operation could affect up to @1 nodes; type @2 to continue or @3 to cancel",
count, minetest.colorize("#00ffff", "//y"), minetest.colorize("#00ffff", "//n")))
end
local function reset_pending(name)