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