Update common files

This commit is contained in:
Cooldude2606 committed 2025-08-07 13:17:41 +01:00
1 parent 6004f861fe
commit 281a5ed97e
9 files changed
+57 -1726

No files matched your search

@@ -1,3 +1,9 @@
--- Expose any globals here, typically just your control file if you want to access it through rcon or commands
-- luacheck: globals __plugin_name__
--[[
It is best practice to not expose any globals because all modules share a global environment
However, sometimes you need globals, for example to access functions within rcon commands
Therefore, we advise that this should be the only file in your module to expose globals
Typically this would be your control file as shown in the example below
]]
-- Access using `/sc __plugin_name__.foo()`
__plugin_name__ = require("modules/__plugin_name__/control")