added /help for each command ( crep, cchk, watch)

master
rnd1 2017-08-02 08:37:15 +02:00
parent f01d731ed7
commit 02335c4526
2 changed files with 7 additions and 9 deletions

10
README
View File

@ -17,11 +17,7 @@
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
-------------------------------------------------------------------------
INSTALLATION:
If you have 'security' enabled in minetest (secure.enable_security = true)
then you need to add in your minetest.conf: secure.trusted_mods = anticheat
FEATURES:
features:
0. what it does:
- succesffuly detect noclip/fly. Its just a matter of time when someone noclipping/flying is detected.
@ -30,8 +26,8 @@ FEATURES:
1. moderators can:
-see full reports with coordinates of location as cheats occur
-use /crep to see latest detected cheater
-use /crep 1 to see detailed stats
-use /cstats to see latest detected cheater
-use /cdebug to see even suspected cheats to be verified later
-use /watch NAME to spectate suspect/detected cheater, /unwatch to return to normal
managing moderators:

View File

@ -271,10 +271,11 @@ minetest.register_on_joinplayer(function(player) -- init stuff on player join
end)
minetest.register_chatcommand("cchk", { -- see cheat report
minetest.register_chatcommand("cchk", {
privs = {
interact = true
},
description = "cchk NAME, checks if player is cheating in this moment",
func = function(name, param)
local privs = minetest.get_player_privs(name).privs;
if not cheat.moderators[name] and not privs then return end
@ -303,6 +304,7 @@ minetest.register_chatcommand("crep", { -- see cheat report
privs = {
interact = true
},
description = "crep 0/1, 0 = default cheat report, 1 = connected player stats",
func = function(name, param)
local privs = minetest.get_player_privs(name).privs;
if not cheat.moderators[name] and not privs then return end
@ -438,7 +440,7 @@ end
minetest.register_chatcommand("watch", {
params = "<to_name>",
description = "",
description = " - spectate what player is doing, stop with /unwatch",
privs = {interact=true},
func = function(name, param)