小更改,正常用应该是感受不到的。
当随机半径被设置为0的时候不会再抛出异常而导致命令运行失败了。
手动处理了这个部分,向玩家发送警告并根据随机中心点是否被设置而决定是否进行传送。
This commit is contained in:
2025-06-18 12:24:29 +08:00
parent 34ea09dfd9
commit 35ac4dd842
4 changed files with 29 additions and 10 deletions

View File

@@ -3,5 +3,7 @@
"modmenu.descriptionTranslation.randomteleporter": "Added two commands for random teleportation",
"info.success": "Teleported %s to %d %d %d",
"error.no_target": "There is no teleported target, and the teleported player ID is explicitly specified when executed by a non-player object",
"warning.radius_equal_zero": "Warning: Since you set a random radius of 0, selecting the right height will teleport you directly to %d %d",
"warning.radius_equal_zero_no_target": "Warning: Since you set a random radius of 0 and you don't set a random center point coordinates, nothing happens",
"bilibili": "Bilibili"
}

View File

@@ -3,5 +3,7 @@
"modmenu.descriptionTranslation.randomteleporter": "增加了两个用于随机传送的命令",
"info.success": "已将玩家%s传送到%d %d %d",
"error.no_target": "不存在被传送目标由非玩家物体执行命令时请显式指定被传送玩家ID",
"warning.radius_equal_zero": "警告由于你设置的随机半径为0因此在选择出合适高度之后将直接把你传送至%d %d",
"warning.radius_equal_zero_no_target": "警告由于你设置的随机半径为0并且未设置随机中心点坐标因此什么都不会发生",
"bilibili": "TheWhiteDog9487的哔哩哔哩主页"
}