Skip to content

Commit b2d4293

Browse files
authored
chore: remove mentions of UTF8ResourceBundleControl (#772)
This class was removed in Adventure 5.x and is generally not relevant any more due to modern MC using Java >9.
1 parent 22e0b57 commit b2d4293

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/content/docs/adventure/localization.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ GlobalTranslator.translator().addSource(myStore);
117117
```
118118

119119
There are additional methods on the message format translation store to bulk register from [resource bundles](jd:java:java.util.ResourceBundle).
120-
You may also want to use Adventure's `UTF8ResourceBundleControl` utility class to create your bundle.
121120

122121
### Using MiniMessage for translations
123122

src/content/docs/paper/dev/api/component-api/i18n.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ some.translation.key=Translated Message: {0}
3838
```java
3939
TranslationStore.StringBased<MessageFormat> store = TranslationStore.messageFormat(Key.key("namespace:value"));
4040

41-
ResourceBundle bundle = ResourceBundle.getBundle("your.plugin.Bundle", Locale.US, UTF8ResourceBundleControl.get());
41+
ResourceBundle bundle = ResourceBundle.getBundle("your.plugin.Bundle", Locale.US);
4242
store.registerAll(Locale.US, bundle, true);
4343
GlobalTranslator.translator().addSource(store);
4444
```

0 commit comments

Comments
 (0)