From eaf34801ccc5f50fb8957999cf5baf09ad699500 Mon Sep 17 00:00:00 2001 From: Reasonless Date: Sat, 20 Jun 2020 20:47:17 +0100 Subject: [PATCH] Use StringUtil.display() --- .../helpbot/command/impl/stats/ActivePlotsCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/diamondfire/helpbot/command/impl/stats/ActivePlotsCommand.java b/src/main/java/com/diamondfire/helpbot/command/impl/stats/ActivePlotsCommand.java index 0509705f..cdce3651 100644 --- a/src/main/java/com/diamondfire/helpbot/command/impl/stats/ActivePlotsCommand.java +++ b/src/main/java/com/diamondfire/helpbot/command/impl/stats/ActivePlotsCommand.java @@ -50,7 +50,7 @@ public void run(CommandEvent event) { .query("SELECT * FROM plots WHERE player_count > 0 AND whitelist = 0 ORDER BY player_count DESC LIMIT 10") .onQuery((resultTable) -> { do { - builder.addField(StringUtil.stripColorCodes(resultTable.getString("name")) + + builder.addField(StringUtil.display(resultTable.getString("name")) + String.format(" **(%s)**", resultTable.getInt("id")), "Players: " + resultTable.getInt("player_count"), false); } while (resultTable.next());