From def2fed529ad9927d3e80ccfea2205ce80186597 Mon Sep 17 00:00:00 2001 From: Ruslan Mykhailenko Date: Sat, 30 Mar 2024 16:46:55 +0200 Subject: [PATCH] refactor: replace `get` with indexing operator --- .../kotlin/dev/rvbsm/fsit/client/command/RestrictCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/kotlin/dev/rvbsm/fsit/client/command/RestrictCommand.kt b/src/client/kotlin/dev/rvbsm/fsit/client/command/RestrictCommand.kt index 3f00df50..2f27ed98 100644 --- a/src/client/kotlin/dev/rvbsm/fsit/client/command/RestrictCommand.kt +++ b/src/client/kotlin/dev/rvbsm/fsit/client/command/RestrictCommand.kt @@ -25,7 +25,7 @@ enum class RestrictCommand( override val arguments: List> = listOf(ProfileNameArgument) override fun executes(ctx: CommandContext): Int { - val profileName = ProfileNameArgument.get(ctx) + val profileName = ProfileNameArgument[ctx] val id = ctx.source.client.networkHandler?.getPlayerListEntry(profileName)?.profile?.id ?: throw GameProfileArgumentType.UNKNOWN_PLAYER_EXCEPTION.create()