December 2014 files

This commit is contained in:
Loki Rautio
2026-03-01 11:00:23 -06:00
parent b691c43c44
commit 8fd3ac6e37
2049 changed files with 260190 additions and 134787 deletions

View File

@@ -2,6 +2,7 @@
#include "net.minecraft.commands.h"
#include "net.minecraft.world.entity.player.h"
#include "net.minecraft.world.damagesource.h"
#include "BasicTypeContainers.h"
#include "KillCommand.h"
EGameCommand KillCommand::getId()
@@ -9,11 +10,17 @@ EGameCommand KillCommand::getId()
return eGameCommand_Kill;
}
int KillCommand::getPermissionLevel()
{
return LEVEL_ALL;
}
void KillCommand::execute(shared_ptr<CommandSender> source, byteArray commandData)
{
shared_ptr<Player> player = dynamic_pointer_cast<Player>(source);
player->hurt(DamageSource::outOfWorld, 1000);
player->hurt(DamageSource::outOfWorld, Float::MAX_VALUE);
source->sendMessage(L"Ouch. That look like it hurt.");
//source.sendMessage(ChatMessageComponent.forTranslation("commands.kill.success"));
}