Skip to content

Commit f69ddba

Browse files
fix: update argument name in SurvivalTutorialCommand for consistency
1 parent 78e4f7d commit f69ddba

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

surf-tutorial-server-survival/src/main/kotlin/dev/slne/surf/tutorial/server/survival/command/SurvivalTutorialCommand.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fun survivalTutorialCommand() = commandTree("survivalTutorial") {
1818
argument(AsyncPlayerProfileArgument("profile")) {
1919
integerArgument("step") {
2020
anyExecutorSuspend { sender, args ->
21-
val profile = args.awaitAsyncPlayerProfile("player")
21+
val profile = args.awaitAsyncPlayerProfile("profile")
2222
val step: Int by args
2323
val player = Bukkit.getPlayer(profile.idOrThrow())
2424

@@ -48,7 +48,7 @@ fun survivalTutorialCommand() = commandTree("survivalTutorial") {
4848
literalArgument("getState") {
4949
argument(AsyncPlayerProfileArgument("profile")) {
5050
anyExecutorSuspend { sender, args ->
51-
val profile = args.awaitAsyncPlayerProfile("player")
51+
val profile = args.awaitAsyncPlayerProfile("profile")
5252
val player = Bukkit.getPlayer(profile.idOrThrow())
5353

5454
if (player == null) {
@@ -76,7 +76,7 @@ fun survivalTutorialCommand() = commandTree("survivalTutorial") {
7676
literalArgument("reset") {
7777
argument(AsyncPlayerProfileArgument("profile")) {
7878
anyExecutorSuspend { sender, args ->
79-
val profile = args.awaitAsyncPlayerProfile("player")
79+
val profile = args.awaitAsyncPlayerProfile("profile")
8080
val player = Bukkit.getPlayer(profile.idOrThrow())
8181

8282
if (player == null) {

0 commit comments

Comments
 (0)