mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-31 19:24:47 +02:00
@@ -119,8 +119,8 @@ public class ProtocolLibListener extends PacketAdapter {
|
|||||||
if (packetType == START) {
|
if (packetType == START) {
|
||||||
if (plugin.getFloodgateService() != null) {
|
if (plugin.getFloodgateService() != null) {
|
||||||
boolean success = processFloodgateTasks(packetEvent);
|
boolean success = processFloodgateTasks(packetEvent);
|
||||||
// don't continue execution if the player was kicked by Floodgate
|
|
||||||
if (!success) {
|
if (!success) {
|
||||||
|
// don't continue execution if the player was kicked by Floodgate
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -117,7 +117,7 @@ public class ConnectListener {
|
|||||||
StoredProfile playerProfile = session.getProfile();
|
StoredProfile playerProfile = session.getProfile();
|
||||||
playerProfile.setId(verifiedUUID);
|
playerProfile.setId(verifiedUUID);
|
||||||
if (!plugin.getCore().getConfig().get("premiumUuid", true)) {
|
if (!plugin.getCore().getConfig().get("premiumUuid", true)) {
|
||||||
UUID offlineUUID = UUIDAdapter.generateOfflineId(playerProfile.getName());
|
UUID offlineUUID = UUIDAdapter.generateOfflineId(event.getUsername());
|
||||||
event.setGameProfile(event.getGameProfile().withId(offlineUUID));
|
event.setGameProfile(event.getGameProfile().withId(offlineUUID));
|
||||||
plugin.getLog().info("Overridden UUID from {} to {} (based of {}) on {}",
|
plugin.getLog().info("Overridden UUID from {} to {} (based of {}) on {}",
|
||||||
verifiedUUID, offlineUUID, verifiedUsername, event.getConnection());
|
verifiedUUID, offlineUUID, verifiedUsername, event.getConnection());
|
||||||
|
Reference in New Issue
Block a user