Skip to content

Commit 4e48987

Browse files
committed
SetWarpCommand.kt formatted.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 93e2eb4 commit 4e48987

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/kotlin/com/mairwunnx/projectessentials/warps/commands/SetWarpCommand.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ object SetWarpCommand : CommandBase(setWarpLiteral, false) {
2424
)
2525

2626
validateAndExecute(context, "ess.warp.set", 0) { isServer ->
27-
if (isServer) {
28-
ServerMessagingAPI.throwOnlyPlayerCan()
29-
} else {
27+
if (isServer) ServerMessagingAPI.throwOnlyPlayerCan() else {
3028
val name = CommandAPI.getString(context, "warp")
3129
warpsConfiguration.warps.asSequence().find {
3230
it.name == name

0 commit comments

Comments
 (0)