File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
src/main/java/com/comphenix/protocol/wrappers Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -151,12 +151,30 @@ public Builder nametagVisibility(@NotNull TeamVisibility nametagVisibility) {
151
151
return this ;
152
152
}
153
153
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
+
154
163
public Builder collisionRule (@ NotNull TeamCollisionRule collisionRule ) {
155
164
Preconditions .checkNotNull (collisionRule );
156
165
this .collisionRule = collisionRule ;
157
166
return this ;
158
167
}
159
168
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
+
160
178
public Builder color (@ NotNull EnumWrappers .ChatFormatting color ) {
161
179
Preconditions .checkNotNull (color );
162
180
this .color = color ;
You can’t perform that action at this time.
0 commit comments