aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/GiveItemCommand.h
blob: fbe99c4fe9ea2dae4e2c7e2652fc82623056839f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "Command.h"

class GameCommandPacket;

class GiveItemCommand : public Command
{
public:
	virtual EGameCommand getId();
	virtual int getPermissionLevel();
	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"");
};