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

#include "Command.h"

class TimeCommand : public Command
{
public:
	virtual EGameCommand getId();
	virtual int getPermissionLevel();
	virtual void execute(shared_ptr<CommandSender> source, byteArray commandData);

protected:
	void doSetTime(shared_ptr<CommandSender> source, int value);
	void doAddTime(shared_ptr<CommandSender> source, int value);

public:
	static shared_ptr<GameCommandPacket> preparePacket(bool night);
};