Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new InfoReg.lua #8

Merged
merged 1 commit into from
Oct 27, 2015
Merged

Use new InfoReg.lua #8

merged 1 commit into from
Oct 27, 2015

Conversation

Seadragon91
Copy link
Contributor

Due to a old InfoReg.lua in the plugin folder a few commands didn't worked. Removed it and use the InfoReg.lua in folder Plugins.
For example /protection user add 1 test just showed the error command requires another verb.

Also added a missing return true

@sphinxc0re
Copy link

You removed the LuaReg.lua file

@Seadragon91
Copy link
Contributor Author

Yes, because in the folder Plugins is a InfoReg.lua and according to the api-docs in section Using the file in code you should use this:

-- Use the InfoReg shared library to process the Info.lua file:
dofile(cPluginManager:GetPluginsPath() .. "/InfoReg.lua")
RegisterPluginInfoCommands()
RegisterPluginInfoConsoleCommands()

madmaxoft added a commit that referenced this pull request Oct 27, 2015
@madmaxoft madmaxoft merged commit ac6ad21 into cuberite:master Oct 27, 2015
@madmaxoft
Copy link
Member

Thanks

@Seadragon91 Seadragon91 deleted the patch-1 branch October 27, 2015 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants