mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-11-22 18:16:11 +01:00
Actually display an error message when an invalid subcommand to /saneeconomy is issues.
This commit is contained in:
parent
841d6e937d
commit
03b7daf2ad
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user