warn if no colon in server group

This commit is contained in:
ajgeiss0702
2021-08-09 12:55:14 -07:00
parent f984d74d88
commit fbb6d94596
@@ -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(",");