mirror of
https://github.com/BX-Team/DivineMC.git
synced 2026-01-03 22:16:22 +00:00
55 lines
2.4 KiB
Diff
55 lines
2.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: NONPLAYT <76615486+NONPLAYT@users.noreply.github.com>
|
|
Date: Sat, 18 May 2024 01:10:38 +0300
|
|
Subject: [PATCH] Divine Branding
|
|
|
|
|
|
diff --git a/build.gradle.kts b/build.gradle.kts
|
|
index b7d584c8b96eb7699e5df90ed04bf22ee256d571..8b1de4e68aa844856af757f6dd0e2c44b8b2db30 100644
|
|
--- a/build.gradle.kts
|
|
+++ b/build.gradle.kts
|
|
@@ -231,3 +231,12 @@ tasks.check {
|
|
dependsOn(scanJarForOldGeneratedCode)
|
|
}
|
|
// Paper end
|
|
+
|
|
+// DivineMC start - Hide unnecessary compilation warnings
|
|
+tasks.withType<JavaCompile> {
|
|
+ val compilerArgs = options.compilerArgs
|
|
+ compilerArgs.add("-Xlint:-module")
|
|
+ compilerArgs.add("-Xlint:-removal")
|
|
+ compilerArgs.add("-Xlint:-dep-ann")
|
|
+}
|
|
+// DivineMC end
|
|
diff --git a/src/main/java/io/papermc/paper/ServerBuildInfo.java b/src/main/java/io/papermc/paper/ServerBuildInfo.java
|
|
index 8c2c5ea14a839c8767bbf120ae5512f65475cbb0..4d71d7fb74b424e267cf547a4f89d6229ff9e680 100644
|
|
--- a/src/main/java/io/papermc/paper/ServerBuildInfo.java
|
|
+++ b/src/main/java/io/papermc/paper/ServerBuildInfo.java
|
|
@@ -32,6 +32,13 @@ public interface ServerBuildInfo {
|
|
Key BRAND_PURPUR_ID = Key.key("purpurmc", "purpur");
|
|
// Purpur end
|
|
|
|
+ // DivineMC start
|
|
+ /**
|
|
+ * The brand id for DivineMC.
|
|
+ */
|
|
+ Key BRAND_DIVINEMC_ID = Key.key("divinemc", "divinemc");
|
|
+ // DivineMC end
|
|
+
|
|
/**
|
|
* 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 c880d0010849ab733ad13bbd18fab3c864d0cf61..de6522adba933dca90338bfb19f833486e696b8d 100644
|
|
--- a/src/main/java/org/bukkit/command/defaults/VersionCommand.java
|
|
+++ b/src/main/java/org/bukkit/command/defaults/VersionCommand.java
|
|
@@ -259,7 +259,7 @@ public class VersionCommand extends BukkitCommand {
|
|
// Purpur start
|
|
int distance = getVersionFetcher().distance();
|
|
final Component message = Component.join(net.kyori.adventure.text.JoinConfiguration.separator(Component.newline()),
|
|
- ChatColor.parseMM("<grey>Current Purpur Version: %s%s*", distance == 0 ? "<green>" : distance > 0 ? "<yellow>" : "<red>", Bukkit.getVersion()),
|
|
+ ChatColor.parseMM("<grey>Current DivineMC Version: %s%s*", distance == 0 ? "<green>" : distance > 0 ? "<yellow>" : "<red>", Bukkit.getVersion()), // DivineMC
|
|
// Purpur end
|
|
msg
|
|
);
|