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) {
|
public String getPrimaryGroup(OfflinePlayer player) {
|
||||||
AtomicReference<String> primaryGroup = new AtomicReference<>();
|
return perms == null || !perms.hasGroupSupport() ? " " : perms.getPrimaryGroup(Bukkit.getWorlds().get(0).toString(), player);
|
||||||
|
|
||||||
if (perms == null || !perms.hasGroupSupport()) return " ";
|
|
||||||
else {
|
|
||||||
Bukkit.getScheduler().runTaskAsynchronously(this, () -> primaryGroup.set(perms.getPrimaryGroup(Bukkit.getWorlds().get(0).toString(), player)));
|
|
||||||
return primaryGroup.get();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void debug(Level level, String s) {
|
public void debug(Level level, String s) {
|
||||||
|
Loading…
Reference in New Issue
Block a user