Configurable server mod name

This commit is contained in:
William Blake Galbreath
2025-01-05 11:17:01 -08:00
committed by granny
parent 30fc669d6f
commit 964cbc2610
3 changed files with 16 additions and 35 deletions

View File

@@ -0,0 +1,11 @@
--- a/net/minecraft/server/MinecraftServer.java
+++ b/net/minecraft/server/MinecraftServer.java
@@ -1854,7 +_,7 @@
@DontObfuscate
public String getServerModName() {
- return io.papermc.paper.ServerBuildInfo.buildInfo().brandName(); // Paper
+ return org.purpurmc.purpur.PurpurConfig.serverModName; // Paper // Purpur - Configurable server mod name
}
public SystemReport fillSystemReport(SystemReport systemReport) {