feat(Minecraft.Client): client-side commands (#52)

This commit is contained in:
/home/neo
2026-05-02 18:58:37 +03:00
committed by GitHub
parent a2f8569670
commit abacd76024
3 changed files with 166 additions and 37 deletions
+2 -1
View File
@@ -1,8 +1,8 @@
#pragma once
#include "Command.h"
class GameType;
class GameCommandPacket;
class GameModeCommand : public Command
{
@@ -10,6 +10,7 @@ public:
virtual EGameCommand getId();
int getPermissionLevel();
virtual void execute(shared_ptr<CommandSender> source, byteArray commandData);
static shared_ptr<GameCommandPacket> preparePacket(shared_ptr<Player> player, int gameMode);
protected:
GameType *getModeForString(shared_ptr<CommandSender> source, const wstring &name);