Add ctf_stats.is_pro; consolidate "pro-ness" calculations (#517)

This commit is contained in:
ANAND 2019-12-06 00:03:38 +05:30 committed by Thomas--S
parent ba2c1fdf05
commit 6e35425e4c
4 changed files with 19 additions and 28 deletions

View file

@ -57,7 +57,7 @@ minetest.register_chatcommand("vote_kick", {
perc_needed = 0.8,
can_vote = function(self, pname)
return ctf_stats.player(pname).score > 1000
return ctf_stats.is_pro(name)
end,
on_result = function(self, result, results)