Format code [skip actions]

This commit is contained in:
github-actions
2024-06-09 13:49:49 +00:00
Unverified
parent d4ce7aac08
commit 8c53f2b679
189 changed files with 1138 additions and 1185 deletions
@@ -230,7 +230,11 @@ public final class CommandMap {
if (SERVER.logCommands) {
if (player != null) {
Grasscutter.getLogger()
.info("Command used by [{} (Player UID: {})]: {}", player.getAccount().getUsername(), player.getUid(), rawMessage);
.info(
"Command used by [{} (Player UID: {})]: {}",
player.getAccount().getUsername(),
player.getUid(),
rawMessage);
} else {
Grasscutter.getLogger().info("Command used by server console: {}", rawMessage);
}
@@ -344,10 +348,13 @@ public final class CommandMap {
this.registerCommand(cmdData.label(), (CommandHandler) object);
else
Grasscutter.getLogger()
.error("Class {} is not a CommandHandler!", annotated.getName());
.error("Class {} is not a CommandHandler!", annotated.getName());
} catch (Exception exception) {
Grasscutter.getLogger()
.error("Failed to register command handler for {}", annotated.getSimpleName(), exception);
.error(
"Failed to register command handler for {}",
annotated.getSimpleName(),
exception);
}
});
}