You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: surf-tutorial-server-survival/src/main/kotlin/dev/slne/surf/tutorial/server/survival/command/SurvivalTutorialCommand.kt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ fun survivalTutorialCommand() = commandTree("survivalTutorial") {
18
18
argument(AsyncPlayerProfileArgument("profile")) {
19
19
integerArgument("step") {
20
20
anyExecutorSuspend { sender, args ->
21
-
val profile = args.awaitAsyncPlayerProfile("player")
21
+
val profile = args.awaitAsyncPlayerProfile("profile")
22
22
val step:Int by args
23
23
val player =Bukkit.getPlayer(profile.idOrThrow())
24
24
@@ -48,7 +48,7 @@ fun survivalTutorialCommand() = commandTree("survivalTutorial") {
48
48
literalArgument("getState") {
49
49
argument(AsyncPlayerProfileArgument("profile")) {
50
50
anyExecutorSuspend { sender, args ->
51
-
val profile = args.awaitAsyncPlayerProfile("player")
51
+
val profile = args.awaitAsyncPlayerProfile("profile")
52
52
val player =Bukkit.getPlayer(profile.idOrThrow())
53
53
54
54
if (player ==null) {
@@ -76,7 +76,7 @@ fun survivalTutorialCommand() = commandTree("survivalTutorial") {
76
76
literalArgument("reset") {
77
77
argument(AsyncPlayerProfileArgument("profile")) {
78
78
anyExecutorSuspend { sender, args ->
79
-
val profile = args.awaitAsyncPlayerProfile("player")
79
+
val profile = args.awaitAsyncPlayerProfile("profile")
0 commit comments