Skip to content

Commit

Permalink
Fix command output
Browse files Browse the repository at this point in the history
  • Loading branch information
senseiwells committed Feb 20, 2024
1 parent 370e95d commit 5babf16
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/main/kotlin/me/senseiwells/replay/commands/ReplayCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -304,19 +304,17 @@ object ReplayCommand {

context.source.server.execute {
context.source.sendSuccess(
{ Component.literal(builder.removeSuffix("\n").toString()) },
Component.literal(builder.removeSuffix("\n").toString()),
true
)
}
}

context.source.sendSuccess({
var message = "Generating replay status..."
if (ServerReplay.config.includeCompressedReplaySizeInStatus) {
message += "\nCalculating compressed sizes of replays (this may take a while)"
}
Component.literal(message)
}, true)
var message = "Generating replay status..."
if (ServerReplay.config.includeCompressedReplaySizeInStatus) {
message += "\nCalculating compressed sizes of replays (this may take a while)"
}
context.source.sendSuccess(Component.literal(message), true)
return 1
}

Expand Down

0 comments on commit 5babf16

Please sign in to comment.