Skip to content

v0.7.0 – languages, menu variables and dynamic lists

Choose a tag to compare

@flyingfinger1 flyingfinger1 released this 27 Oct 00:15
· 38 commits to main since this release
  • Languages: all messages, Glyphwork's own dialogs (display mode, plain view, text prompt) and
    command words in English and German. language: auto (default) uses each player's game language,
    everyone else gets fallback-language (en); or set a fixed language. Texts are MiniMessage files in
    plugins/Glyphwork/lang/ (exported on start): change single keys or add a language as
    lang/<code>.yml. Command words work in every language (/glyphwork display and
    /glyphwork darstellung); tab completion suggests the player's own.
  • pack.prompt empty (new default) = the prompt from the language files. The old German default
    prompt in existing configs is treated the same way.
  • /glyphwork pack from the console answers instead of doing nothing; /glyphwork status shows
    each player's language.
  • Menu variables: variables: with defaults, the actions set: name value and toggle: name,
    and %menu_name% in every text, condition and action. The menu redraws itself after set/toggle.
    Tabs, search fields and switches without code. open: takes placeholders.
  • Dynamic lists: items-from: online-players or worlds fills a list or grid each time it is
    drawn; item: describes the entries with %item%, %item_world%, %item_players% ...
    (filterable with show-if). Misspelled %item_...% are reported on load.
  • Conditions accept an empty text as '' (%menu_filter% != '').
  • New example beispiel-spieler.yml (tabs, player search, worlds); existing servers find it in
    src/main/resources/menus/.

Upgrading: nothing to do. The new config.yml keys language and fallback-language default to auto and en when missing; the language files are written to plugins/Glyphwork/lang/ on start. The old German pack.prompt is replaced by the prompt from the language files automatically.

Downloads: Glyphwork-0.7.0.jar (plugin), glyphwork-api-0.7.0.jar (compile against it, do not shade), glyphwork-example-0.7.0.jar (example plugin, optional).