Paradaux

PAR-284

0

[chestshop] Drop the redundant Messages adapter; call the framework Message bean directly

Pending ReleaseUnassignedChestShop

configuration/Messages.java is a thin adapter over the HiberniaFramework Message bean (io.paradaux.hibernia.framework.i18n.Message): a reflection-loaded catalogue of static Message constants (each just a handle to a chestshop.<field> key) plus an inner Message class wrapping ChestShop.message().component(...). The framework bean already does MiniMessage + {placeholder} + send, and house style (Treasury/Business) calls it directly with raw dotted keys — message.send(sender, "treasury.foo", "k", v).

Kill Messages.java and call ChestShop.message() directly at all ~125 sites across 29 files:

  • Messages.X.sendWithPrefix(s, …)ChestShop.message().send(s, "chestshop.X", …)
  • Messages.X.send(s, …) (no prefix) → blank the prefix placeholder ("prefix", "")
  • map-valued / component-building sites → ChestShop.message().component("chestshop.X", map)

Preserve prefix-vs-no-prefix semantics exactly (every template starts with {prefix}; no-prefix is achieved by blanking it).

Resources

Comments

No comments yet.

Activity

  • ParadauxIO linked a commit — Commit 0dcc767 — Drop the ChestShop access toggle and the redundant Messages adapter (PAR-283, PAR-284)
  • tesks changed status to Status → Pending Release
  • tesks created the issue