mcrank now works again with scoreboards disabled

This commit is contained in:
nossr50 2019-01-21 05:06:42 -08:00
parent 657e66f3c5
commit 4f3174c68b
2 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ public class McrankCommand implements TabExecutor {
mcMMOPlayer.actualizeDatabaseATS(); 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(); boolean useChat = !useBoard || Config.getInstance().getRankUseChat();
new McrankCommandAsyncTask(playerName, sender, useBoard, useChat).runTaskAsynchronously(mcMMO.p); new McrankCommandAsyncTask(playerName, sender, useBoard, useChat).runTaskAsynchronously(mcMMO.p);

View File

@ -564,8 +564,8 @@ Commands.mchud.Invalid=That is not a valid HUD type.
Commands.mcpurge.Success=[[GREEN]]The database was successfully purged! Commands.mcpurge.Success=[[GREEN]]The database was successfully purged!
Commands.mcrank.Heading=[[GOLD]]-=PERSONAL RANKINGS=- Commands.mcrank.Heading=[[GOLD]]-=PERSONAL RANKINGS=-
Commands.mcrank.Overall=Overall[[GREEN]] - [[GOLD]]Rank [[WHITE]]#[[GREEN]]{0} Commands.mcrank.Overall=Overall[[GREEN]] - [[GOLD]]Rank [[WHITE]]#[[GREEN]]{0}
Commands.mcrank.Player=TARGET: [[WHITE]]{0} Commands.mcrank.Player=[[YELLOW]]Rankings for [[WHITE]]{0}
Commands.mcrank.Skill={0}[[GREEN]] - [[GOLD]]Rank [[WHITE]]#[[GREEN]]{1} Commands.mcrank.Skill=[[YELLOW]]{0}[[GREEN]] - [[GOLD]]Rank [[WHITE]]#[[GREEN]]{1}
Commands.mcrank.Unranked=[[WHITE]]Unranked Commands.mcrank.Unranked=[[WHITE]]Unranked
Commands.mcrefresh.Success={0}''s cooldowns have been refreshed. Commands.mcrefresh.Success={0}''s cooldowns have been refreshed.
Commands.mcremove.Success=[[GREEN]]{0} was successfully removed from the database! Commands.mcremove.Success=[[GREEN]]{0} was successfully removed from the database!