mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 21:53:37 +00:00
20 lines
555 B
C++
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);
|
|
}; |