Renamed Commands and added ExpGamingCore.Groups

This commit is contained in:
Cooldude2606
2018-09-19 22:20:03 +01:00
parent be49b06151
commit b40dc94ece
45 changed files with 261 additions and 51 deletions

View File

@@ -468,7 +468,7 @@ end)
function Server:on_init()
for name,id in pairs(defines.events) do if not script.get_event_handler(id) then script.on_event(id,Server._thread_handler) end end
if loaded_modules['ExpGamingCore.Commands'] then verbose('ExpGamingCore.Commands is installed; Loading commands src') require(module_path..'/src/commands',{Server=Server}) end
if loaded_modules['ExpGamingCore.Command'] then verbose('ExpGamingCore.Command is installed; Loading commands src') require(module_path..'/src/commands',{Server=Server}) end
end
return Server

View File

@@ -20,7 +20,7 @@
"FactorioStdLib.Color": "^0.8.0",
"FactorioStdLib.String": "^0.8.0",
"FactorioStdLib.Game": "^0.8.0",
"ExpGamingCore.Commands": "?^4.0.0"
"ExpGamingCore.Command": "?^4.0.0"
},
"collection": "ExpGamingCore_4.0.0"
}

View File

@@ -4,7 +4,7 @@
-- @author Cooldude2606
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
--- This file will be loaded when ExpGamingCore.Commands is present
--- This file will be loaded when ExpGamingCore.Command is present
-- @function _comment
local Game = require('FactorioStdLib.Game')