mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 16:13:51 +00:00
26 lines
706 B
C++
26 lines
706 B
C++
#include "../Platform/stdafx.h"
|
|
#include "../Headers/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);
|
|
} |