diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -6,12 +6,22 @@ mesecons_debug = { context_store = {}, context_store_size = 0, + -- max penalty in seconds + max_penalty = 300, + + -- everything above this threshold will disable the mesecons in that mapblock + penalty_mapblock_disabled = 60, + + -- time between /mesecons_clear_penalty commands, in seconds + penalty_clear_cooldown = 120, + -- mapblock-hash -> true whitelist = {}, -- playername => true hud = {}, + -- cpu usage in microseconds that triggers the penalty mechanism max_usage_micros = 15000 } @@ -20,6 +30,8 @@ dofile(MP.."/whitelist.lua") dofile(MP.."/privs.lua") dofile(MP.."/flush.lua") dofile(MP.."/context.lua") +dofile(MP.."/penalty.lua") +dofile(MP.."/clear_penalty.lua") dofile(MP.."/overrides.lua") dofile(MP.."/luacontroller.lua") dofile(MP.."/chatcommands.lua") |