diff options
Diffstat (limited to 'Spigot-Server-Patches/0140-Add-server-name-parameter.patch')
-rw-r--r-- | Spigot-Server-Patches/0140-Add-server-name-parameter.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Spigot-Server-Patches/0140-Add-server-name-parameter.patch b/Spigot-Server-Patches/0140-Add-server-name-parameter.patch new file mode 100644 index 0000000000..fcf79c9900 --- /dev/null +++ b/Spigot-Server-Patches/0140-Add-server-name-parameter.patch @@ -0,0 +1,28 @@ +From c325795fa35577349654d913c5be60aeddd6e6b4 Mon Sep 17 00:00:00 2001 +From: Martin Panzer <[email protected]> +Date: Sat, 28 May 2016 16:54:03 +0200 +Subject: [PATCH] Add server-name parameter + + +diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java +index 4399faf69..59d4e2e6f 100644 +--- a/src/main/java/org/bukkit/craftbukkit/Main.java ++++ b/src/main/java/org/bukkit/craftbukkit/Main.java +@@ -134,6 +134,14 @@ public class Main { + .defaultsTo(new File("paper.yml")) + .describedAs("Yml file"); + // Paper end ++ ++ // Paper start ++ acceptsAll(asList("server-name"), "Name of the server") ++ .withRequiredArg() ++ .ofType(String.class) ++ .defaultsTo("Unknown Server") ++ .describedAs("Name"); ++ // Paper end + } + }; + +-- +2.12.2.windows.2 + |