From 7f002143ec08f4bf5f0bf3e2a9ed33d73f408b15 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 7 Jul 2021 12:17:45 +0200 Subject: [PATCH] Added invalid-command --- .../java/com/willfp/talismans/command/CommandTalismans.java | 2 +- eco-core/core-plugin/src/main/resources/lang.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/talismans/command/CommandTalismans.java b/eco-core/core-plugin/src/main/java/com/willfp/talismans/command/CommandTalismans.java index 5ec55de..3dd27b5 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/talismans/command/CommandTalismans.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/talismans/command/CommandTalismans.java @@ -21,7 +21,7 @@ public class CommandTalismans extends PluginCommand { @Override public CommandHandler getHandler() { return (sender, args) -> { - + sender.sendMessage(this.getPlugin().getLangYml().getMessage("invalid-command")); }; } } diff --git a/eco-core/core-plugin/src/main/resources/lang.yml b/eco-core/core-plugin/src/main/resources/lang.yml index 21221f4..1c4a4d8 100644 --- a/eco-core/core-plugin/src/main/resources/lang.yml +++ b/eco-core/core-plugin/src/main/resources/lang.yml @@ -2,6 +2,7 @@ messages: prefix: "&6&lTalismans&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!" needs-player: "&cYou must specify a player" invalid-player: "&cInvalid player!"