summaryrefslogtreecommitdiff
path: root/src/main/java/com/nemez/cmdmgr/EmptyCommand.java
diff options
context:
space:
mode:
authorMinenash <minenash@protonmail.com>2019-01-13 00:32:55 -0500
committerMinenash <minenash@protonmail.com>2019-01-13 00:32:55 -0500
commitff281241b5a8ee804c6e833f82edbc4137e11857 (patch)
tree34d4a68f1322ad30dce2efc70e88a8adea41a169 /src/main/java/com/nemez/cmdmgr/EmptyCommand.java
parent8f2200619e25d312712f84fcdbabd5fc8ee40602 (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.java4
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;
}
}