mirror of
https://github.com/TheWhiteDog9487/RandomTeleporter.git
synced 2026-05-20 14:49:44 +08:00
使用Kotlin重写
This commit is contained in:
46
README.md
46
README.md
@@ -36,69 +36,69 @@
|
||||
- `/rtp <随机区域起点实体> <随机区域终点实体> <被传送玩家ID>`
|
||||
|
||||
## 命令示例
|
||||
- `/rtp`
|
||||
将执行命令的玩家随机传送到以`(0,0)`为中心点, $2.9 \times 10^7 - 10^4$ 作为随机半径的范围内的随机一点
|
||||
- `/rtp`
|
||||
将执行命令的玩家随机传送到以`(0,0)`为中心点, $2.9 \times 10^7 - 10^4$ 作为随机半径的范围内的随机一点
|
||||
$2.9 \times 10^7 = 29,000,000$ = 两千九百万
|
||||
$10^4 = 10,000$ = 一万
|
||||
|
||||
- `/rtp back`
|
||||
将执行命令的玩家传送回最近一次使用随机传送前的位置
|
||||
- `/rtp back`
|
||||
将执行命令的玩家传送回最近一次使用随机传送前的位置
|
||||
**注意:这个功能保存的上一次随机传送前的位置信息只会在游戏(服务器)运行期间存在,游戏(服务器)关闭后就会丢失**
|
||||
|
||||
- `/rtp back TheWhiteDog9487`
|
||||
- `/rtp back TheWhiteDog9487`
|
||||
将TheWhiteDog9487传送回其最近一次使用随机传送前的位置
|
||||
|
||||
- `/rtp TheWhiteDog9487 back`
|
||||
- `/rtp TheWhiteDog9487 back`
|
||||
将TheWhiteDog9487传送回其最近一次使用随机传送前的位置
|
||||
|
||||
- `/rtp 1000`
|
||||
- `/rtp 1000`
|
||||
将执行命令的玩家随机传送到以`(0,0)`为中心点,1000作为随机半径的范围内的随机一点
|
||||
|
||||
- `/rtp TheWhiteDog9487`
|
||||
- `/rtp TheWhiteDog9487`
|
||||
将TheWhiteDog9487随机传送到以`(0,0)`为中心点, $2.9 \times 10^7 - 10^4$ 作为随机半径的范围内的随机一点
|
||||
|
||||
- `/rtp TheWhiteDog9487 1000`
|
||||
- `/rtp TheWhiteDog9487 1000`
|
||||
将TheWhiteDog9487随机传送到以`(0,0)`为中心点,1000作为随机半径的范围内的随机一点
|
||||
|
||||
- `/rtp 1000 TheWhiteDog9487`
|
||||
- `/rtp 1000 TheWhiteDog9487`
|
||||
将TheWhiteDog9487随机传送到以`(0,0)`为中心点,1000作为随机半径的范围内的随机一点
|
||||
|
||||
- `/rtp 1000 10000 10000`
|
||||
- `/rtp 1000 10000 10000`
|
||||
将执行命令的玩家随机传送到以`(10000,10000)`为中心点,1000作为随机半径的范围内的随机一点
|
||||
|
||||
- `/rtp 1000 TheWhiteDog9487 TheWhiteDog_CN`
|
||||
- `/rtp 1000 TheWhiteDog9487 TheWhiteDog_CN`
|
||||
将TheWhiteDog9487随机传送到以TheWhiteDog_CN所在位置为中心点,1000作为随机半径的范围内的随机一点
|
||||
|
||||
- `/rtp 1000 TheWhiteDog9487 10000 10000`
|
||||
- `/rtp 1000 TheWhiteDog9487 10000 10000`
|
||||
将TheWhiteDog9487随机传送到以`(10000,10000)`为中心点,1000作为随机半径的范围内的随机一点
|
||||
|
||||
- `/rtp TheWhiteDog9487 1000 TheWhiteDog_CN`
|
||||
- `/rtp TheWhiteDog9487 1000 TheWhiteDog_CN`
|
||||
将TheWhiteDog9487随机传送到以TheWhiteDog_CN所在位置为中心点,1000作为随机半径的范围内的随机一点
|
||||
|
||||
- `/rtp TheWhiteDog9487 1000 10000 10000`
|
||||
- `/rtp TheWhiteDog9487 1000 10000 10000`
|
||||
将TheWhiteDog9487随机传送到以`(10000,10000)`为中心点,1000作为随机半径的范围内的随机一点
|
||||
|
||||
- `/rtp 10000.0 10000.0 20000.0 20000.0`
|
||||
将执行命令的玩家随机传送到以`(10000,10000)`,`(20000,10000)`,`(20000,20000)`,`(10000,20000)`四个顶点围成的长方形区域内的随机一点
|
||||
- `/rtp 10000.0 10000.0 20000.0 20000.0`
|
||||
将执行命令的玩家随机传送到以`(10000,10000)`,`(20000,10000)`,`(20000,20000)`,`(10000,20000)`四个顶点围成的长方形区域内的随机一点
|
||||
您需要提供的坐标是这个长方形的任意一个顶点和这个顶点对应的斜对角顶点的位置
|
||||
|
||||
- `/rtp TheWhiteDog9487 10000.0 10000.0 20000.0 20000.0`
|
||||
- `/rtp TheWhiteDog9487 10000.0 10000.0 20000.0 20000.0`
|
||||
将TheWhiteDog9487随机传送到以`(10000,10000)`,`(20000,10000)`,`(20000,20000)`,`(10000,20000)`四个顶点围成的长方形区域内的随机一点
|
||||
|
||||
- `/rtp 10000.0 10000.0 20000.0 20000.0 TheWhiteDog9487`
|
||||
- `/rtp 10000.0 10000.0 20000.0 20000.0 TheWhiteDog9487`
|
||||
将TheWhiteDog9487随机传送到以`(10000,10000)`,`(20000,10000)`,`(20000,20000)`,`(10000,20000)`四个顶点围成的长方形区域内的随机一点
|
||||
|
||||
- `/rtp TheWhiteDog9487 TheWhiteDog_CN`
|
||||
- `/rtp TheWhiteDog9487 TheWhiteDog_CN`
|
||||
将命令执行者传送到以TheWhiteDog9487和TheWhiteDog_CN当前所在位置为对角线的长方形区域内的随机一点
|
||||
|
||||
- `/rtp TheWhiteDog9487 TheWhiteDog_CN TheWhiteDog4568`
|
||||
- `/rtp TheWhiteDog9487 TheWhiteDog_CN TheWhiteDog4568`
|
||||
将TheWhiteDog4568随机传送到以TheWhiteDog9487和TheWhiteDog_CN当前所在位置为对角线的长方形区域内的随机一点
|
||||
|
||||
### 特别提示
|
||||
`/rtp <随机半径> <作为随机中心的实体>` 这种格式不存在。
|
||||
因为第二个参数可能是被传送玩家名,也可能是做随机中心点的实体。
|
||||
因为第二个参数可能是被传送玩家名,也可能是做随机中心点的实体。
|
||||
这两种都是实体类型,无法区分到底是哪一种,存在歧义。
|
||||
同样,`/rtp <被传送玩家ID> <随机区域起点实体> <随机区域终点实体>` 这一组也是不存在的
|
||||
同样,`/rtp <被传送玩家ID> <随机区域起点实体> <随机区域终点实体>` 这一组也是不存在的
|
||||
三个参数都是实体类型,没办法区分`被传送玩家ID`是第一个还是第三个
|
||||
|
||||
# 依赖项
|
||||
|
||||
Reference in New Issue
Block a user