chore(core): deprecate prefixed accessors/mutators in CommandManager (#377)
chore(core): deprecate prefixed accessors/mutators in CommandManager.java All prefixed (actual) getters/setters in CommandManager have been deprecated, and non-prefixed alternatives have been introduced. I've also put some effort into improving the JavaDocs of these methods.
This commit is contained in:
parent
687cd4c536
commit
296539d56c
48 changed files with 400 additions and 157 deletions
|
|
@ -424,8 +424,8 @@ public final class ExamplePlugin extends JavaPlugin {
|
|||
|
||||
/* Register a custom regex caption */
|
||||
final Caption moneyCaption = Caption.of("regex.money");
|
||||
if (this.manager.getCaptionRegistry() instanceof SimpleCaptionRegistry) {
|
||||
((SimpleCaptionRegistry<CommandSender>) this.manager.getCaptionRegistry()).registerMessageFactory(
|
||||
if (this.manager.captionRegistry() instanceof SimpleCaptionRegistry) {
|
||||
((SimpleCaptionRegistry<CommandSender>) this.manager.captionRegistry()).registerMessageFactory(
|
||||
moneyCaption,
|
||||
(sender, key) -> "'{input}' is not very cash money of you"
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue