Minor Reformat For Primary Group Fetching

This commit is contained in:
Driftay 2020-03-25 01:55:04 -04:00
parent e55f053e4d
commit 6540e47ff5
1 changed files with 1 additions and 7 deletions

View File

@ -705,13 +705,7 @@ public class FactionsPlugin extends MPlugin {
}
public String getPrimaryGroup(OfflinePlayer player) {
AtomicReference<String> primaryGroup = new AtomicReference<>();
if (perms == null || !perms.hasGroupSupport()) return " ";
else {
Bukkit.getScheduler().runTaskAsynchronously(this, () -> primaryGroup.set(perms.getPrimaryGroup(Bukkit.getWorlds().get(0).toString(), player)));
return primaryGroup.get();
}
return perms == null || !perms.hasGroupSupport() ? " " : perms.getPrimaryGroup(Bukkit.getWorlds().get(0).toString(), player);
}
public void debug(Level level, String s) {