Require interact and shout privs for /t

This commit is contained in:
ANAND 2019-11-15 06:47:35 +05:30
parent 2e3a487ef5
commit 47374a06db
No known key found for this signature in database
GPG key ID: 3AD8A3C4A51AAB97

View file

@ -297,7 +297,6 @@ minetest.register_chatcommand("post", {
params = "message",
description = "Post a message on your team's message board",
func = function(name, param)
if ctf and ctf.players and ctf.players[name] and ctf.players[name].team and ctf.teams[ctf.players[name].team] then
if not ctf.player(name).auth then
minetest.chat_send_player(name, "You do not own that team")
@ -341,6 +340,7 @@ minetest.register_chatcommand("all", {
minetest.register_chatcommand("t", {
params = "msg",
description = "Send a message on the team channel",
privs = { interact = true, shout = true },
func = function(name, param)
if not ctf.setting("chat.team_channel") then
minetest.chat_send_player(name, "The team channel is disabled.")