File tree Expand file tree Collapse file tree
core/src/main/java/dev/pgm/community/nick/feature Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package dev .pgm .community .nick .feature ;
22
3+ import static dev .pgm .community .util .PlayerUtils .PLAYER_UTILS ;
34import static net .kyori .adventure .text .Component .text ;
45
56import dev .pgm .community .utils .PGMUtils ;
1011import net .kyori .adventure .text .format .NamedTextColor ;
1112import net .kyori .adventure .text .format .TextDecoration ;
1213import org .bukkit .entity .Player ;
14+ import org .jspecify .annotations .NonNull ;
1315import tc .oc .pgm .api .PGM ;
1416import tc .oc .pgm .api .integration .Integration ;
1517import tc .oc .pgm .api .integration .NickIntegration ;
1618import tc .oc .pgm .api .match .Match ;
1719import tc .oc .pgm .api .player .MatchPlayer ;
20+ import tc .oc .pgm .util .skin .Skin ;
1821
1922public class PGMNickIntegration implements NickIntegration {
2023
@@ -36,6 +39,11 @@ public String getNick(Player player) {
3639 return nick .getOnlineNick (player .getUniqueId ());
3740 }
3841
42+ @ Override
43+ public Skin getPlayerSkin (@ NonNull Player player , Player viewer ) {
44+ return PLAYER_UTILS .getPlayerSkin (player , viewer );
45+ }
46+
3947 public void cancelTask () {
4048 hotbarTask .cancel (true );
4149 }
You can’t perform that action at this time.
0 commit comments