warn if no colon in server group
This commit is contained in:
@@ -231,6 +231,11 @@ public class QueueManagerImpl implements QueueManager {
|
||||
continue;
|
||||
}
|
||||
|
||||
if(!groupRaw.contains(":")) {
|
||||
main.getLogger().warning("Incorrect formatting! Each server group needs to have a name and a list of servers seperated by a colon (:).");
|
||||
continue;
|
||||
}
|
||||
|
||||
String groupName = groupRaw.split(":")[0];
|
||||
String[] serversraw = groupRaw.split(":")[1].split(",");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user