- Add a playerOnly option to command metadata
- If this is set to
true
it works exactly the same asconsoleOnly
except restricts it to players only.
- If this is set to
- Ability to disable scripts
- You can now disable scripts via /lualink disable|enable
- Disabling a script will unload it and prevent it from automatically being loaded on start
- Bump version
Resolve #15 and some code cleanup
Code Cleanup
- Improved code organization.
Structural Changes
- Moved script loading and unloading responsibilities to a dedicated script manager class.
- Scripts now load when the ServerLoadEvent is triggered, enhancing plugin performance and startup.
Breaking Changes
- Breaking:
onEnable
andonDisable
methods have been removed from the script lifecycle.- Recommendation: Use
onLoad
andonUnload
as alternative methods for initialization and cleanup.
- Recommendation: Use