Actually display an error message when an invalid subcommand to /saneeconomy is issues.

This commit is contained in:
AppleDash 2016-06-14 08:35:44 -04:00
parent 841d6e937d
commit 03b7daf2ad

View File

@ -36,6 +36,8 @@ public class SaneEcoCommand extends SaneEconomyCommand {
MessageUtils.sendMessage(sender, "Reloading database..."); MessageUtils.sendMessage(sender, "Reloading database...");
SaneEconomy.getInstance().getEconomyManager().getBackend().reloadDatabase(); SaneEconomy.getInstance().getEconomyManager().getBackend().reloadDatabase();
MessageUtils.sendMessage(sender, "Database reloaded."); MessageUtils.sendMessage(sender, "Database reloaded.");
} else {
throw new InvalidUsageException();
} }
} }
} }