forked from mirrors/kolyah35-minecraft-pe-0.6.1
FEAT: Ban command, save ops and banned ppl in files
TODO: fix many crashes...
This commit is contained in:
parent
dfb3bf1da7
commit
5bc19c4ab2
13 changed files with 187 additions and 29 deletions
|
|
@ -149,6 +149,12 @@ void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& source, LoginSta
|
|||
LOGI("Disconnect! Nickname is taken!\n");
|
||||
#ifndef STANDALONE_SERVER
|
||||
minecraft->setScreen(new DisconnectionScreen("Could not connect: Nickname is taken!"));
|
||||
#endif
|
||||
}
|
||||
if (packet->status == LoginStatus::Failed_Banned) {
|
||||
LOGI("Disconnect! You're banned from this server!\n");
|
||||
#ifndef STANDALONE_SERVER
|
||||
minecraft->setScreen(new DisconnectionScreen("Could not connect: You're banned from this server!"));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue