启用真指令

This commit is contained in:
Qiuzhizhe 2022-10-05 04:48:35 -07:00
parent be445b32d2
commit 65e6bb6dbf

View File

@ -378,12 +378,12 @@ public:
};
void RegisterCommands() {
// Event::RegCmdEvent::subscribe([](Event::RegCmdEvent ev) { // Register commands
// LLCommand::setup(ev.mCommandRegistry);
// VersionCommand::setup(ev.mCommandRegistry);
// if (LL::globalConfig.enableTpdimCommand) {
// TeleportDimensionCommand::setup(ev.mCommandRegistry);
// }
// return true;
// });
Event::RegCmdEvent::subscribe([](Event::RegCmdEvent ev) { // Register commands
LLCommand::setup(ev.mCommandRegistry);
VersionCommand::setup(ev.mCommandRegistry);
if (LL::globalConfig.enableTpdimCommand) {
TeleportDimensionCommand::setup(ev.mCommandRegistry);
}
return true;
});
}