逻辑判断
布尔值 (boolean)
Section titled “布尔值 (boolean)”它只有两个取值,即 真 (true) 和 假 (false)
或者说,是 (true) 和 否 (false)
权限判断 (Permission)
Section titled “权限判断 (Permission)”判断玩家是否拥有某权限,如果是,则返回 true ,否,则返回 false

我是 OP,所以我拥有此权限,返回了 true
同 PlaceholderAPI 一样,Permission 也有一个简写 perm
判断为否 (Not)
Section titled “判断为否 (Not)”上面是判断拥有此权限,那么我如何判断不拥有此权限呢?


咳咳,开玩笑的,驿站怎么可能用过这么傻逼的写法呢

https://kether.tabooproject.org/list.html#Not 判断动作的返回值是否为否,即否定动作的结果。

因为我拥有此权限,所以 perm 判断是 true
接着因为 not,最后的结果是 false
perm -> not
判断 (Check)
Section titled “判断 (Check)”check 动作1 {symbol} 动作2判断 动作 1 与 动作 2 的关系
具体判断关系由中间的符号参数 Symbol 决定
- 等于 (==、is):指两个值字面意思上相同。
- 不等于 (!=、not):指两个值字面意思上不同。
- 相似等于 (=?、is?):指两个值字面意思上忽略大小写的条件下相同。
- 绝对等于 (=!、is!):指两个值内存路径上相同。
- 大于 (>、gt):指第一个值大于第二个值。
- 大于等于 (>=):指第一个值大于或等于第二个值。
- 小于 (<、lt):指第一个值小于第二个值。
- 小于等于 (<=):指第一个值小于或等于第二个值。
- 右含左 (in):左侧 action A 的返回值是否属于右侧 action B 返回值的内容之一
- 左含右 (has):左侧 action A 是否含有右侧 action B 内容

分支判断 (if esle)
Section titled “分支判断 (if esle)”/vul eval if 条件 then 执行的动作条件判断为 true 则执行 then 后面的动作
注:这里的条件也是指动作,即 动作的返回值为 true 则执行 then 后面的动作

上面只是执行单个动作,那么,如何让他判断 true 后执行多行动作?
if 条件 then { 语句 1 语句 2 语句 3}/vul eval if 条件 then true 执行的动作 else false 执行的动作- 条件为 true 执行 then 后面的动作
- 条件为 false 执行 else 后面的动作
执行多行动作
if 条件 then { 语句 1 语句 2} else { 语句 3 语句 4}if 动作的连续使用
/vul evel if 条件 1 then 动作 1 else if 条件 2 then 动作 2 else if 条件 3 then 动作 3多行语句
if 条件 1 then { 动作 1 动作 2} else if 条件 2 then { 动作 3 动作 4} else if 条件 3 then { 动作 5 动作 6}多分支 (Case & When)
Section titled “多分支 (Case & When)”if check player name == postyizhan then tell "是驿站!"else if check player name == lilingfeng then tell "是驿站的黑奴"else if check player name == MC_jiaolong then tell "这也是黑奴"else tell"这谁啊"上面的改成 Case & When 就是
case player name [ when postyizhan -> tell "是驿站!" when lilingfeng -> tell "是驿站的黑奴" when MC_jiaolong -> tell "这也是黑奴" else tell "这谁啊"]当然他也可以写多行动作
case player name [ when postyizhan -> { tell "是驿站!" tell "驿站请和我结婚" } when lilingfeng -> tell "是驿站的黑奴" when MC_jiaolong -> tell "这也是黑奴" else tell "这谁啊"]他还可以进行逻辑判断!
单动作和多动作放一起展示了
case 1 [ when < 10 -> { tell "这个数比10小" } when > 10 -> log "这个数比10大" else log "一样大"]全部满足 (All)
Section titled “全部满足 (All)”https://kether.tabooproject.org/list.html#All 判断动作列表的所有返回值是否均为是。
all [ 动作1 动作2 动作3 更多 ]例如:
/vul eval if all [ perm vulpecula.command not perm luckperms.editor ] then tell 通过 else 不通过玩家拥有权限 vulpecula.command 没有权限 luckperms.editor 则通过,否则不通过

一个满足 (Any)
Section titled “一个满足 (Any)”https://kether.tabooproject.org/list.html#Any 判断动作列表的所有返回值是否含有是。
any [ 动作1 动作2 动作3 更多 ]例如:
/vul eval if any [ perm vulpecula.command not perm luckperms.editor ] then tell 通过 else 不通过玩家拥有权限 vulpecula.command 和 没有权限 luckperms.editor 满足其中一个或多个就通过

all_any 多行
Section titled “all_any 多行”all [ 条件1 条件2 ]any [ 条件1 条件2]### 等价于all [ 条件1 条件2]any [ 条件1 条件2]判断 null 字符串
Section titled “判断 null 字符串”如果一个动作,变量,或者其他什么东西会有输出 null 的情况,而你想判断这个情况
但是 null 是一个已有的动作:https://kether.tabooproject.org/list.html#Null
返回一个空值。
可是我想判断的是 null 这四个字母!这咋办?
还记得之前学的 literal 吗?
check 你要判断的东西 == literal null告诉 kether 我要的 null 是个字符串而不是使用 null 动作
https://kether.tabooproject.org/list.html#Pass
返回一个空字符串。
check 你要判断的东西 == pass