9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-19 15:09:23 +00:00
This commit is contained in:
XiaoMoMi
2025-02-14 02:34:48 +08:00
parent 1147deaa73
commit f8a8ce0f43
11 changed files with 137 additions and 19 deletions

View File

@@ -231,7 +231,7 @@ public class AdventureHelper {
* @return the text wrapped in a color tag to remove shadows
*/
public static String removeShadow(String text) {
return "<#F0F0F0>" + text + "</#F0F0F0>";
return "<shadow:#00000000><#F0F0F0>" + text + "</#F0F0F0></shadow>";
}
/**

View File

@@ -137,6 +137,15 @@ public class VersionHelper {
}
}
/**
* Checks if the server version is newer than 1.21.4
*
* @return True if the version is newer than 1.21.4, otherwise false.
*/
public static boolean isVersionNewerThan1_21_4() {
return version >= 21.39;
}
/**
* Checks if the server version is newer than 1.21.2.
*