mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Configurable server mod name
This commit is contained in:
committed by
granny
parent
30fc669d6f
commit
964cbc2610
@@ -1,35 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
|
||||||
Date: Sat, 21 Mar 2020 11:47:39 -0500
|
|
||||||
Subject: [PATCH] Configurable server mod name
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/net/minecraft/server/MinecraftServer.java b/net/minecraft/server/MinecraftServer.java
|
|
||||||
index ce4ce361061932162ace58070d44d1aa70189dbd..d61f6cf5a5d3320516339a7078f2e9fb2ab59dfa 100644
|
|
||||||
--- a/net/minecraft/server/MinecraftServer.java
|
|
||||||
+++ b/net/minecraft/server/MinecraftServer.java
|
|
||||||
@@ -2013,7 +2013,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
|
|
||||||
|
|
||||||
@DontObfuscate
|
|
||||||
public String getServerModName() {
|
|
||||||
- return io.papermc.paper.ServerBuildInfo.buildInfo().brandName(); // Paper
|
|
||||||
+ return org.purpurmc.purpur.PurpurConfig.serverModName; // Paper // Purpur
|
|
||||||
}
|
|
||||||
|
|
||||||
public SystemReport fillSystemReport(SystemReport details) {
|
|
||||||
diff --git a/src/main/java/org/purpurmc/purpur/PurpurConfig.java b/src/main/java/org/purpurmc/purpur/PurpurConfig.java
|
|
||||||
index 82f0ae89ef3f0dc614edb4ccd3caa66cb387044c..47ffe5ef0429101414b33a41e91631712a92b32d 100644
|
|
||||||
--- a/src/main/java/org/purpurmc/purpur/PurpurConfig.java
|
|
||||||
+++ b/src/main/java/org/purpurmc/purpur/PurpurConfig.java
|
|
||||||
@@ -191,6 +191,11 @@ public class PurpurConfig {
|
|
||||||
afkTabListSuffix = MiniMessage.miniMessage().serialize(MiniMessage.miniMessage().deserialize(getString("settings.messages.afk-tab-list-suffix", afkTabListSuffix)));
|
|
||||||
}
|
|
||||||
|
|
||||||
+ public static String serverModName = io.papermc.paper.ServerBuildInfo.buildInfo().brandName();
|
|
||||||
+ private static void serverModName() {
|
|
||||||
+ serverModName = getString("settings.server-mod-name", serverModName);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
public static int barrelRows = 3;
|
|
||||||
public static boolean enderChestSixRows = false;
|
|
||||||
public static boolean enderChestPermissionRows = false;
|
|
||||||
@@ -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) {
|
||||||
@@ -172,6 +172,11 @@ public class PurpurConfig {
|
|||||||
afkTabListSuffix = MiniMessage.miniMessage().serialize(MiniMessage.miniMessage().deserialize(getString("settings.messages.afk-tab-list-suffix", afkTabListSuffix)));
|
afkTabListSuffix = MiniMessage.miniMessage().serialize(MiniMessage.miniMessage().deserialize(getString("settings.messages.afk-tab-list-suffix", afkTabListSuffix)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String serverModName = io.papermc.paper.ServerBuildInfo.buildInfo().brandName();
|
||||||
|
private static void serverModName() {
|
||||||
|
serverModName = getString("settings.server-mod-name", serverModName);
|
||||||
|
}
|
||||||
|
|
||||||
public static int barrelRows = 3;
|
public static int barrelRows = 3;
|
||||||
public static boolean enderChestSixRows = false;
|
public static boolean enderChestSixRows = false;
|
||||||
public static boolean enderChestPermissionRows = false;
|
public static boolean enderChestPermissionRows = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user