mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 12:16:37 +09:00
Fixed debug
This commit is contained in:
@@ -32,11 +32,12 @@ define_command('server-interface','For use of the highest staff only',{'command'
|
||||
end)
|
||||
--runs a server interface command with debug on and does not return any values to the user
|
||||
define_command('debug','For use of the highest staff only, this will lag A LOT',{'command',true},function(player,event,args)
|
||||
local before_debug = false; if global.debug then before_debug = true end
|
||||
global.debug = true
|
||||
debug_write({'START'},game.tick..' '..event.parameter)
|
||||
pcall(loadstring(event.parameter))
|
||||
debug_write({'END'},game.tick)
|
||||
global.debug = false
|
||||
global.debug = before_debug
|
||||
end)
|
||||
--this is used when changing permission groups when the person does not have permsion to, can also be used to split a large event accross multiple ticks
|
||||
local commands_per_iteration = 50 --number of sudo commands ran every sudo iteration
|
||||
|
||||
Reference in New Issue
Block a user