forked from Kolyah35/minecraft-pe-0.6.1
FEAT: Server operators
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user