mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 04:06:39 +09:00
Changed name of server-interface to interface
This commit is contained in:
@@ -181,7 +181,7 @@ function Server.interface(callback,use_thread,...)
|
||||
end
|
||||
|
||||
if commands._expgaming then
|
||||
commands.add_command('server-interface', 'Runs the given input from the script', {'code',true}, function(event,args)
|
||||
commands.add_command('interface', 'Runs the given input from the script', {'code',true}, function(event,args)
|
||||
local callback = args.code
|
||||
if not string.find(callback,'%s') and not string.find(callback,'return') then callback = 'return '..callback end
|
||||
if game.player then callback = 'local player, surface, force = game.player, game.player.surface, game.player.force '..callback end
|
||||
|
||||
Reference in New Issue
Block a user