Skip to content

Commit bdd7af8

Browse files
author
games647
committed
Use case-sensitive name from the event joining player
Related #1219
1 parent 29100b5 commit bdd7af8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/ProtocolLibListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ public void onPacketReceiving(PacketEvent packetEvent) {
119119
if (packetType == START) {
120120
if (plugin.getFloodgateService() != null) {
121121
boolean success = processFloodgateTasks(packetEvent);
122-
// don't continue execution if the player was kicked by Floodgate
123122
if (!success) {
123+
// don't continue execution if the player was kicked by Floodgate
124124
return;
125125
}
126126
}

velocity/src/main/java/com/github/games647/fastlogin/velocity/listener/ConnectListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public void onGameProfileRequest(GameProfileRequestEvent event) {
117117
StoredProfile playerProfile = session.getProfile();
118118
playerProfile.setId(verifiedUUID);
119119
if (!plugin.getCore().getConfig().get("premiumUuid", true)) {
120-
UUID offlineUUID = UUIDAdapter.generateOfflineId(playerProfile.getName());
120+
UUID offlineUUID = UUIDAdapter.generateOfflineId(event.getUsername());
121121
event.setGameProfile(event.getGameProfile().withId(offlineUUID));
122122
plugin.getLog().info("Overridden UUID from {} to {} (based of {}) on {}",
123123
verifiedUUID, offlineUUID, verifiedUsername, event.getConnection());

0 commit comments

Comments
 (0)