geforkt von Mirrors/FastAsyncWorldEdit
Handle when CommandException.getMessage() is null in CommandManager.
Related to WORLDEDIT-3156.
Dieser Commit ist enthalten in:
Ursprung
d74237b15e
Commit
393b0d3d7a
@ -243,7 +243,13 @@ public final class CommandManager {
|
||||
actor.printRaw(t.getClass().getName() + ": " + t.getMessage());
|
||||
t.printStackTrace();
|
||||
} catch (CommandException e) {
|
||||
String message = e.getMessage();
|
||||
if (message != null) {
|
||||
actor.printError(e.getMessage());
|
||||
} else
|
||||
actor.printError("An unknown error has occurred! Please see console.");
|
||||
logger.log(Level.SEVERE, "An unknown error occurred", e);
|
||||
}
|
||||
} finally {
|
||||
EditSession editSession = locals.get(EditSession.class);
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren