name randomizer
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#include "td/protocol/packets/PlayerLoginPacket.h"
|
||||
#include "td/protocol/packets/ServerTpsPacket.h"
|
||||
|
||||
#include "td/misc/Random.h"
|
||||
|
||||
namespace td {
|
||||
namespace client {
|
||||
|
||||
@@ -38,7 +40,7 @@ void ClientConnexion::HandlePacket(const protocol::ServerTpsPacket* packet) {
|
||||
}
|
||||
|
||||
void ClientConnexion::Login() {
|
||||
td::protocol::PlayerLoginPacket loginPacket("Persson" + std::to_string(static_cast<unsigned int>(m_ConnectionID)));
|
||||
td::protocol::PlayerLoginPacket loginPacket("Persson#" + std::to_string(utils::GetRandomInt(0, 9999)));
|
||||
SendPacket(&loginPacket);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user