|
@ -622,7 +622,7 @@ void RenX::Server::setUUIDFunction(RenX::Server::uuid_func func) |
|
|
Jupiter::DLList<PlayerInfo>::Node *node = RenX::Server::players.getNode(0); |
|
|
Jupiter::DLList<PlayerInfo>::Node *node = RenX::Server::players.getNode(0); |
|
|
do |
|
|
do |
|
|
{ |
|
|
{ |
|
|
RenX::Server::setUUIDIfDifferent(node->data, RenX::Server::calc_uuid(this, node->data)); |
|
|
RenX::Server::setUUIDIfDifferent(node->data, RenX::Server::calc_uuid(node->data)); |
|
|
node = node->next; |
|
|
node = node->next; |
|
|
} |
|
|
} |
|
|
while (node != nullptr); |
|
|
while (node != nullptr); |
|
@ -916,7 +916,7 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line) |
|
|
if (id != 0) |
|
|
if (id != 0) |
|
|
this->players.add(r); |
|
|
this->players.add(r); |
|
|
|
|
|
|
|
|
r->uuid = calc_uuid(this, r); |
|
|
r->uuid = calc_uuid(r); |
|
|
|
|
|
|
|
|
for (size_t i = 0; i < xPlugins.size(); i++) |
|
|
for (size_t i = 0; i < xPlugins.size(); i++) |
|
|
xPlugins.get(i)->RenX_OnPlayerCreate(this, r); |
|
|
xPlugins.get(i)->RenX_OnPlayerCreate(this, r); |
|
@ -943,7 +943,7 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line) |
|
|
} |
|
|
} |
|
|
if (recalcUUID) |
|
|
if (recalcUUID) |
|
|
{ |
|
|
{ |
|
|
this->setUUIDIfDifferent(r, calc_uuid(this, r)); |
|
|
this->setUUIDIfDifferent(r, calc_uuid(r)); |
|
|
if (banCheck(r)) |
|
|
if (banCheck(r)) |
|
|
this->kickPlayer(r); |
|
|
this->kickPlayer(r); |
|
|
} |
|
|
} |
|
@ -1078,7 +1078,7 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line) |
|
|
if (calc_uuid == RenX::default_uuid_func) |
|
|
if (calc_uuid == RenX::default_uuid_func) |
|
|
setUUID(player, this->formatSteamID(steamid)); |
|
|
setUUID(player, this->formatSteamID(steamid)); |
|
|
else |
|
|
else |
|
|
this->setUUIDIfDifferent(player, calc_uuid(this, player)); |
|
|
this->setUUIDIfDifferent(player, calc_uuid(player)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1113,7 +1113,7 @@ void RenX::Server::processLine(const Jupiter::ReadableString &line) |
|
|
if (calc_uuid == RenX::default_uuid_func) |
|
|
if (calc_uuid == RenX::default_uuid_func) |
|
|
setUUID(player, this->formatSteamID(steamid)); |
|
|
setUUID(player, this->formatSteamID(steamid)); |
|
|
else |
|
|
else |
|
|
this->setUUIDIfDifferent(player, calc_uuid(this, player)); |
|
|
this->setUUIDIfDifferent(player, calc_uuid(player)); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|