4jcraft/Minecraft.World/Commands/GameModeCommand.h
2026-03-13 17:06:56 -05:00

17 lines
450 B
C++

#pragma once
#include "Command.h"
class GameType;
class GameModeCommand : public Command {
public:
virtual EGameCommand getId();
virtual void execute(std::shared_ptr<CommandSender> source,
byteArray commandData);
protected:
GameType* getModeForString(std::shared_ptr<CommandSender> source,
const std::wstring& name);
std::shared_ptr<Player> getPlayer(PlayerUID playerId);
};