Skip to content

Commit 8ce8f1f

Browse files
committed
wrong ServerUserBadge description
1 parent b7da07d commit 8ce8f1f

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

docs/pages/server/labymod/features/user-badge.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,10 @@ The packet can either be sent via the `LabyModPlayer` object of the player, or d
6767
// Get the LabyModPlayer
6868
LabyModPlayer 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
9589
ServerUserBadge 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

Comments
 (0)