forked from mirrors/kolyah35-minecraft-pe-0.6.1
1
This commit is contained in:
parent
1a8ead4955
commit
867114b0f3
1 changed files with 1 additions and 6 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "world/level/Level.h"
|
||||
#include <algorithm>
|
||||
#include <client/Minecraft.h>
|
||||
#include <network/packet/LoginStatusPacket.h>
|
||||
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue