Add ctf_stats.is_pro; consolidate "pro-ness" calculations (#517)
This commit is contained in:
parent
ba2c1fdf05
commit
6e35425e4c
4 changed files with 19 additions and 28 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue