Skip to content

Commit 93e2eb4

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

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • src/main/kotlin/com/mairwunnx/projectessentials/warps/commands

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ object WarpCommand : CommandBase(warpLiteral, false) {
2020
)
2121

2222
validateAndExecute(context, "ess.warp.teleport", 0) { isServer ->
23-
if (isServer) {
24-
ServerMessagingAPI.throwOnlyPlayerCan()
25-
} else {
23+
if (isServer) ServerMessagingAPI.throwOnlyPlayerCan() else {
2624
val warp = CommandAPI.getString(context, "warp")
2725
warpsConfiguration.warps.asSequence().find {
2826
it.name == warp

0 commit comments

Comments
 (0)