Curly braces as toothpick requested

@andrewkm
This commit is contained in:
Jamie Sinn 2015-12-20 23:05:48 -05:00
parent 3a9c55a9ea
commit 0e34202d4d

View File

@ -51,16 +51,20 @@ public class MctopCommandDisplayTask extends BukkitRunnable {
private void displayChat() { private void displayChat() {
if (skill == null) { if (skill == null) {
if(sender instanceof Player) if(sender instanceof Player) {
sender.sendMessage(LocaleLoader.getString("Commands.PowerLevel.Leaderboard")); sender.sendMessage(LocaleLoader.getString("Commands.PowerLevel.Leaderboard"));
else }
else {
sender.sendMessage(ChatColor.stripColor(LocaleLoader.getString("Commands.PowerLevel.Leaderboard"))); sender.sendMessage(ChatColor.stripColor(LocaleLoader.getString("Commands.PowerLevel.Leaderboard")));
}
} }
else { else {
if(sender instanceof Player) if(sender instanceof Player) {
sender.sendMessage(LocaleLoader.getString("Commands.Skill.Leaderboard", skill.getName())); sender.sendMessage(LocaleLoader.getString("Commands.Skill.Leaderboard", skill.getName()));
else }
else {
sender.sendMessage(ChatColor.stripColor(LocaleLoader.getString("Commands.Skill.Leaderboard", skill.getName()))); sender.sendMessage(ChatColor.stripColor(LocaleLoader.getString("Commands.Skill.Leaderboard", skill.getName())));
}
} }
int place = (page * 10) - 9; int place = (page * 10) - 9;
@ -69,10 +73,12 @@ public class MctopCommandDisplayTask extends BukkitRunnable {
// Format: // Format:
// 01. Playername - skill value // 01. Playername - skill value
// 12. Playername - skill value // 12. Playername - skill value
if(sender instanceof Player) if(sender instanceof Player) {
sender.sendMessage(String.format("%2d. %s%s - %s%s", place, ChatColor.GREEN, stat.name, ChatColor.WHITE, stat.statVal)); sender.sendMessage(String.format("%2d. %s%s - %s%s", place, ChatColor.GREEN, stat.name, ChatColor.WHITE, stat.statVal));
else }
else {
sender.sendMessage(String.format("%2d. %s - %s", place, stat.name, stat.statVal)); sender.sendMessage(String.format("%2d. %s - %s", place, stat.name, stat.statVal));
}
place++; place++;
} }