From 9fa2deeeca639e5539295f4bd0dadce714eccf0c Mon Sep 17 00:00:00 2001 From: rnd1 Date: Sat, 27 Aug 2016 10:28:31 +0200 Subject: [PATCH] makes players detected as cheaters by anticheat more susceptible to voting --- depends.txt | 1 + init.lua | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 depends.txt diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..ba1784b --- /dev/null +++ b/depends.txt @@ -0,0 +1 @@ +?anticheat \ No newline at end of file diff --git a/init.lua b/init.lua index 991466b..3322fd4 100644 --- a/init.lua +++ b/init.lua @@ -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 = {};