Skip to content

Commit

Permalink
Update init.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Elkien3 committed Dec 16, 2022
1 parent 5c1796d commit bfafc31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mods/playertools/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -240,16 +240,16 @@ minetest.register_chatcommand("grief_check", {
if not minetest.setting_getbool("enable_rollback_recording") then
return false, "Rollback functions are disabled."
end
if class_get and not class_get(clicker:get_player_name(), "snooper") then
if class_get and not class_get(name, "snooper") then
return false, "Only snooper class can grief check"
end
local range, hours, limit =
param:match("(%d+) *(%d*) *(%d*)")
range = tonumber(range) or 0
hours = tonumber(hours) or 24
limit = tonumber(limit) or 5
if range > 10 then
return false, "That range is too high! (max 10)"
if range > 2 then
return false, "That range is too high! (max 2)"
end
if hours > 168 then
return false, "That time limit is too high! (max 168: 7 days)"
Expand Down

0 comments on commit bfafc31

Please sign in to comment.