mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-30 20:39:21 +00:00
91 lines
4.1 KiB
Diff
91 lines
4.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
|
|
Date: Tue, 21 May 2024 11:43:49 +0800
|
|
Subject: [PATCH] Rebrand
|
|
|
|
This patch is referring to the following patch:
|
|
"Gale branding changes"
|
|
By: Martijn Muijsers <martijnmuijsers@live.nl>
|
|
As part of: GaleMC (https://github.com/GaleMC/Gale)
|
|
Licensed under: GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html)
|
|
|
|
diff --git a/LICENCE.txt b/LICENSE.txt
|
|
similarity index 99%
|
|
rename from LICENCE.txt
|
|
rename to LICENSE.txt
|
|
index 94a9ed024d3859793618152ea559a168bbcbb5e2..e60008693e017bec1b4eb49c84be3898e26fcf2a 100644
|
|
--- a/LICENCE.txt
|
|
+++ b/LICENSE.txt
|
|
@@ -1,7 +1,7 @@
|
|
GNU GENERAL PUBLIC LICENSE
|
|
Version 3, 29 June 2007
|
|
|
|
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
Everyone is permitted to copy and distribute verbatim copies
|
|
of this license document, but changing it is not allowed.
|
|
|
|
@@ -645,7 +645,7 @@ the "copyright" line and a pointer to where the full notice is found.
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
Also add information on how to contact you by electronic and paper mail.
|
|
|
|
@@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
|
|
You should also get your employer (if you work as a programmer) or school,
|
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
For more information on this, and how to apply and follow the GNU GPL, see
|
|
-<http://www.gnu.org/licenses/>.
|
|
+<https://www.gnu.org/licenses/>.
|
|
|
|
The GNU General Public License does not permit incorporating your program
|
|
into proprietary programs. If your program is a subroutine library, you
|
|
may consider it more useful to permit linking proprietary applications with
|
|
the library. If this is what you want to do, use the GNU Lesser General
|
|
Public License instead of this License. But first, please read
|
|
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
+<https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
diff --git a/src/main/java/io/papermc/paper/ServerBuildInfo.java b/src/main/java/io/papermc/paper/ServerBuildInfo.java
|
|
index fb1fe2651e53a9bf46b3632c638e13eea9dcda93..c198304386e83edc2ec582fdf66d97d624004771 100644
|
|
--- a/src/main/java/io/papermc/paper/ServerBuildInfo.java
|
|
+++ b/src/main/java/io/papermc/paper/ServerBuildInfo.java
|
|
@@ -25,6 +25,22 @@ public interface ServerBuildInfo {
|
|
*/
|
|
Key BRAND_PURPUR_ID = Key.key("purpurmc", "purpur");
|
|
// Purpur end
|
|
+
|
|
+ // Leaf start - Rebrand
|
|
+ /**
|
|
+ * The brand id for Gale.
|
|
+ */
|
|
+ Key BRAND_GALE_ID = Key.key("galemc", "gale");
|
|
+ /**
|
|
+ * The brand id for Pufferfish.
|
|
+ */
|
|
+ Key BRAND_PUFFERFISH_ID = Key.key("pufferfish", "pufferfish");
|
|
+ /**
|
|
+ * The brand id for Leaf.
|
|
+ */
|
|
+ Key BRAND_LEAF_ID = Key.key("winds-studio", "leaf");
|
|
+ // Leaf end - Rebrand
|
|
+
|
|
/**
|
|
* Gets the {@code ServerBuildInfo}.
|
|
*
|
|
diff --git a/src/main/java/org/bukkit/command/defaults/VersionCommand.java b/src/main/java/org/bukkit/command/defaults/VersionCommand.java
|
|
index 29756f4ea6c6abf3b35106ee05a4f9ffd404a6af..d14d29364c4f180053158c1af0d9b49aba6cb641 100644
|
|
--- a/src/main/java/org/bukkit/command/defaults/VersionCommand.java
|
|
+++ b/src/main/java/org/bukkit/command/defaults/VersionCommand.java
|
|
@@ -214,7 +214,7 @@ public class VersionCommand extends BukkitCommand {
|
|
String version = Bukkit.getVersion();
|
|
// Paper start
|
|
if (version.startsWith("null")) { // running from ide?
|
|
- setVersionMessage(Component.text("Unknown version, custom build?", NamedTextColor.YELLOW));
|
|
+ setVersionMessage(Component.text("* Unknown version, custom build?", NamedTextColor.RED)); // Leaf - Rebrand - Purpur - Clean up version command output
|
|
return;
|
|
}
|
|
setVersionMessage(getVersionFetcher().getVersionMessage(version));
|