mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-07 13:58:10 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -4,16 +4,13 @@
|
||||
#include "../Headers/net.minecraft.world.damagesource.h"
|
||||
#include "KillCommand.h"
|
||||
|
||||
EGameCommand KillCommand::getId()
|
||||
{
|
||||
return eGameCommand_Kill;
|
||||
}
|
||||
EGameCommand KillCommand::getId() { return eGameCommand_Kill; }
|
||||
|
||||
void KillCommand::execute(std::shared_ptr<CommandSender> source, byteArray commandData)
|
||||
{
|
||||
std::shared_ptr<Player> player = std::dynamic_pointer_cast<Player>(source);
|
||||
void KillCommand::execute(std::shared_ptr<CommandSender> source,
|
||||
byteArray commandData) {
|
||||
std::shared_ptr<Player> player = std::dynamic_pointer_cast<Player>(source);
|
||||
|
||||
player->hurt(DamageSource::outOfWorld, 1000);
|
||||
player->hurt(DamageSource::outOfWorld, 1000);
|
||||
|
||||
source->sendMessage(L"Ouch. That look like it hurt.");
|
||||
source->sendMessage(L"Ouch. That look like it hurt.");
|
||||
}
|
||||
Reference in New Issue
Block a user