diff --git a/plugin/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDUploadLogs.java b/plugin/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDUploadLogs.java index 928839ad..e3740ade 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDUploadLogs.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDUploadLogs.java @@ -143,13 +143,13 @@ public class LDUploadLogs implements LDCommand { if (isTooBig(latest)) { sender.sendMessage( - ChatColor.RED + "Your latest.log file is too big! It should be less than 512kb! Please restart and run this " + "command again!"); + ChatColor.RED + "Your latest.log file is too big! It should be less than 10mb! Please restart and run this " + "command again!"); return; } if (isTooBig(disguises)) { sender.sendMessage(ChatColor.RED + "Your disguises.yml is too big! You'll need to trim that file down before using this command! It " + - "should be less than 512kb!"); + "should be less than 10mb!"); return; } @@ -246,7 +246,7 @@ public class LDUploadLogs implements LDCommand { } private boolean isTooBig(long length) { - return length > 10_000_000; + return length > 10_048_000; } @Override diff --git a/plugin/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java b/plugin/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java index 5fbc1e51..adf3a00a 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/utilities/reflection/ReflectionManager.java @@ -2540,6 +2540,11 @@ public class ReflectionManager { } public static void setScore(Scoreboard scoreboard, String name, int score, boolean canScheduleTask) { + // Disabled for 1.20.4, 1.20.4 introduces "read only" scores and I don't have an idea on how to deal with it as yet + if (NmsVersion.v1_20_R3.isSupported()) { + return; + } + if (canScheduleTask && (!Bukkit.isPrimaryThread() || DisguiseUtilities.isRunningPaper())) { new BukkitRunnable() { @Override