[#1012] Removed ServerProperties#getServerId

This commit is contained in:
Rsl1122 2019-04-24 22:16:04 +03:00
parent 23485310d1
commit bbb1152cd5
6 changed files with 0 additions and 12 deletions

View File

@ -27,7 +27,6 @@ public class BukkitServerProperties extends ServerProperties {
public BukkitServerProperties(Server server) {
super(
server.getServerId(),
server.getName(),
server.getPort(),
server.getVersion(),

View File

@ -31,7 +31,6 @@ public class BungeeServerProperties extends ServerProperties {
public BungeeServerProperties(ProxyServer server, PlanConfig config) {
super(
server.getServers().toString(),
"BungeeCord",
-1,
server.getVersion(),

View File

@ -27,7 +27,6 @@ import java.util.function.Supplier;
*/
public abstract class ServerProperties {
private final String id;
private final String name;
private final int port;
private final String version;
@ -38,7 +37,6 @@ public abstract class ServerProperties {
private final IntSupplier onlinePlayers;
protected ServerProperties(
String id,
String name,
int port,
String version,
@ -47,7 +45,6 @@ public abstract class ServerProperties {
int maxPlayers,
IntSupplier onlinePlayers
) {
this.id = id;
this.name = name;
this.port = port;
this.version = version;
@ -86,10 +83,6 @@ public abstract class ServerProperties {
return maxPlayers;
}
public String getServerId() {
return id;
}
public int getOnlinePlayers() {
return onlinePlayers.getAsInt();
}

View File

@ -36,7 +36,6 @@ public class PluginServerPropertiesModule {
@Singleton
ServerProperties provideServerProperties() {
return new ServerProperties(
"ID",
"Plugin_Server_Mock",
7302,
"1.13",

View File

@ -29,7 +29,6 @@ public class SpongeServerProperties extends ServerProperties {
public SpongeServerProperties(Game game) {
super(
game.getServer().getMotd().toPlain(),
"Sponge",
game.getServer().getBoundAddress().orElseGet(() -> new InetSocketAddress(25565)).getPort(),
game.getPlatform().getMinecraftVersion().getName(),

View File

@ -31,7 +31,6 @@ public class VelocityServerProperties extends ServerProperties {
public VelocityServerProperties(ProxyServer server, PlanConfig config) {
super(
server.getAllServers().toString(),
"Velocity",
server.getBoundAddress().getPort(),
server.getClass().getPackage().getImplementationVersion(),