Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-09-29 06:30:16 +02:00
Log console command executions
Dieser Commit ist enthalten in:
Ursprung
8dcc7ee37e
Commit
beba40b748
@ -136,6 +136,10 @@ public final class VelocityConsole extends SimpleTerminalConsole implements Cons
|
|||||||
if (!this.server.getCommandManager().executeAsync(this, command).join()) {
|
if (!this.server.getCommandManager().executeAsync(this, command).join()) {
|
||||||
sendMessage(Component.translatable("velocity.command.command-does-not-exist",
|
sendMessage(Component.translatable("velocity.command.command-does-not-exist",
|
||||||
NamedTextColor.RED));
|
NamedTextColor.RED));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (server.getConfiguration().isLogCommandExecutions()) {
|
||||||
|
logger.info("CONSOLE -> executed command /{}", command);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("An error occurred while running this command.", e);
|
logger.error("An error occurred while running this command.", e);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren