From 404b04570452fe24676b0294fdd77878806a904b Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 17 Feb 2019 13:11:08 +0500 Subject: Minor lua-api improvement --- cwd/assets/altcraft/init.lua | 1 - cwd/assets/altcraft/scripts/init.lua | 12 ++++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) delete mode 100644 cwd/assets/altcraft/init.lua create mode 100644 cwd/assets/altcraft/scripts/init.lua (limited to 'cwd') diff --git a/cwd/assets/altcraft/init.lua b/cwd/assets/altcraft/init.lua deleted file mode 100644 index a3ea3c6..0000000 --- a/cwd/assets/altcraft/init.lua +++ /dev/null @@ -1 +0,0 @@ -print("Hello") \ No newline at end of file diff --git a/cwd/assets/altcraft/scripts/init.lua b/cwd/assets/altcraft/scripts/init.lua new file mode 100644 index 0000000..d48ecd0 --- /dev/null +++ b/cwd/assets/altcraft/scripts/init.lua @@ -0,0 +1,12 @@ +plug = { + name = 'altcraft', + displayName = "AltCraft Core Plugin", + onLoad = nil, + onUnload = nil, +} + +function plug:onLoad () + print("Loaded "..self.name.."-plugin!") +end + +AC:RegisterPlugin(plug) \ No newline at end of file -- cgit v1.2.3