Fix crash when using /help cmsg
This commit is contained in:
parent
82abee5669
commit
aef179d878
2
init.lua
2
init.lua
|
@ -148,7 +148,7 @@ minetest.register_privilege("announce", {
|
|||
minetest.register_chatcommand("cmsg", {
|
||||
description = "Show message in the center of the screen to player (“*” sends to all players)",
|
||||
privs = {announce = true},
|
||||
params = {"<player> <text>"},
|
||||
params = "<player> <text>",
|
||||
func = function(name, params)
|
||||
local player = minetest.get_player_by_name(name)
|
||||
local targetname, text = string.match(params, "^(%S+)%s(.+)$")
|
||||
|
|
Loading…
Reference in New Issue
Block a user