MessagesFile
Since 1.0.0
The most notorious feature from MessagesFile is that they can be used to send any type of messages directly from the file, they include all the methods from PluginFile and...
Default replacer
The default Replacer is essentially a Replacer that gets stored on the MessagesFile and is applied on every message, a common implementation of this default replacer would be:
Getters
Getters work they way you might expect but they support replacements if specified, if you only specify a path, the String on that path will be returned as usual, if you also specify a Replacer (As a Replacer object or the Objects directly), that replacements will be applied. This affects to both strings and string lists and color patterns are automatically applied. Assuming the value under the path "Test.Path" is "This is a %test%
Senders
Sending messages can be as simple as sending a string and as complex as sending a different message depending if the receiver is a player or the console, all of this methods come with color, target and event pattern support, so every administrator can choose how every message will be displayed just by modifying a yml file, as simple as that. Here is how to use them
Last updated
Was this helpful?