Remove fml from join addresses

This commit is contained in:
Aurora Lahtela 2022-11-11 21:20:57 +02:00
parent 9a536f5a04
commit 5d2cbbd9cb

View File

@ -89,6 +89,9 @@ public class PlayerOnlineListener implements Listener {
if (address.contains("\u0000")) { if (address.contains("\u0000")) {
address = address.substring(0, address.indexOf('\u0000')); address = address.substring(0, address.indexOf('\u0000'));
} }
if (address.contains("fml")) {
address = address.substring(0, address.lastIndexOf("fml"));
}
joinAddressCache.put(playerUUID, address); joinAddressCache.put(playerUUID, address);
} }
dbSystem.getDatabase().executeTransaction(new BanStatusTransaction(playerUUID, serverUUID, banned)); dbSystem.getDatabase().executeTransaction(new BanStatusTransaction(playerUUID, serverUUID, banned));