mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 09:37:54 +01:00
Join Address gathering fix by Dreeam-qwq (#3242)
Fixes gathering for addresses without port on Bukkit based platforms
This commit is contained in:
parent
956e712169
commit
ee1f337eff
@ -85,7 +85,9 @@ public class PlayerOnlineListener implements Listener {
|
||||
|
||||
String address = event.getHostname();
|
||||
if (!address.isEmpty()) {
|
||||
address = address.substring(0, address.lastIndexOf(':'));
|
||||
if (address.contains(":")) {
|
||||
address = address.substring(0, address.lastIndexOf(':'));
|
||||
}
|
||||
if (address.contains("\u0000")) {
|
||||
address = address.substring(0, address.indexOf('\u0000'));
|
||||
}
|
||||
|
@ -107,7 +107,8 @@ public class Contributors {
|
||||
new Contributor("lis2a", LANG),
|
||||
new Contributor("ToxiWoxi", CODE),
|
||||
new Contributor("xlanyleeet", LANG),
|
||||
new Contributor("Jumala9163", LANG)
|
||||
new Contributor("Jumala9163", LANG),
|
||||
new Contributor("Dreeam-qwq", CODE)
|
||||
};
|
||||
|
||||
private Contributors() {
|
||||
|
Loading…
Reference in New Issue
Block a user