Skip to content

Commit

Permalink
refactor logging messages for search command handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyzev committed Jan 3, 2025
1 parent ff872ea commit bc31022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/dev/lyzev/hp/server/HorsePowerServer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ object HorsePowerServer : DedicatedServerModInitializer {
ServerConfigurationConnectionEvents.CONFIGURE.register { handler, sender ->
if (ServerConfigurationNetworking.canSend(handler, SearchAllowedPayload.ID)) {
ServerConfigurationNetworking.send(handler, payload)
logger.info("Disabled search command for player ${sender.name}")
logger.info("Disabled search command for player.")
} else {
logger.error("Failed to send SearchAllowedPayload to player ${sender.name}")
logger.error("Failed to send SearchAllowedPayload to player.")
}
}
logger.info("Registered ServerConfigurationConnectionEvents")
Expand Down

0 comments on commit bc31022

Please sign in to comment.