diff --git a/Plan/bukkit/src/main/java/com/djrapitops/plan/gathering/listeners/bukkit/PlayerOnlineListener.java b/Plan/bukkit/src/main/java/com/djrapitops/plan/gathering/listeners/bukkit/PlayerOnlineListener.java index d104ae1fc..10fe8267d 100644 --- a/Plan/bukkit/src/main/java/com/djrapitops/plan/gathering/listeners/bukkit/PlayerOnlineListener.java +++ b/Plan/bukkit/src/main/java/com/djrapitops/plan/gathering/listeners/bukkit/PlayerOnlineListener.java @@ -117,7 +117,7 @@ public class PlayerOnlineListener implements Listener { boolean banned = result == PlayerLoginEvent.Result.KICK_BANNED; String joinAddress = event.getHostname(); if (!joinAddress.isEmpty()) { - joinAddresses.put(playerUUID, joinAddress.substring(0, joinAddress.indexOf(":"))); + joinAddresses.put(playerUUID, joinAddress.substring(0, joinAddress.lastIndexOf(':'))); } dbSystem.getDatabase().executeTransaction(new BanStatusTransaction(playerUUID, () -> banned)); dbSystem.getDatabase().executeTransaction(new OperatorStatusTransaction(playerUUID, operator));