Skip to content

Commit

Permalink
- fix § sign not showing properly
Browse files Browse the repository at this point in the history
- add example for locale names in README.md
  • Loading branch information
onebeastchris committed Oct 19, 2023
1 parent 1e58484 commit 106d703
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ Download available in the releases tab.
- Restart the server.

### Usage:
- Configure the ip/port in the config.yml. The file is located under /Geyser/extensions/PickPack/config.yml.
- Configure the ip/port in the config.yml. The file is located under `/Geyser-xxx/extensions/PickPack/config.yml`.
These are needed so the automatic transfer packet works.
- Place packs that are applied by default go in the "defaultPacks" folder. (located in Geyser/extensions/PickPack/defaultPacks)
- Place packs that players can optionally turn on go in the "optionalPacks" folder. (located in Geyser/extensions/optionalPacks)
- Place packs that are applied by default go in the "DefaultPacks" folder. (located in `/Geyser-xxx/extensions/PickPack/DefaultPacks`)
- Place packs that players can optionally turn on go in the "OptionalPacks" folder. (located in `/Geyser-xxx/extensions/OptionalPacks`)
- Reload the extension using `/pickpack reload`, or restart the server.

### Commands:
Expand All @@ -41,5 +41,6 @@ These are needed so the automatic transfer packet works.
- `/pickpack reload` - Reloads the config.yml and the packs.

### Languages:
This extension has multi-language support. However, the default language is English - to add more languages, copy the `en_US.properties` file from the /extensions/PickPack/translations folder, and translate the strings.
This extension has multi-language support. However, the default language is English - to add more languages, copy the `en_US.properties` file from the `/extensions/PickPack/translations` folder, and translate the strings.
Then, save the file as e.g. `de_DE.properties` for German. You can select a default locale in the config.yml. Otherwise, all locales will be loaded & used automatically if a player's language matches.
To see all possible locales, check the Geyser locales [here](https://github.com/GeyserMC/languages/tree/master/texts).
6 changes: 3 additions & 3 deletions src/main/resources/en_US.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ pack.form.title=Choose your packs:
pack.form.label=Showing %s
no_packs.warning=You have no packs applied!

disconnect.message=§6 Join back to apply the changes!
reload.success=§6 Config reloaded!
reload.error=§c Config reload failed!
disconnect.message=\u00A76 Join back to apply the changes!
reload.success=\u00A76 Config reloaded!
reload.error=\u00A7c Config reload failed!

0 comments on commit 106d703

Please sign in to comment.