Failure

sealed class Failure : CommandResult

実行が失敗したことを示す結果

Inheritors

Types

Link copied to clipboard
data class Custom(val message: String) : CommandResult.Failure
Link copied to clipboard
data class ExecutionFailed(val reason: String, val cause: Throwable? = null) : CommandResult.Failure

実行に失敗した場合に使用される結果

Link copied to clipboard

引数が不正である場合に使用される結果

Link copied to clipboard
data class NoPermission(val permission: String) : CommandResult.Failure

権限が不足している場合に使用される結果

Link copied to clipboard
data class PlayerOnly(val reason: String = "This command can only be executed by the player.") : CommandResult.Failure

プレイヤーのみ実行可能な場合に使用される結果

Link copied to clipboard
data class TargetNotFound(val target: Player) : CommandResult.Failure

実行対象が存在しない場合に使用される結果