@@ -67,16 +67,10 @@ The packet can either be sent via the `LabyModPlayer` object of the player, or d
6767// Get the LabyModPlayer
6868LabyModPlayer player = LabyModProtocolService . get(). getPlayer(uniqueId);
6969
70- // Create a new ServerBadge
71- ServerBadge owner = ServerBadge . create(
72- 1 , // The ID of the badge
73- new Color (255 , 0 , 0 ), // The color of the badge
74- " https://example.com/image_owner.png" // The URL of the badge image
75- );
76- ServerBadge developer = ServerBadge . create(
77- 2 , // The ID of the badge
78- new Color (0 , 0 , 255 ), // The color of the badge
79- " https://example.com/image_developer.png" // The URL of the badge image
70+ // Create a new ServerUserBadge
71+ ServerUserBadge serverUserBadge = ServerUserBadge . create(
72+ uniqueId, // The UUID of the user who has the badge
73+ 1 // The ID of the badge
8074);
8175
8276// Bind the badges
@@ -93,7 +87,7 @@ LabyModProtocol labyModProtocol = LabyModProtocolService.get().labyModProtocol()
9387
9488// Create a new ServerUserBadge
9589ServerUserBadge serverUserBadge = ServerUserBadge . create(
96- uniqueId, // The UUID of the user
90+ uniqueId, // The UUID of the user who has the badge
9791 1 // The ID of the badge
9892);
9993
0 commit comments