4jcraft/targets/minecraft/server/commands/TeleportCommand.h

20 lines
555 B
C++

#pragma once
#include <stdint.h>
#include <memory>
#include "platform/PlatformTypes.h"
#include "minecraft/commands/Command.h"
#include "minecraft/commands/CommandsEnum.h"
#include "minecraft/network/packet/GameCommandPacket.h"
class TeleportCommand : public Command {
public:
virtual EGameCommand getId();
virtual void execute(std::shared_ptr<CommandSender> source,
std::vector<uint8_t>& commandData);
static std::shared_ptr<GameCommandPacket> preparePacket(
PlayerUID subject, PlayerUID destination);
};