Skip to content

Commit c591932

Browse files
committed
fix: improve 'no format' and 'no cooldown message'
- Change these messages to more descriptive ones and explicitly state that it's a message from Akropolis.
1 parent 076bc19 commit c591932

File tree

1 file changed

+8
-2
lines changed
  • src/main/java/me/zetastormy/akropolis/module/modules/chat/groups

1 file changed

+8
-2
lines changed

src/main/java/me/zetastormy/akropolis/module/modules/chat/groups/ChatGroups.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,16 @@ public void onEnable() {
6060
groupsSection.getKeys(false).stream()
6161
.filter(key -> !key.equals("enabled"))
6262
.forEach(groupName -> chatGroups.put(groupName, new ChatGroup(groupName,
63-
groupsSection.getString(groupName + ".format", "No format."),
63+
groupsSection.getString(
64+
groupName + ".format",
65+
String.format("<red><bold>[Akropolis]</bold> Chat group <yellow>%s</yellow> has no format, check the configuration.", groupName)
66+
),
6467
groupsSection.getInt(groupName + ".priority", 0),
6568
groupsSection.getInt(groupName + ".cooldown.time", 0),
66-
groupsSection.getString(groupName + ".cooldown.message", "No cooldown message."),
69+
groupsSection.getString(
70+
groupName + ".cooldown.message",
71+
String.format("<red><bold>[Akropolis]</bold> Chat group <yellow>%s</yellow> has no cooldown message, check the configuration.", groupName)
72+
),
6773
new Emojis(groupsSection.getConfigurationSection(groupName + ".emojis")))));
6874
}
6975

0 commit comments

Comments
 (0)