Skip to content

Commit c0363c8

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ object SetSpawnCommand : CommandBase(setSpawnLiteral) {
1616
override val name = "set-spawn"
1717
override fun process(context: CommandContext<CommandSource>) = 0.also {
1818
validateAndExecute(context, "ess.spawn.set", 4) { isServer ->
19-
if (isServer) {
20-
ServerMessagingAPI.throwOnlyPlayerCan()
21-
} else {
19+
if (isServer) ServerMessagingAPI.throwOnlyPlayerCan() else {
2220
with(spawnConfiguration.take()) {
2321
xPos = context.getPlayer()!!.position.x
2422
yPos = context.getPlayer()!!.position.y

0 commit comments

Comments
 (0)