Fixed bug where badges would show up as "null
This commit is contained in:
@@ -78,7 +78,7 @@ public class HelpCommand extends Commands {
|
||||
FPlayer.plainMsg(p,ctype);
|
||||
FPlayer.plainMsg(p,online);
|
||||
FPlayer.plainMsg(p,ChatColor.GRAY + "Use " + ChatColor.WHITE + "/fpc who " + ChatColor.GRAY + "to see who is in this channel.");
|
||||
FPlayer.plainMsg(p, ChatColor.GRAY + "Use " + ChatColor.WHITE + "/fpc help page# " + ChatColor.GRAY + "for a list of commands.");
|
||||
FPlayer.plainMsg(p, ChatColor.GRAY + "Use " + ChatColor.WHITE + "/fpc help <page number> " + ChatColor.GRAY + "for a list of commands.");
|
||||
return;
|
||||
}
|
||||
FPlayer.plainMsg(p, ChatColor.GOLD + "[" + Integer.toString(pg) + "/" + Integer.toString(pageCount) + "] " + ChatColor.YELLOW + "FPChatX Commands:");
|
||||
|
||||
@@ -286,6 +286,9 @@ public class FPlayer {
|
||||
}
|
||||
|
||||
public Integer[] getBadges() {
|
||||
if(badges[0] == null || badges[1] == null || badges[2] == null) {
|
||||
badges = BadgeGetter.getBadges(this);
|
||||
}
|
||||
return this.badges;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user