mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-16 19:03:52 +00:00
Initial commit
This commit is contained in:
parent
def8cb4153
commit
b691c43c44
19437 changed files with 4363922 additions and 0 deletions
26
Minecraft.World/DefaultGameModeCommand.cpp
Normal file
26
Minecraft.World/DefaultGameModeCommand.cpp
Normal file
|
|
@ -0,0 +1,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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue