We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3939a5 commit c0363c8Copy full SHA for c0363c8
src/main/kotlin/com/mairwunnx/projectessentials/spawn/commands/SetSpawnCommand.kt
@@ -16,9 +16,7 @@ object SetSpawnCommand : CommandBase(setSpawnLiteral) {
16
override val name = "set-spawn"
17
override fun process(context: CommandContext<CommandSource>) = 0.also {
18
validateAndExecute(context, "ess.spawn.set", 4) { isServer ->
19
- if (isServer) {
20
- ServerMessagingAPI.throwOnlyPlayerCan()
21
- } else {
+ if (isServer) ServerMessagingAPI.throwOnlyPlayerCan() else {
22
with(spawnConfiguration.take()) {
23
xPos = context.getPlayer()!!.position.x
24
yPos = context.getPlayer()!!.position.y
0 commit comments