mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-02 11:11:21 +01:00
[#1012] Removed ServerProperties#getServerId
This commit is contained in:
parent
23485310d1
commit
bbb1152cd5
@ -27,7 +27,6 @@ public class BukkitServerProperties extends ServerProperties {
|
||||
|
||||
public BukkitServerProperties(Server server) {
|
||||
super(
|
||||
server.getServerId(),
|
||||
server.getName(),
|
||||
server.getPort(),
|
||||
server.getVersion(),
|
||||
|
@ -31,7 +31,6 @@ public class BungeeServerProperties extends ServerProperties {
|
||||
|
||||
public BungeeServerProperties(ProxyServer server, PlanConfig config) {
|
||||
super(
|
||||
server.getServers().toString(),
|
||||
"BungeeCord",
|
||||
-1,
|
||||
server.getVersion(),
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -36,7 +36,6 @@ public class PluginServerPropertiesModule {
|
||||
@Singleton
|
||||
ServerProperties provideServerProperties() {
|
||||
return new ServerProperties(
|
||||
"ID",
|
||||
"Plugin_Server_Mock",
|
||||
7302,
|
||||
"1.13",
|
||||
|
@ -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(),
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user