fix: 外部から使うとエラーの原因になる関数を修正
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
package net.hareworks.kommand_lib.context
|
||||
|
||||
import net.hareworks.kommand_lib.arguments.Coordinates3
|
||||
import org.bukkit.Location
|
||||
import org.bukkit.command.CommandSender
|
||||
import org.bukkit.entity.Entity
|
||||
import org.bukkit.entity.Player
|
||||
import org.bukkit.plugin.java.JavaPlugin
|
||||
import net.hareworks.kommand_lib.execution.ParseMode
|
||||
|
||||
@@ -35,21 +31,3 @@ open class KommandContext internal constructor(
|
||||
|
||||
fun arguments(): Map<String, Any?> = parsedArguments.toMap()
|
||||
}
|
||||
|
||||
fun KommandContext.string(name: String): String = argument(name)
|
||||
|
||||
fun KommandContext.int(name: String): Int = argument(name)
|
||||
|
||||
fun KommandContext.double(name: String): Double = argument(name)
|
||||
|
||||
fun KommandContext.float(name: String): Double = argument(name)
|
||||
|
||||
fun KommandContext.player(name: String): Player = argument(name)
|
||||
|
||||
fun KommandContext.players(name: String): List<Player> = argument(name)
|
||||
|
||||
fun KommandContext.selector(name: String): List<Entity> = argument(name)
|
||||
|
||||
fun KommandContext.coordinates(name: String): Coordinates3 = argument(name)
|
||||
|
||||
fun KommandContext.location(name: String, origin: Location): Location = coordinates(name).resolve(origin)
|
||||
|
||||
Reference in New Issue
Block a user