#pragma once #include #include #include "minecraft/commands/Command.h" #include "minecraft/commands/CommandsEnum.h" #include "minecraft/network/packet/GameCommandPacket.h" class CommandSender; class TimeCommand : public Command { public: virtual EGameCommand getId(); virtual int getPermissionLevel(); virtual void execute(std::shared_ptr source, std::vector& commandData); protected: void doSetTime(std::shared_ptr source, int value); void doAddTime(std::shared_ptr source, int value); public: static std::shared_ptr preparePacket(bool night); };