Global Function?
#6
It seems if you create a new folder in the MCServer root called "lua" you can put your 'requires' in that folder, that works.

EDIT: You can also do this
Code:
package.path = "./Plugins/?.lua" .. package.path
require "TestModule"

TestModule.foo()
And keeps TestModule.lua in the Plugins directory
Reply
Thanks given by:


Messages In This Thread
Global Function? - by Dys0n - 03-01-2011, 11:23 AM
RE: Global Function? - by Revolucas - 03-01-2011, 02:41 PM
RE: Global Function? - by Tybor - 03-02-2011, 02:28 AM
RE: Global Function? - by Tybor - 03-02-2011, 03:51 AM
RE: Global Function? - by Dys0n - 03-02-2011, 04:54 AM
RE: Global Function? - by FakeTruth - 03-02-2011, 06:19 AM



Users browsing this thread: 1 Guest(s)