4jcraft/targets/minecraft/commands/common/ToggleDownfallCommand.h

23 lines
532 B
C++

#pragma once
#include <stdint.h>
#include <memory>
#include "minecraft/commands/Command.h"
#include "minecraft/commands/CommandsEnum.h"
class GameCommandPacket;
class ToggleDownfallCommand : public Command {
public:
virtual EGameCommand getId();
virtual int getPermissionLevel();
virtual void execute(std::shared_ptr<CommandSender> source,
std::vector<uint8_t>& commandData);
protected:
void doToggleDownfall();
public:
static std::shared_ptr<GameCommandPacket> preparePacket();
};