blob: 529733f77ee65aeea7a493f5b8fa9d50fe4cb5ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "stdafx.h"
#include "net.minecraft.commands.h"
#include "DefaultGameModeCommand.h"
EGameCommand DefaultGameModeCommand::getId()
{
return eGameCommand_DefaultGameMode;
}
void DefaultGameModeCommand::execute(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);
}
|