Files
MinecraftConsoles/Minecraft.World/GiveItemCommand.h

16 lines
413 B
C
Raw Normal View History

2026-03-01 12:16:08 +08:00
#pragma once
#include "Command.h"
class GameCommandPacket;
class GiveItemCommand : public Command
{
public:
virtual EGameCommand getId();
2026-03-01 11:00:23 -06:00
virtual int getPermissionLevel();
2026-03-01 12:16:08 +08:00
virtual void execute(shared_ptr<CommandSender> source, byteArray commandData);
public:
static shared_ptr<GameCommandPacket> preparePacket(shared_ptr<Player> player, int item, int amount = 1, int aux = 0, const wstring &tag = L"");
};