the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "net.minecraft.commands.h"
3#include "net.minecraft.world.entity.player.h"
4#include "net.minecraft.world.damagesource.h"
5#include "BasicTypeContainers.h"
6#include "KillCommand.h"
7
8EGameCommand KillCommand::getId()
9{
10 return eGameCommand_Kill;
11}
12
13int KillCommand::getPermissionLevel()
14{
15 return LEVEL_ALL;
16}
17
18void KillCommand::execute(shared_ptr<CommandSender> source, byteArray commandData)
19{
20 shared_ptr<Player> player = dynamic_pointer_cast<Player>(source);
21
22 player->hurt(DamageSource::outOfWorld, Float::MAX_VALUE);
23
24 source->sendMessage(L"Ouch. That look like it hurt.");
25//source.sendMessage(ChatMessageComponent.forTranslation("commands.kill.success"));
26}