From 448f7f25a768cf0ce75fbb3933bb4590b0260adf Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 13 Mar 2014 09:11:36 +0000 Subject: [PATCH] Fix /team join player team --- mods/capturetheflag/cli.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mods/capturetheflag/cli.lua b/mods/capturetheflag/cli.lua index 9c88075..fd3fe8b 100644 --- a/mods/capturetheflag/cli.lua +++ b/mods/capturetheflag/cli.lua @@ -81,14 +81,14 @@ minetest.register_chatcommand("team", { minetest.chat_send_player(name,"joining '"..tplayer.."' to team '"..tteam.."'",false) local privs = minetest.get_player_privs(name) if privs and privs.team == true then - local player = cf.player(name) + local player = cf.player(tplayer) if not player then - player = {name=name} + player = {name=tplayer} end - if cf.add_user(param,player) == true then - minetest.chat_send_all(name.." has joined team "..param) + if cf.add_user(tteam,tplayer) == true then + minetest.chat_send_all(tplayer.." has joined team "..tteam) end else minetest.chat_send_player(name, "You can not do this!") @@ -283,4 +283,4 @@ if chatplus then return (fromp.team == top.team) end) -end \ No newline at end of file +end