#pragma once #include "Command.h" class EffectCommand : public Command { public: virtual EGameCommand getId(); virtual int getPermissionLevel(); virtual wstring getUsage(CommandSender *source); virtual void execute(shared_ptr source, byteArray commandData); static shared_ptr preparePacket( const wstring& targetName, int effectId, int duration, int amplifier, bool clear = false); protected: wstring getPlayerNames(); bool isValidWildcardPlayerArgument(wstring args, int argumentIndex); };