Minetest-WorldEditAdditions/worldeditadditions_commands/commands/test/tests/notify.test.lua
2024-10-15 17:32:14 -07:00

13 lines
No EOL
482 B
Lua

local Notify = worldeditadditions_core.notify
worldeditadditions.normalize_test("notify", {
params = "<message>",
description = "Sends message to player in all main notification formats (error, warn, ok, info).",
func = function(name, params_table)
local message = table.concat(params_table, " ")
Notify.error(name, message)
Notify.warn(name, message)
Notify.ok(name, message)
Notify.info(name, message)
Notify.custom(name, "@" .. name, "Good Job", "#FF00D7")
end
})