Minor Reformat For Primary Group Fetching
This commit is contained in:
parent
e55f053e4d
commit
6540e47ff5
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user