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

25 lines
557 B
C++

#pragma once
#include <stdint.h>
#include <string>
#include "minecraft/commands/Command.h"
#include "minecraft/commands/CommandsEnum.h"
class CommandSender;
class EffectCommand : public Command {
public:
EGameCommand getId();
int getPermissionLevel();
std::string getUsage(CommandSender* source);
void execute(std::shared_ptr<CommandSender> source,
std::vector<uint8_t>& commandData);
protected:
std::string getPlayerNames();
public:
bool isValidWildcardPlayerArgument(std::string args, int argumentIndex);
};