summaryrefslogtreecommitdiffstats
path: root/cwd/assets
diff options
context:
space:
mode:
Diffstat (limited to 'cwd/assets')
-rw-r--r--cwd/assets/altcraft/scripts/init.lua13
1 files changed, 9 insertions, 4 deletions
diff --git a/cwd/assets/altcraft/scripts/init.lua b/cwd/assets/altcraft/scripts/init.lua
index d48ecd0..5fd9e11 100644
--- a/cwd/assets/altcraft/scripts/init.lua
+++ b/cwd/assets/altcraft/scripts/init.lua
@@ -1,12 +1,17 @@
-plug = {
+local plugin = {
name = 'altcraft',
displayName = "AltCraft Core Plugin",
onLoad = nil,
onUnload = nil,
+ onChangeState = nil,
}
-function plug:onLoad ()
- print("Loaded "..self.name.."-plugin!")
+function plugin.onLoad ()
+ print("Loaded AltCraft plugin!")
end
-AC:RegisterPlugin(plug) \ No newline at end of file
+function plugin.onChangeState (newState)
+ AC:LogWarning("New state: "..newState)
+end
+
+AC:RegisterPlugin(plugin) \ No newline at end of file