Add missing priv check to /join cmd

This commit is contained in:
LoneWolfHT 2021-03-15 08:25:14 -07:00 committed by GitHub
parent 3bb4dddc21
commit 0ed4cadb7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,6 +183,7 @@ minetest.register_chatcommand("team", {
minetest.register_chatcommand("join", {
params = "team name",
description = "Add to team",
privs = {ctf_team_mgr = true},
func = function(name, param)
if ctf.join(name, param, false, name) then
return true, "Joined team " .. param .. "!"