diff options
author | Minenash <minenash@protonmail.com> | 2019-01-13 00:32:55 -0500 |
---|---|---|
committer | Minenash <minenash@protonmail.com> | 2019-01-13 00:32:55 -0500 |
commit | ff281241b5a8ee804c6e833f82edbc4137e11857 (patch) | |
tree | 34d4a68f1322ad30dce2efc70e88a8adea41a169 /src/main/java/com/nemez/cmdmgr/EmptyCommand.java | |
parent | 8f2200619e25d312712f84fcdbabd5fc8ee40602 (diff) |
Added the ability to unload using the fallback.*
* Unfortunately it still won't remove the commands from the TabComplete
* Also, changed the error msg from an unregistered command to help
lessen the confusion on the previous issue.
Diffstat (limited to 'src/main/java/com/nemez/cmdmgr/EmptyCommand.java')
-rw-r--r-- | src/main/java/com/nemez/cmdmgr/EmptyCommand.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/nemez/cmdmgr/EmptyCommand.java b/src/main/java/com/nemez/cmdmgr/EmptyCommand.java index 8a29527..770ed77 100644 --- a/src/main/java/com/nemez/cmdmgr/EmptyCommand.java +++ b/src/main/java/com/nemez/cmdmgr/EmptyCommand.java @@ -8,13 +8,13 @@ public class EmptyCommand extends Executable { public EmptyCommand(String name) { - super(name, null); + super(name, null, ""); } @Override public boolean execute(CommandSender sender, String name, String[] args_) { - sender.sendMessage("§cUnknown command. Use §e/help§c, §e/plugins§c or ask a mod."); + sender.sendMessage("§cCommand no longer Exists. Use §e/help§c, §e/plugins§c or ask a mod."); return true; } } |