MessagesUpdated
Package:
com.hypixel.hytale.server.core.modules.i18n.eventImplements:IEvent<Void>Cancellable: No
Standard event dispatched when translation messages are updated. Provides maps of changed and removed messages, organized as nested maps: the outer key is the language/file identifier, and the inner map contains individual message key-value pairs.
Fields / Accessors
Section titled “Fields / Accessors”| Field | Type | Accessor | Mutable | Nullable |
|---|---|---|---|---|
changedMessages | Map<String,Map<String,String>> | getChangedMessages() | No | No |
removedMessages | Map<String,Map<String,String>> | getRemovedMessages() | No | No |
- changedMessages — Nested map of messages that were added or modified. Outer key is the language/file, inner map is message key to value.
- removedMessages — Nested map of messages that were removed. Same structure as changedMessages.
Fired By
Section titled “Fired By”Dispatch location not identified in decompiled source. This event may be dispatched by game modules not yet mapped.
Listening
Section titled “Listening”getEventRegistry().register(MessagesUpdated.class, event -> { Map<String, Map<String, String>> changed = event.getChangedMessages(); Map<String, Map<String, String>> removed = event.getRemovedMessages();
// React to translation changes for (var entry : changed.entrySet()) { getLogger().info("Language file updated: " + entry.getKey()); }});Related Events
Section titled “Related Events”GenerateDefaultLanguageEvent— Fired during initial default language generation.