Skip to content

Automatically include third party library #1999

Closed Answered by NiLSPACE
NiLSPACE asked this question in Q&A
Discussion options

You must be logged in to vote

I just found out what it was. I was copying the same format of some other libraries like md5 and luasocket. There they made a local table, put the methods in and then returned that table which makes sense if you're using require. I just needed to make the table global to make lua-language-server automatically find Cuberites classes.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by NiLSPACE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants