Add PlayerData.getPrimaryGroup

This commit is contained in:
Alessandro Proto 2024-10-11 14:39:25 +02:00
parent b77daee289
commit 99099a345a
2 changed files with 5 additions and 1 deletions

View file

@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10
loader_version=0.16.5
# Mod Properties
mod_version=1.8.4
mod_version=1.8.5
maven_group=cc.reconnected
archives_base_name=rcc-server

View file

@ -130,6 +130,10 @@ public class PlayerData {
});
}
public String getPrimaryGroup() {
return lpUser.getPrimaryGroup();
}
public static PlayerData getPlayer(UUID uuid) {
var lp = luckPerms();
var userManager = lp.getUserManager();