From 4f3174c68b6c3d788ec73bade168613784cd8e67 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Mon, 21 Jan 2019 05:06:42 -0800 Subject: [PATCH] mcrank now works again with scoreboards disabled --- .../java/com/gmail/nossr50/commands/player/McrankCommand.java | 2 +- src/main/resources/locale/locale_en_US.properties | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java b/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java index f09788718..b2dd01241 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/McrankCommand.java @@ -105,7 +105,7 @@ public class McrankCommand implements TabExecutor { mcMMOPlayer.actualizeDatabaseATS(); } - boolean useBoard = (sender instanceof Player) && (Config.getInstance().getRankUseBoard()); + boolean useBoard = Config.getInstance().getScoreboardsEnabled() && (sender instanceof Player) && (Config.getInstance().getRankUseBoard()); boolean useChat = !useBoard || Config.getInstance().getRankUseChat(); new McrankCommandAsyncTask(playerName, sender, useBoard, useChat).runTaskAsynchronously(mcMMO.p); diff --git a/src/main/resources/locale/locale_en_US.properties b/src/main/resources/locale/locale_en_US.properties index 5d26eb0c3..5d5ba1cf3 100644 --- a/src/main/resources/locale/locale_en_US.properties +++ b/src/main/resources/locale/locale_en_US.properties @@ -564,8 +564,8 @@ Commands.mchud.Invalid=That is not a valid HUD type. Commands.mcpurge.Success=[[GREEN]]The database was successfully purged! Commands.mcrank.Heading=[[GOLD]]-=PERSONAL RANKINGS=- Commands.mcrank.Overall=Overall[[GREEN]] - [[GOLD]]Rank [[WHITE]]#[[GREEN]]{0} -Commands.mcrank.Player=TARGET: [[WHITE]]{0} -Commands.mcrank.Skill={0}[[GREEN]] - [[GOLD]]Rank [[WHITE]]#[[GREEN]]{1} +Commands.mcrank.Player=[[YELLOW]]Rankings for [[WHITE]]{0} +Commands.mcrank.Skill=[[YELLOW]]{0}[[GREEN]] - [[GOLD]]Rank [[WHITE]]#[[GREEN]]{1} Commands.mcrank.Unranked=[[WHITE]]Unranked Commands.mcrefresh.Success={0}''s cooldowns have been refreshed. Commands.mcremove.Success=[[GREEN]]{0} was successfully removed from the database!