Require interact and shout privs for /t
This commit is contained in:
parent
2e3a487ef5
commit
47374a06db
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,6 @@ minetest.register_chatcommand("post", {
|
||||||
params = "message",
|
params = "message",
|
||||||
description = "Post a message on your team's message board",
|
description = "Post a message on your team's message board",
|
||||||
func = function(name, param)
|
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 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
|
if not ctf.player(name).auth then
|
||||||
minetest.chat_send_player(name, "You do not own that team")
|
minetest.chat_send_player(name, "You do not own that team")
|
||||||
|
@ -341,6 +340,7 @@ minetest.register_chatcommand("all", {
|
||||||
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",
|
||||||
|
privs = { interact = true, shout = true },
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
if not ctf.setting("chat.team_channel") then
|
if not ctf.setting("chat.team_channel") then
|
||||||
minetest.chat_send_player(name, "The team channel is disabled.")
|
minetest.chat_send_player(name, "The team channel is disabled.")
|
||||||
|
|
Loading…
Reference in a new issue