use of net.dzikoysk.funnyguilds.basic.User in project FunnyGuilds by FunnyGuilds.
the class IndividualPrefixManager method updatePlayer.
public static void updatePlayer(Player player) {
if (!player.isOnline()) {
return;
}
User user = User.get(player);
try {
player.setScoreboard(user.getIndividualPrefix().getScoreboard());
} catch (IllegalStateException e) {
FunnyLogger.warning("[IndividualPrefix] java.lang.IllegalStateException: Cannot set scoreboard for invalid CraftPlayer (" + player.getClass() + ")");
}
user.setScoreboard(user.getIndividualPrefix().getScoreboard());
}
Aggregations