From 4887491f10aa8f763048203279106663f9d617a8 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 11 Jul 2020 20:15:05 +1200 Subject: [PATCH] Add more information to /ld scoreboard --- .../disguise/commands/libsdisguises/LDScoreboard.java | 3 ++- .../disguise/utilities/translations/LibsMsg.java | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDScoreboard.java b/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDScoreboard.java index 247a4487..72c986d4 100644 --- a/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDScoreboard.java +++ b/src/main/java/me/libraryaddict/disguise/commands/libsdisguises/LDScoreboard.java @@ -135,13 +135,14 @@ public class LDScoreboard implements LDCommand { if (!DisguiseAPI.isDisguised(player)) { LibsMsg.DMODPLAYER_NODISGUISE.send(sender, player.getName()); + LibsMsg.DISGUISE_REQUIRED.send(sender); return; } } else if (sender instanceof Player) { player = (Player) sender; if (!DisguiseAPI.isDisguised(player)) { - LibsMsg.NOT_DISGUISED.send(sender); + LibsMsg.DISGUISE_REQUIRED.send(sender); return; } } else { diff --git a/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java b/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java index 21df6d3b..f4bb7851 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/translations/LibsMsg.java @@ -160,6 +160,7 @@ public enum LibsMsg { "Ignored %s methods you do not have permission to use. Add 'show' to view unusable methods."), OWNED_BY(ChatColor.GOLD + "Plugin registered to '%%__USER__%%'!"), NOT_DISGUISED(ChatColor.RED + "You are not disguised!"), + DISGUISE_REQUIRED(ChatColor.RED + "You must be disguised to run this command!"), TARGET_NOT_DISGUISED(ChatColor.RED + "That entity is not disguised!"), NOT_NUMBER(ChatColor.RED + "Error! %s is not a number"), PARSE_CANT_DISG_UNKNOWN(ChatColor.RED + "Error! You cannot disguise as " + ChatColor.GREEN + "Unknown!"), @@ -315,7 +316,8 @@ public enum LibsMsg { "On scoreboard team '%s' with pushing disabled! If you're still having issues and you are disguised right" + " now, then " + "you have a plugin modifying scoreboard through packets. Example of this is a plugin that modifies your " + - "name above head, or the tablist. Check their configs for pushing disabling options"), + "name above head, or the tablist. Check their configs for pushing disabling options\nSay 'I read to the end' if you " + + "still need help with this, or we'll assume you can't read."), LIBS_SCOREBOARD_DISABLED( "The scoreboard modification has been disabled in config, will continue the debug incase this is intended" + "."),