From 1f5b474e195f1bc3e357df4898c5f1b0e2d51437 Mon Sep 17 00:00:00 2001 From: sekwah Date: Tue, 23 Jan 2018 06:28:17 +0000 Subject: [PATCH] Update to have a invalid sub command message --- Resources/lang/en_GB.lang | 1 + .../advancedportals/core/commands/CommandWithSubCommands.java | 1 + 2 files changed, 2 insertions(+) diff --git a/Resources/lang/en_GB.lang b/Resources/lang/en_GB.lang index ff608b3..fd1b5d0 100644 --- a/Resources/lang/en_GB.lang +++ b/Resources/lang/en_GB.lang @@ -22,6 +22,7 @@ logger.plugindisable=Advanced portals are being disabled! logger.plugincrafterror=This version of craftbukkit is not yet supported or something went wrong, please post this message with the version number and the above stacktrace in an issue on GitHub v:%1$s command.noargs= Sorry but you need to specify a sub command, please use \u00A7e/%1$s help \u00A7cif you would like a list of possible sub commands. +command.subcommand.invalid= Sorry but that is not a valid sub command. command.help.header=\u00A7e--------- \u00A7a%1$s Help - Page %2$s of %3$s\u00A7e --------------- command.help.invalidnum= Sorry but \u00A7e%1$s\u00A7c is not a valid page number. diff --git a/src/com/sekwah/advancedportals/core/commands/CommandWithSubCommands.java b/src/com/sekwah/advancedportals/core/commands/CommandWithSubCommands.java index ae900fd..10e358e 100644 --- a/src/com/sekwah/advancedportals/core/commands/CommandWithSubCommands.java +++ b/src/com/sekwah/advancedportals/core/commands/CommandWithSubCommands.java @@ -83,6 +83,7 @@ public class CommandWithSubCommands implements CommandTemplate { return; } } + sender.sendMessage(Lang.translateColor("messageprefix.negative") + Lang.translateColor("command.subcommand.invalid")); } } else {