File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
surf-npc-bukkit/src/main/kotlin/dev/slne/surf/npc/bukkit/command/sub Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ buildscript {
66 maven(" https://repo.slne.dev/repository/maven-public/" ) { name = " maven-public" }
77 }
88 dependencies {
9- classpath(" dev.slne.surf:surf-api-gradle-plugin:1.21.10 +" )
9+ classpath(" dev.slne.surf:surf-api-gradle-plugin:1.21.11 +" )
1010 }
1111}
1212
Original file line number Diff line number Diff line change 11kotlin.code.style =official
22kotlin.stdlib.default.dependency =false
33org.gradle.parallel =true
4- version =1.21.10 -1.5.0 -SNAPSHOT
4+ version =1.21.11 -1.5.3 -SNAPSHOT
Original file line number Diff line number Diff line change 11package dev.slne.surf.npc.bukkit.command.sub
22
33import dev.jorel.commandapi.CommandAPICommand
4+ import dev.jorel.commandapi.kotlindsl.entitySelectorArgumentOnePlayer
45import dev.jorel.commandapi.kotlindsl.getValue
5- import dev.jorel.commandapi.kotlindsl.playerArgument
66import dev.jorel.commandapi.kotlindsl.playerExecutor
77import dev.jorel.commandapi.kotlindsl.subcommand
88
@@ -15,7 +15,7 @@ import org.bukkit.entity.Player
1515fun CommandAPICommand.npcTeleportHereCommand () = subcommand(" teleporthere" ) {
1616 withPermission(PermissionRegistry .COMMAND_NPC_TELEPORT_HERE )
1717 npcArgument(" npc" )
18- playerArgument (" target" , true )
18+ entitySelectorArgumentOnePlayer (" target" , true )
1919 playerExecutor { player, args ->
2020 val npc: Npc by args
2121 val target: Player ? by args
Original file line number Diff line number Diff line change 11package dev.slne.surf.npc.bukkit.command.sub
22
33import dev.jorel.commandapi.CommandAPICommand
4+ import dev.jorel.commandapi.kotlindsl.entitySelectorArgumentOnePlayer
45import dev.jorel.commandapi.kotlindsl.getValue
5- import dev.jorel.commandapi.kotlindsl.playerArgument
66import dev.jorel.commandapi.kotlindsl.playerExecutor
77import dev.jorel.commandapi.kotlindsl.subcommand
88
@@ -18,7 +18,7 @@ import org.bukkit.entity.Player
1818fun CommandAPICommand.npcTeleportToCommand () = subcommand(" teleportto" ) {
1919 withPermission(PermissionRegistry .COMMAND_NPC_TELEPORT_TO )
2020 npcArgument(" npc" )
21- playerArgument (" target" , true )
21+ entitySelectorArgumentOnePlayer (" target" , true )
2222 playerExecutor { player, args ->
2323 val npc: Npc by args
2424 val target: Player ? by args
You can’t perform that action at this time.
0 commit comments