File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
src/main/kotlin/dev/slne/surf/moderation/tools/commands Expand file tree Collapse file tree 4 files changed +7
-7
lines changed 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.3.0 -SNAPSHOT
4+ version =1.21.10-1.3.1 -SNAPSHOT
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ package dev.slne.surf.moderation.tools.commands
22
33import com.github.shynixn.mccoroutine.folia.entityDispatcher
44import com.github.shynixn.mccoroutine.folia.launch
5+ import dev.jorel.commandapi.arguments.PlayerProfileArgument
56import dev.jorel.commandapi.kotlindsl.anyExecutor
67import dev.jorel.commandapi.kotlindsl.commandAPICommand
78import dev.jorel.commandapi.kotlindsl.getValue
8- import dev.jorel.commandapi.kotlindsl.playerArgument
99import dev.slne.surf.moderation.tools.plugin
1010import dev.slne.surf.moderation.tools.service.freezeService
1111import dev.slne.surf.moderation.tools.utils.PermissionRegistry
@@ -16,7 +16,7 @@ import org.bukkit.entity.Player
1616
1717fun freezeCommand () = commandAPICommand(" freeze" ) {
1818 withPermission(PermissionRegistry .COMMAND_FREEZE )
19- playerArgument (" targetPlayer" )
19+ PlayerProfileArgument (" targetPlayer" )
2020 durationArgument(" duration" )
2121
2222 anyExecutor { sender, args ->
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ package dev.slne.surf.moderation.tools.commands
22
33import com.github.shynixn.mccoroutine.folia.entityDispatcher
44import com.github.shynixn.mccoroutine.folia.launch
5+ import dev.jorel.commandapi.arguments.PlayerProfileArgument
56import dev.jorel.commandapi.kotlindsl.anyExecutor
67import dev.jorel.commandapi.kotlindsl.commandAPICommand
78import dev.jorel.commandapi.kotlindsl.getValue
8- import dev.jorel.commandapi.kotlindsl.playerArgument
99import dev.slne.surf.moderation.tools.plugin
1010import dev.slne.surf.moderation.tools.utils.PermissionRegistry
1111import dev.slne.surf.surfapi.core.api.messages.adventure.sendText
1212import org.bukkit.entity.Player
1313
1414fun rotateCommand () = commandAPICommand(" rotate" ) {
15- playerArgument (" targetPlayer" )
15+ PlayerProfileArgument (" targetPlayer" )
1616 withPermission(PermissionRegistry .COMMAND_ROTATE )
1717
1818 anyExecutor { sender, args ->
Original file line number Diff line number Diff line change 11package dev.slne.surf.moderation.tools.commands
22
3+ import dev.jorel.commandapi.arguments.PlayerProfileArgument
34import dev.jorel.commandapi.kotlindsl.anyExecutor
45import dev.jorel.commandapi.kotlindsl.commandAPICommand
56import dev.jorel.commandapi.kotlindsl.getValue
6- import dev.jorel.commandapi.kotlindsl.playerArgument
77import dev.slne.surf.moderation.tools.service.freezeService
88import dev.slne.surf.moderation.tools.utils.PermissionRegistry
99import dev.slne.surf.surfapi.core.api.messages.adventure.sendText
1010import org.bukkit.entity.Player
1111
1212fun unfreezeCommand () = commandAPICommand(" unfreeze" ) {
13- playerArgument (" targetPlayer" )
13+ PlayerProfileArgument (" targetPlayer" )
1414 withPermission(PermissionRegistry .COMMAND_UNFREEZE )
1515
1616 anyExecutor { sender, args ->
You can’t perform that action at this time.
0 commit comments