#pragma once #include #include #include "minecraft/commands/Command.h" #include "minecraft/commands/CommandsEnum.h" class GameCommandPacket; class Player; class EnchantItemCommand : public Command { public: virtual EGameCommand getId(); int getPermissionLevel(); virtual void execute(std::shared_ptr source, std::vector& commandData); static std::shared_ptr preparePacket( std::shared_ptr player, int enchantmentId, int enchantmentLevel = 1); };