2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Command.h"
|
|
|
|
|
|
|
|
|
|
class GameCommandPacket;
|
|
|
|
|
|
|
|
|
|
class EnchantItemCommand : public Command
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
virtual EGameCommand getId();
|
|
|
|
|
int getPermissionLevel();
|
2026-03-02 17:37:16 +07:00
|
|
|
virtual void execute(shared_ptr<CommandSender> source, byteArray commandData);
|
2026-03-01 12:16:08 +08:00
|
|
|
|
2026-03-02 17:37:16 +07:00
|
|
|
static shared_ptr<GameCommandPacket> preparePacket(shared_ptr<Player> player, int enchantmentId, int enchantmentLevel = 1);
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|