Added "Usage: " back when handling InvalidUsageException.

Dieser Commit ist enthalten in:
sk89q 2014-06-30 23:04:32 -07:00
Ursprung f0530f9d28
Commit 75b1fe6090

Datei anzeigen

@ -231,7 +231,7 @@ public final class CommandManager {
} else { } else {
String message = e.getMessage(); String message = e.getMessage();
actor.printError(message != null ? message : "The command was not used properly (no more help available)."); actor.printError(message != null ? message : "The command was not used properly (no more help available).");
actor.printError(e.getSimpleUsageString("/")); actor.printError("Usage: " + e.getSimpleUsageString("/"));
} }
} catch (WrappedCommandException e) { } catch (WrappedCommandException e) {
Throwable t = e.getCause(); Throwable t = e.getCause();