Colorize a help message, fix config saying 1.21 instead of 1.20.6

This commit is contained in:
libraryaddict 2025-01-06 00:28:41 +13:00
parent f6487381e5
commit 29e028f028
3 changed files with 4 additions and 10 deletions

View File

@ -319,13 +319,6 @@ public class LibsDisguises extends JavaPlugin {
"Please update from MC 1.19.0! You should be using at least 1.19.3! 1.19.1 is the lowest supported 1.19 version!");
}
// Creates more problems than it solves
/* if (NmsVersion.v1_21_R1.isSupported()) {
getLogger().info(
"Detected you are running 1.21, you may need to enable `enum-compatibility-mode` in your server's bukkit.yml if you are
experiencing errors on Lib's Disguises load");
}*/
try {
Class cl = Class.forName("org.bukkit.Server$Spigot");
} catch (ClassNotFoundException e) {

View File

@ -119,7 +119,8 @@ public class LibsDisguisesCommand implements CommandExecutor, TabCompleter {
if (sender.hasPermission("libsdisguises.reload")) {
sender.sendMessage(ChatColor.DARK_GREEN + "Use " + ChatColor.GREEN + "/libsdisguises " + "reload" + ChatColor.DARK_GREEN +
" to reload the config. All disguises will be blown by doing this" + ".");
sender.sendMessage(ChatColor.DARK_GREEN + "Use /libsdisguises help to see more help");
sender.sendMessage(
ChatColor.DARK_GREEN + "Use " + ChatColor.GREEN + "/libsdisguises help" + ChatColor.DARK_GREEN + " to see more help");
}
if (LibsPremium.isPremium()) {

View File

@ -14,7 +14,7 @@ ViewSelfDisguises: true
# Default is true
ViewSelfDisguisesDefault: true
# If this is enabled and the server is 1.21+, players will be given the scale attribute to scale them up/down to the disguise's size
# If this is enabled and the server is 1.20.6+, players will be given the scale attribute to scale them up/down to the disguise's size
# This will only work on living disguises, and is false by default due to the possibility of abuse as it'd shrink hitboxes and the like
# This may behave unexpectably if you're playing with other scaling modifiers outside of this plugin!
# An example of what this setting does, is if you disguise as a cat you will be scaled down so your viewpoint is at the same height of an actual cat
@ -39,7 +39,7 @@ HearSelfDisguise: true
# false = hidden, true = shown
TallSelfDisguises: false
# This setting which is for servers that are 1.21+, allows the server to scale down the self disguise instead of hiding it completely
# This setting which is for servers that are 1.20.6+, allows the server to scale down the self disguise instead of hiding it completely
# If a player looks down, they'll see a mini figure of the previously large disguise
# This setting only works if the disguise wouldn't be shown as it's too tall, aka the above setting is false
# This will only work on living disguises!