File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ## [ 0.17.0-rc.1] - 2026-01-19
11+
1012### Changed
1113
1214- Supported LeviLamina 1.8.0-rc.2
1315- Added client support
16+ - Replace int with CommandPermissionLevel for debugCommandLevel
1417
1518## [ 0.16.7] - 2026-01-13
1619
@@ -1111,7 +1114,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11111114[ #332 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/332
11121115[ #339 ] : https://github.com/LiteLDev/LegacyScriptEngine/issues/339
11131116
1114- [ Unreleased ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.16.7...HEAD
1117+ [ Unreleased ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.17.0-rc.1...HEAD
1118+ [ 0.17.0-rc.1 ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.16.7...v0.17.0-rc.1
11151119[ 0.16.7 ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.16.6...v0.16.7
11161120[ 0.16.6 ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.16.5...v0.16.6
11171121[ 0.16.5 ] : https://github.com/LiteLDev/LegacyScriptEngine/compare/v0.16.4...v0.16.5
Original file line number Diff line number Diff line change @@ -71,6 +71,11 @@ ll::Expected<> PluginManager::load(ll::mod::Manifest manifest) {
7171}
7272
7373ll::Expected<> PluginManager::enable (std::string_view name) {
74+ auto plugin = std::static_pointer_cast<ScriptPlugin>(getMod (name));
75+ if (!plugin) {
76+ return ll::makeStringError (" Plugin {0} not found" _tr (name));
77+ }
78+ auto manifest = plugin->getManifest ();
7479#ifdef LSE_BACKEND_PYTHON
7580 auto & logger = lse::LegacyScriptEngine::getLogger ();
7681 std::filesystem::path dirPath = ll::mod::getModsRoot () / manifest.name ; // Plugin path
@@ -131,12 +136,6 @@ ll::Expected<> PluginManager::enable(std::string_view name) {
131136 }
132137 }
133138#endif
134- auto plugin = std::static_pointer_cast<ScriptPlugin>(getMod (name));
135- if (!plugin) {
136- return ll::makeStringError (" Plugin {0} not found" _tr (name));
137- }
138- auto manifest = plugin->getManifest ();
139-
140139 auto scriptEngine = EngineManager::newEngine (manifest.name );
141140
142141 try {
Original file line number Diff line number Diff line change 22
33#include < optional>
44
5+ #include " mc/server/commands/CommandPermissionLevel.h"
6+
57namespace lse {
68
79struct Config {
8- int version = 2 ;
10+ int version = 3 ;
911 bool migratePlugins = true ;
1012#ifdef LSE_BACKEND_NODEJS
1113 // fix addons that build with node-gyp version < 11.1.0, default: true
1214 std::optional<bool > fixLegacyAddons{std::nullopt };
1315#endif
14- int debugCommandLevel = 4 ;
16+ CommandPermissionLevel debugCommandLevel = CommandPermissionLevel::GameDirectors ;
1517};
1618
1719} // namespace lse
You can’t perform that action at this time.
0 commit comments