Added subcommand check

This commit is contained in:
Auxilor 2021-07-06 19:58:10 +02:00
parent 0da2e15f1e
commit 6ba5952074
2 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,7 @@ public class CommandEcoEnchants extends PluginCommand {
@Override
public CommandHandler getHandler() {
return (sender, args) -> {
sender.sendMessage(this.getPlugin().getLangYml().getMessage("invalid-command"));
};
}
}

View File

@ -4,6 +4,7 @@ messages:
prefix: "&a&lEcoEnchants &r&8» &r"
no-permission: "&cYou don't have permission to do this!"
not-player: "&cThis command must be run by a player"
invalid-command: "&cUnknown subcommand!"
reloaded: "Reloaded!"
got-special: "You got a &dSpecial &fenchantment!"
skip-added: "&aAdded &flore skip to item!"