Replace a net.minecraft accessor with a public attr.
Dieser Commit ist enthalten in:
Ursprung
5aa95ee469
Commit
f789c9e744
@ -29,7 +29,7 @@ public class ServerConfigurationManager {
|
|||||||
public List b = new ArrayList();
|
public List b = new ArrayList();
|
||||||
public MinecraftServer c; // Craftbukkit - public
|
public MinecraftServer c; // Craftbukkit - public
|
||||||
// public PlayerManager d; // Craftbukkit - removed!
|
// public PlayerManager d; // Craftbukkit - removed!
|
||||||
private int e;
|
public int e; // Craftbukkit - public
|
||||||
private Set f = new HashSet();
|
private Set f = new HashSet();
|
||||||
private Set g = new HashSet();
|
private Set g = new HashSet();
|
||||||
private Set h = new HashSet();
|
private Set h = new HashSet();
|
||||||
@ -41,10 +41,6 @@ public class ServerConfigurationManager {
|
|||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
private CraftServer server;
|
private CraftServer server;
|
||||||
|
|
||||||
public int getMaxPlayers() {
|
|
||||||
return this.e;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ServerConfigurationManager(MinecraftServer minecraftserver) {
|
public ServerConfigurationManager(MinecraftServer minecraftserver) {
|
||||||
minecraftserver.server = new CraftServer(minecraftserver, this);
|
minecraftserver.server = new CraftServer(minecraftserver, this);
|
||||||
server = minecraftserver.server;
|
server = minecraftserver.server;
|
||||||
|
@ -148,7 +148,7 @@ public final class CraftServer implements Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getMaxPlayers() {
|
public int getMaxPlayers() {
|
||||||
return server.getMaxPlayers();
|
return server.e;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PluginManager getPluginManager() {
|
public PluginManager getPluginManager() {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren