1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-06-28 14:16:18 +02:00

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

@ -101,7 +101,7 @@ worldedit.register_command("brush", {
else
local cmddef = worldedit.registered_commands[cmd]
if cmddef == nil or cmddef.require_pos ~= 1 then
worldedit.player_notify(name, "//" .. cmd .. " cannot be used with brushes")
worldedit.player_notify(name, minetest.colorize("#00ffff", "//"..cmd) .. " cannot be used with brushes")
return
end