Skip to content

Commit

Permalink
Colorize a help message, fix config saying 1.21 instead of 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
libraryaddict committed Jan 5, 2025
1 parent f648738 commit 29e028f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,6 @@ private void runWarnings() {
"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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
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()) {
Expand Down
4 changes: 2 additions & 2 deletions shaded/src/main/resources/configs/self_disguise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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!
Expand Down

0 comments on commit 29e028f

Please sign in to comment.