Files
MinecraftConsoles/Minecraft.World/DefaultGameModeCommand.cpp
void_17 7074f35e4b shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
2026-03-02 15:58:20 +07:00

26 lines
683 B
C++

#include "stdafx.h"
#include "net.minecraft.commands.h"
#include "DefaultGameModeCommand.h"
EGameCommand DefaultGameModeCommand::getId()
{
return eGameCommand_DefaultGameMode;
}
void DefaultGameModeCommand::execute(std::shared_ptr<CommandSender> source, byteArray commandData)
{
//if (args.length > 0)
//{
// GameType newMode = getModeForString(source, args[0]);
// doSetGameType(newMode);
// String modeName = I18n.get("gameMode." + newMode.getName());
// logAdminAction(source, "commands.defaultgamemode.success", modeName);
//}
}
void DefaultGameModeCommand::doSetGameType(GameType *newGameType)
{
//MinecraftServer::getInstance()->setDefaultGameMode(newGameType);
}