Skip to content

MessagesUpdated

Package: com.hypixel.hytale.server.core.modules.i18n.event Implements: 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.

FieldTypeAccessorMutableNullable
changedMessagesMap<String,Map<String,String>>getChangedMessages()NoNo
removedMessagesMap<String,Map<String,String>>getRemovedMessages()NoNo
  • 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.

Dispatch location not identified in decompiled source. This event may be dispatched by game modules not yet mapped.

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());
}
});