mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 04:06:39 +09:00
First command added, fix commad errors
This commit is contained in:
@@ -124,7 +124,11 @@ function Server.interface(callback,thread,...)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
commands.add_command('server-interface', 'Runs the given input from the script', {'code',true}, function(event,args)
|
||||
local callback = args.code
|
||||
local success, err = Server.interface(callback)
|
||||
player_return(err)
|
||||
end)
|
||||
|
||||
-- thread allows you to run fuinction async to the main game
|
||||
local thread = {}
|
||||
|
||||
Reference in New Issue
Block a user