FEAT: Server operators

This commit is contained in:
Kolyah35
2026-03-31 00:40:10 +03:00
parent 5194575092
commit 1ec347d5d5
13 changed files with 74 additions and 9 deletions

View File

@@ -277,6 +277,8 @@ void Minecraft::setLevel(Level* level, const std::string& message /* ="" */, Loc
}
}
this->level = level;
// So uhhh
level->ops.emplace(options.getStringValue(OPTIONS_USERNAME));
_hasSignaledGeneratingLevelFinished = false;
#ifdef STANDALONE_SERVER
const bool threadedLevelCreation = false;

View File

@@ -66,7 +66,7 @@ void ConsoleScreen::execute()
if (_input[0] == '/') {
// Command
_input = Util::stringTrim(_input.substr(1));
minecraft->commandManager().execute(*minecraft, _input);
minecraft->commandManager().execute(*minecraft, *minecraft->player, _input);
} else {
// @ai @rewrite
if (minecraft->netCallback && minecraft->raknetInstance->isServer()) {