Admin can tell anyone's people

master
Ciaran Gultnieks 2014-04-06 21:41:01 +01:00
parent 967d7322c3
commit f2ff5b6eba
1 changed files with 4 additions and 2 deletions

View File

@ -228,8 +228,10 @@ subcmd.tell = {
return nil, false, true
end
if playername ~= ent.owner then
return person.name.." doesn't listen to you"
if not minetest.check_player_privs(playername, {server=true}) then
if playername ~= ent.owner then
return person_name.." doesn't listen to you"
end
end
local sender = minetest.get_player_by_name(playername)