u31
This commit is contained in:
parent
f89f7486f5
commit
f6612ce09e
5 changed files with 9 additions and 11 deletions
|
|
@ -110,7 +110,7 @@ public abstract class ServerConfigurationManager {
|
|||
public ServerConfigurationManager(MinecraftServer server) {
|
||||
this.playerStatFiles = Maps.newHashMap();
|
||||
this.mcServer = server;
|
||||
this.maxPlayers = 8;
|
||||
this.maxPlayers = 100;
|
||||
}
|
||||
|
||||
public void initializeConnectionToPlayer(IntegratedServerPlayerNetworkManager netManager, EntityPlayerMP playerIn) {
|
||||
|
|
@ -365,11 +365,9 @@ public abstract class ServerConfigurationManager {
|
|||
* server. Returns null on success, or an error message
|
||||
*/
|
||||
public String allowUserToConnect(GameProfile gameprofile) {
|
||||
return this.playerEntityList.size() >= this.maxPlayers && !this.func_183023_f(gameprofile)
|
||||
? "The server is full!"
|
||||
: (doesPlayerAlreadyExist(gameprofile)
|
||||
? "\"" + gameprofile.getName() + "\" is already playing on this world!"
|
||||
: null);
|
||||
return doesPlayerAlreadyExist(gameprofile)
|
||||
? "\"" + gameprofile.getName() + "\" is already playing on this world!"
|
||||
: null;
|
||||
}
|
||||
|
||||
private boolean doesPlayerAlreadyExist(GameProfile gameprofile) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue