MMMOUpgradeUser Wikiv2.0 docs
Messages

Messages and announcements

message.yml contains text sent to players and admins. announcements.yml enables broadcasts when an item reaches configured level milestones.

Message Placeholders

PlaceholderUsed InMeaning
{path}, {value}config-updatedThe config path that was changed and its new value.
{stats}stats-listRegistered stats list.
{cost}, {money}not-enough-moneyUpgrade cost and the player's current balance.
{player}, {item}, {level}announcement-upgrade-levelBroadcast data for level milestones.

message.yml Example

prefix: "<gray>[<aqua>MMOUpgrade</aqua>]</gray> "

no-permission: "<red>You do not have permission to use this command.</red>"
unknown-player: "<red>That player is not online.</red>"
player-only: "<red>Only players can use this command.</red>"

usage-player: "<yellow>Usage: /mmoupgrade upgrade|reload</yellow>"
usage-console: "<yellow>Usage: mmoupgrade upgrade <player> or mmoupgrade reload</yellow>"
reload: "<green>Configuration reloaded.</green>"
config-updated: "<green>Updated {path} to {value}.</green>"
stats-list: "<gray>Registered stats: <white>{stats}</white></gray>"

upgrade-success: "<green>Upgrade successful.</green>"
upgrade-failed: "<red>Upgrade failed. The item was downgraded.</red>"
upgrade-failed-protected: "<yellow>Upgrade failed, but the protect charm kept the current level.</yellow>"
upgrade-failed-no-downgrade: "<red>Upgrade failed.</red>"

missing-upgrade-item: "<red>Place the item you want to upgrade in the upgrade item slot.</red>"
missing-upgrade-stone: "<red>Place an upgrade stone in the upgrade stone slot.</red>"
invalid-upgrade-item-type: "<red>This MMOItems type cannot be upgraded.</red>"
invalid-upgrade-stone: "<red>This item is not a configured upgrade stone.</red>"
invalid-lucky-charm: "<red>This item is not a configured lucky charm.</red>"
invalid-protect-charm: "<red>This item is not a configured protect charm.</red>"

not-enough-money: "<red>You need {cost} to upgrade. You only have {money}.</red>"
max-level: "<red>This item has reached the maximum upgrade level.</red>"
invalid-money-placeholder: "<red>The configured money placeholder did not return a valid number.</red>"

announcement-upgrade-level: "<yellow>{player} upgraded {item} to level {level}.</yellow>"

announcements.yml Example

enabled: true

levels:
  - 5
  - 10
  - 15
  - 20
  - 25

If enabled: false, MMOUpgrade will not broadcast even when an item reaches a listed level.