makes players detected as cheaters by anticheat more susceptible to voting

master
rnd1 2016-08-27 10:28:31 +02:00
parent 4474511941
commit 9fa2deeeca
2 changed files with 5 additions and 0 deletions

1
depends.txt Normal file
View File

@ -0,0 +1 @@
?anticheat

View File

@ -82,6 +82,10 @@ minetest.register_chatcommand("vote", {
--check if target valid player
if not minetest.get_player_by_name(basic_vote.vote.name) then return end
if cheat and cheat.cheater and basic_vote.vote.type~=2 then -- #anticheat mod: makes detected cheater more succeptible to voting
basic_vote.vote.votes_needed=1;
name = "#anticheat"; -- so cheater does not see who voted
end
basic_vote.votes = 0;basic_vote.score = 0;basic_vote.voters = {};