Skip to content

Create a command for updating the messages file #768

@ljacqu

Description

@ljacqu

As we add more messages to the yml file it becomes difficult for server owners to update their YML files without losing their custom messages. Create a child command of /authme that gets new messages from the JAR's messages and adds it to the user's file.

  • should we do a backup before changing it?
  • if we have a file of the same language (e.g. messages_de.yml), copy missing messages from there
  • copy remaining messages from messages_en.yml
    • optionally add them as comments only as our tool task does, but then you need to make sure that the command can be run multiple times without adding the same comment each time
  • edit the error message in the Messages class to refer to the new command (the "Error getting message with key...")
  • update the commands page (tool task createCommandPage)

Hint: load messages with Bukkit's YamlConfiguration

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions