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 963075c commit f3939a5Copy full SHA for f3939a5
src/main/kotlin/com/mairwunnx/projectessentials/spawn/commands/SpawnCommand.kt
@@ -15,9 +15,7 @@ object SpawnCommand : CommandBase(spawnLiteral) {
15
override val name = "spawn"
16
override fun process(context: CommandContext<CommandSource>) = 0.also {
17
validateAndExecute(context, "ess.spawn.teleport", 0) { isServer ->
18
- if (isServer) {
19
- ServerMessagingAPI.throwOnlyPlayerCan()
20
- } else {
+ if (isServer) ServerMessagingAPI.throwOnlyPlayerCan() else {
21
MessagingAPI.sendMessage(
22
context.getPlayer()!!, "${MESSAGE_MODULE_PREFIX}spawn.spawn.success"
23
).also { BackLocationAPI.commit(context.getPlayer()!!) }
0 commit comments