Remove redundant /all chat-command (#507)
This commit is contained in:
parent
47374a06db
commit
1a1d37822e
1 changed files with 0 additions and 22 deletions
|
@ -315,28 +315,6 @@ minetest.register_chatcommand("post", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_chatcommand("all", {
|
|
||||||
params = "msg",
|
|
||||||
description = "Send a message on the global channel",
|
|
||||||
func = function(name, param)
|
|
||||||
if not ctf.setting("chat.global_channel") then
|
|
||||||
minetest.chat_send_player(name, "The global channel is disabled")
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
if ctf.player(name).team then
|
|
||||||
local tosend = ctf.player(name).team ..
|
|
||||||
" <" .. name .. "> " .. param
|
|
||||||
minetest.chat_send_all(tosend)
|
|
||||||
if minetest.global_exists("chatplus") then
|
|
||||||
chatplus.log(tosend)
|
|
||||||
end
|
|
||||||
else
|
|
||||||
minetest.chat_send_all("<"..name.."> "..param)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_chatcommand("t", {
|
minetest.register_chatcommand("t", {
|
||||||
params = "msg",
|
params = "msg",
|
||||||
description = "Send a message on the team channel",
|
description = "Send a message on the team channel",
|
||||||
|
|
Loading…
Reference in a new issue