diff --git a/api/src/main/java/net/md_5/bungee/api/ServerPing.java b/api/src/main/java/net/md_5/bungee/api/ServerPing.java index 27b51849..2f707ba6 100644 --- a/api/src/main/java/net/md_5/bungee/api/ServerPing.java +++ b/api/src/main/java/net/md_5/bungee/api/ServerPing.java @@ -75,7 +75,7 @@ public class ServerPing public String getId() { - return uniqueId.toString().replaceAll( "-", "" ); + return uniqueId.toString().replace( "-", "" ); } } diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index 14dc52f5..63742805 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -581,7 +581,7 @@ public final class UserConnection implements ProxiedPlayer @Override public Locale getLocale() { - return ( locale == null && settings != null ) ? locale = Locale.forLanguageTag( settings.getLocale().replaceAll( "_", "-" ) ) : locale; + return ( locale == null && settings != null ) ? locale = Locale.forLanguageTag( settings.getLocale().replace( '_', '-' ) ) : locale; } @Override diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java index a6bd3720..d4fadcf6 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java @@ -625,7 +625,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection @Override public String getUUID() { - return uniqueId.toString().replaceAll( "-", "" ); + return uniqueId.toString().replace( "-", "" ); } @Override