From 867114b0f3e9f3860b71620a1b9051286dcac0a5 Mon Sep 17 00:00:00 2001 From: InviseDivine Date: Mon, 27 Jul 2026 15:45:40 +0200 Subject: [PATCH] 1 --- src/commands/CommandBan.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/commands/CommandBan.cpp b/src/commands/CommandBan.cpp index 8b924bd..1ed80bb 100644 --- a/src/commands/CommandBan.cpp +++ b/src/commands/CommandBan.cpp @@ -5,6 +5,7 @@ #include "world/level/Level.h" #include #include +#include CommandBan::CommandBan() : Command("ban") {} @@ -31,12 +32,6 @@ std::string CommandBan::execute(Minecraft& mc, Player& player, const std::vector if (*it == (Player*)mc.player) { return "banip: you can't ban urself lol"; } - - auto sourceId = (*it)->owner; - - (*it)->reallyRemoveIfPlayer = true; - mc.level->removeEntity((*it)); - mc.raknetInstance->getPeer()->CloseConnection(sourceId, true); } else { for (auto& banned : mc.level->bannedPpl) { if (nicknameLower == banned) {