@@ -160,24 +160,24 @@ public <T> int settings(CommandSourceStack source, TeamProperty<T> key, String v
160160 MutableComponent keyc = Component .translatable (key .getTranslationKey ("ftbteamsconfig" )).withStyle (ChatFormatting .YELLOW );
161161 if (value .isEmpty ()) {
162162 Component valuec = Component .literal (key .toString (getProperty (key ))).withStyle (ChatFormatting .AQUA );
163- source .sendSuccess (() -> keyc .append (" is set to " ).append (valuec ), true );
163+ source .sendSuccess (() -> keyc .append (" = " ).append (valuec ), true );
164164 } else if (key .isPlayerEditable ()) {
165165 Optional <T > optional = key .fromString (value );
166166
167167 if (optional .isPresent ()) {
168168 TeamPropertyCollection old = properties .copy ();
169169 setProperty (key , optional .get ());
170170 Component valuec = Component .literal (value ).withStyle (ChatFormatting .AQUA );
171- source .sendSuccess (() -> Component .literal ( "Set " ). append ( keyc ). append ( " to " ). append ( valuec ), true );
171+ source .sendSuccess (() -> Component .translatable ( "ftbteams.message.set_property" , keyc , valuec ), true );
172172
173173 TeamEvent .PROPERTIES_CHANGED .invoker ().accept (new TeamPropertiesChangedEvent (this , old ));
174174 syncOnePropertyToAll (source .getServer (), key , optional .get ());
175175 } else {
176- source .sendFailure (Component .literal ( "Failed to parse value!" ));
176+ source .sendFailure (Component .translatable ( "ftbteams.message.parse_failed" , value ));
177177 return 0 ;
178178 }
179179 } else {
180- source .sendFailure (Component .literal ( "That property may not be edited!" ));
180+ source .sendFailure (Component .translatable ( "ftbteams.message.property_not_editable" , keyc ));
181181 }
182182 return Command .SINGLE_SUCCESS ;
183183 }
0 commit comments