Skip to content

Commit 8a5e59d

Browse files
authored
fix: re-add string overloads for nametagVisibility and collisionRule in WrappedTeamParameters.Builder (#3445)
1 parent 90a386b commit 8a5e59d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/main/java/com/comphenix/protocol/wrappers/WrappedTeamParameters.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,30 @@ public Builder nametagVisibility(@NotNull TeamVisibility nametagVisibility) {
151151
return this;
152152
}
153153

154+
/**
155+
* Compatibility stub for FeatherBoard – accepts raw String visibility.
156+
*/
157+
public Builder nametagVisibility(@NotNull String visibility) {
158+
Preconditions.checkNotNull(visibility, "visibility string cannot be null");
159+
this.nametagVisibility = TeamVisibility.fromName(visibility);
160+
return this;
161+
}
162+
154163
public Builder collisionRule(@NotNull TeamCollisionRule collisionRule) {
155164
Preconditions.checkNotNull(collisionRule);
156165
this.collisionRule = collisionRule;
157166
return this;
158167
}
159168

169+
/**
170+
* Compatibility stub for FeatherBoard – accepts raw String collision rules.
171+
*/
172+
public Builder collisionRule(@NotNull String rule) {
173+
Preconditions.checkNotNull(rule, "collision rule cannot be null");
174+
this.collisionRule = TeamCollisionRule.fromName(rule);
175+
return this;
176+
}
177+
160178
public Builder color(@NotNull EnumWrappers.ChatFormatting color) {
161179
Preconditions.checkNotNull(color);
162180
this.color = color;

0 commit comments

Comments
 (0)