Implement Group Priority

This commit is contained in:
RayzsYT committed 2024-07-03 01:58:33 +02:00
1 parent cb575353eb
commit 4591941b24
1 file changed
+1 -1
@@ -144,7 +144,7 @@ public class Communicator {
for (Group group : GroupManager.getGroups()) {
if(groups.stream().anyMatch(cTG -> cTG.getGroupName().equals(group.getGroupName()))) continue;
tinyGroup = new TinyGroup(group.getGroupName(), group.getAllCommands(serverName));
tinyGroup = new TinyGroup(group.getGroupName(), group.getPriority(), group.getAllCommands(serverName));
for (GroupBlacklist groupBlacklist : group.getAllServerGroupBlacklist(serverName))
tinyGroup.addAll(groupBlacklist.getCommands());