mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 06:13:41 +00:00
24 lines
575 B
C++
24 lines
575 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::string& name);
|
|
}; |