4jcraft/targets/minecraft/commands/common/GameModeCommand.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

24 lines
576 B
C++

#pragma once
#include <stdint.h>
#include <memory>
#include <string>
#include "minecraft/commands/Command.h"
#include "minecraft/commands/CommandsEnum.h"
class GameType;
class CommandSender;
class GameModeCommand : public Command {
public:
virtual EGameCommand getId();
int getPermissionLevel();
virtual void execute(std::shared_ptr<CommandSender> source,
std::vector<uint8_t>& commandData);
protected:
GameType* getModeForString(std::shared_ptr<CommandSender> source,
const std::wstring& name);
};