Bring back server name

This commit is contained in:
William Blake Galbreath
2025-01-05 11:08:13 -08:00
committed by granny
parent fb0d9a1cd6
commit 30fc669d6f
6 changed files with 60 additions and 82 deletions

View File

@@ -24,11 +24,10 @@
this.overrideAllCommandBlockCommands = this.commandsConfiguration.getStringList("command-block-overrides").contains("*");
this.ignoreVanillaPermissions = this.commandsConfiguration.getBoolean("ignore-vanilla-permissions");
@@ -3048,6 +_,18 @@
{
@@ -3049,6 +_,18 @@
return CraftServer.this.console.paperConfigurations.createLegacyObject(CraftServer.this.console);
}
+
+ // Purpur start - Purpur config files
+ @Override
+ public YamlConfiguration getPurpurConfig() {
@@ -40,6 +39,19 @@
+ return getProperties().properties;
+ }
+ // Purpur end - Purpur config files
+
@Override
public void restart() {
org.spigotmc.RestartCommand.restart();
@@ -3288,4 +_,11 @@
this.console.addPluginAllowingSleep(plugin.getName(), value);
}
// Paper end - API to check if the server is sleeping
+
+ // Purpur start - Bring back server name
+ @Override
+ public String getServerName() {
+ return this.getProperties().serverName;
+ }
+ // Purpur end - Bring back server name
}