added /help for each command ( crep, cchk, watch)
parent
f01d731ed7
commit
02335c4526
10
README
10
README
|
@ -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:
|
||||
|
|
6
init.lua
6
init.lua
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue