chore: format Minecraft.World

This commit is contained in:
Tropical
2026-03-13 17:06:56 -05:00
parent bd6284025d
commit 33d0737d1d
1511 changed files with 108661 additions and 115521 deletions

View File

@@ -2,25 +2,23 @@
#include "../Headers/net.minecraft.commands.h"
#include "DefaultGameModeCommand.h"
EGameCommand DefaultGameModeCommand::getId()
{
return eGameCommand_DefaultGameMode;
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);
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);
// String modeName = I18n.get("gameMode." + newMode.getName());
// logAdminAction(source, "commands.defaultgamemode.success", modeName);
//}
//}
}
void DefaultGameModeCommand::doSetGameType(GameType *newGameType)
{
//MinecraftServer::getInstance()->setDefaultGameMode(newGameType);
void DefaultGameModeCommand::doSetGameType(GameType* newGameType) {
// MinecraftServer::getInstance()->setDefaultGameMode(newGameType);
}