mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 11:25:55 +03:00
12 lines
824 B
Diff
12 lines
824 B
Diff
--- ../src-base/minecraft/net/minecraft/server/integrated/IntegratedPlayerList.java
|
|
+++ ../src-work/minecraft/net/minecraft/server/integrated/IntegratedPlayerList.java
|
|
@@ -31,7 +31,7 @@
|
|
|
|
public String allowUserToConnect(SocketAddress address, GameProfile profile)
|
|
{
|
|
- return profile.getName().equalsIgnoreCase(this.getServerInstance().getServerOwner()) && this.getPlayerByUsername(profile.getName()) != null ? "That name is already taken." : super.allowUserToConnect(address, profile);
|
|
+ return (String) (profile.getName().equalsIgnoreCase(this.getServerInstance().getServerOwner()) && this.getPlayerByUsername(profile.getName()) != null ? "That name is already taken." : super.allowUserToConnect(null, /*address*/ null, /*profile*/ null));
|
|
}
|
|
|
|
public IntegratedServer getServerInstance()
|