13
0
geforkt von Mirrors/Velocity

Prevent commands run from console crashing the entire instance

Dieser Commit ist enthalten in:
Alex Thomson 2018-10-13 14:40:00 +13:00
Ursprung 668725759a
Commit 64682027a5

Datei anzeigen

@ -68,9 +68,13 @@ public final class VelocityConsole extends SimpleTerminalConsole implements Comm
@Override
protected void runCommand(String command) {
try {
if (!this.server.getCommandManager().execute(this, command)) {
sendMessage(TextComponent.of("Command not found.", TextColor.RED));
}
} catch (Exception e) {
logger.error("An error occurred while running this command.", e);
}
}
@Override