2024-10-28 15:57:54 +01:00
|
|
|
local modname = core.get_current_modname()
|
2022-10-08 17:46:03 +02:00
|
|
|
local prefix = "["..modname.."] "
|
|
|
|
|
|
|
|
-- Startup info
|
2024-10-28 15:57:54 +01:00
|
|
|
core.log("action", prefix.."modname="..dump(modname))
|
|
|
|
core.log("action", prefix.."modpath="..dump(core.get_modpath(modname)))
|
|
|
|
core.log("action", prefix.."worldpath="..dump(core.get_worldpath()))
|
2022-10-08 17:46:03 +02:00
|
|
|
|
|
|
|
-- Callback info
|
2024-10-28 15:57:54 +01:00
|
|
|
core.register_on_mods_loaded(function()
|
|
|
|
core.log("action", prefix.."Callback: on_mods_loaded()")
|
2022-10-08 17:46:03 +02:00
|
|
|
end)
|
|
|
|
|
2024-10-28 15:57:54 +01:00
|
|
|
core.register_on_chatcommand(function(name, command, params)
|
|
|
|
core.log("action", prefix.."Caught command '"..command.."', issued by '"..name.."'. Parameters: '"..params.."'")
|
2022-10-08 17:34:55 +02:00
|
|
|
end)
|