-minetest.register_chatcommand("setnews", {
- params = "<news>",
- description = "Set news",
- privs = {server = true},
- func = function(player, param)
- elidragon.savedata.news = param
- end,
-})
minetest.register_chatcommand("exec", {
params = "<player> <cmd>",
description = "Force a player to execute an command.",
})
minetest.register_chatcommand("colormsg", {
params = "[[<player>-]color>-]<message>",
- description = "Send a message as the server. [deprecated, replaced my the message command]",
+ description = "Send a message as the server. [deprecated, replaced by the message command]",
privs = {server = true},
func = function(name, param)
elidragon.message(param)
func = function(name, param)
local target = param:split(" ")[1]
local command = param:split(" ")[2]
- local arguments
local argumentsdisp
local cmddef = minetest.chatcommands
- _, _, arguments = string.match(param, "([^ ]+) ([^ ]+) (.+)")
+ local _, _, arguments = string.match(param, "([^ ]+) ([^ ]+) (.+)")
if not arguments then arguments = "" end
if target and command then
if cmddef[command] then