Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 21:10:10 +01:00
Added Server.getServerId() for ID purposes.
Dieser Commit ist enthalten in:
Ursprung
5ee2d67903
Commit
49955d5a1d
@ -182,21 +182,23 @@ public final class CraftServer implements Server {
|
||||
return this.getConfigString("server-ip", "");
|
||||
}
|
||||
|
||||
public String getServerName()
|
||||
{
|
||||
public String getServerName() {
|
||||
return this.getConfigString("server-name", "Unknown Server");
|
||||
}
|
||||
|
||||
public String getServerId() {
|
||||
return this.getConfigString("server-id", "unnamed");
|
||||
}
|
||||
|
||||
// NOTE: Temporary calls through to server.properies until its replaced
|
||||
private String getConfigString(String variable, String defaultValue)
|
||||
{
|
||||
private String getConfigString(String variable, String defaultValue) {
|
||||
return this.console.d.a(variable, defaultValue);
|
||||
}
|
||||
|
||||
private int getConfigInt(String variable, int defaultValue)
|
||||
{
|
||||
private int getConfigInt(String variable, int defaultValue) {
|
||||
return this.console.d.a(variable, defaultValue);
|
||||
}
|
||||
|
||||
// End Temporary calls
|
||||
|
||||
public PluginManager getPluginManager() {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren