mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-30 20:39:53 -05:00
Fix Load
This commit is contained in:
1 parent
dde92ed8ed
commit
52a4c4c8f2
1 file changed
+2
-2
@@ -1,7 +1,6 @@
|
||||
package de.rayzs.pat.utils.group;
|
||||
|
||||
import de.rayzs.pat.api.storage.Storage;
|
||||
import de.rayzs.pat.api.storage.blacklist.impl.GroupBlacklist;
|
||||
import de.rayzs.pat.utils.*;
|
||||
import java.util.*;
|
||||
|
||||
@@ -10,7 +9,8 @@ public class GroupManager {
|
||||
private static final List<Group> GROUPS = new ArrayList<>();
|
||||
|
||||
public static void initialize() {
|
||||
Storage.Files.STORAGE.getKeys(true).stream().filter(key -> key.startsWith("groups.")).forEach(key -> {
|
||||
if(Reflection.isProxyServer()) Storage.Files.STORAGE.getKeys("groups", true).forEach(GroupManager::registerGroup);
|
||||
else Storage.Files.STORAGE.getKeys(true).stream().filter(key -> key.startsWith("groups.")).forEach(key -> {
|
||||
String[] args = key.split("\\.");
|
||||
if(args.length >= 1) {
|
||||
String groupName = args[1];
|
||||
|
||||
Reference in new issue
Block a user