Skip to content

Commit f3939a5

Browse files
committed
SpawnCommand.kt formatted.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 963075c commit f3939a5

File tree

1 file changed

+1
-3
lines changed
  • src/main/kotlin/com/mairwunnx/projectessentials/spawn/commands

1 file changed

+1
-3
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/spawn/commands/SpawnCommand.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ object SpawnCommand : CommandBase(spawnLiteral) {
1515
override val name = "spawn"
1616
override fun process(context: CommandContext<CommandSource>) = 0.also {
1717
validateAndExecute(context, "ess.spawn.teleport", 0) { isServer ->
18-
if (isServer) {
19-
ServerMessagingAPI.throwOnlyPlayerCan()
20-
} else {
18+
if (isServer) ServerMessagingAPI.throwOnlyPlayerCan() else {
2119
MessagingAPI.sendMessage(
2220
context.getPlayer()!!, "${MESSAGE_MODULE_PREFIX}spawn.spawn.success"
2321
).also { BackLocationAPI.commit(context.getPlayer()!!) }

0 commit comments

Comments
 (0)