RandomTP (随机传送-一键传送到随机位置)
这是一个能够通过一个指令实现将玩家传送到随机位置的插件。由SergiFerry开发。可以通过修改config.yml文件来调整指令。你只需要设置"command-all-worlds"选项为true,即可使得RandomTP指令在不同的世界中生效。
权限:
- randomtp.use.command/rtpreload: 用于执行RandomTP指令或者重新加载RandomTP配置。
- randomtp.reload: 重新加载RandomTP配置。
- randomtp.create.npc: 创建可点击的NPC,可设定为个人或者群组。
- randomtp.*: 仅限管理员使用。
- randomtp.use: 允许玩家使用RandomTP。
- randomtp.cooldown.bypass: 使用RandomTP时不受冷却时间限制。VIP特权功能。
使用方法:
1. 用指令/rtpnpc create (world) [personal/group]来创建可点击的NPC。
2. 根据配置中的设置,可以在指定位置放置可点击的方块(sign)来实现传送功能。
依赖:
- PlayerNPC API
- Vault (Economy)
- Chunky
配置:
你需要在config.yml文件中启用所需的依赖。
代码示例(YAML):
Random Teleport by SergiFerry
worlds: world: max-x: 10000 max-z: 10000 ... cooldown-sec: 30 ...
代码示例(Java):
RandomTPAPI.getRandomLocation(world);//返回指定世界的随机位置 RandomTPAPI.teleport(Player player, World world, Biome biome);//将玩家传送到指定世界的随机位置,并且该位置位于指定生物群系 ...
.containeri,.first,.second{position:absolute;}.containeri{margin:auto;top:91px;bottom:0;right:0;left:677px;width:170px;height:50px;transition:all 0.3s ease;transform:scale(0.8);}.wrapi{width:100%;height:50px;border:2px solid #FFF;transition:all 0.3s ease;border-radius:5px;}.first,.second{width:100%;height:50px;font-family:"Open Sans",sans-serif;transition:all 0.2s ease-in-out;font-size:17px;text-transform:uppercase;color:#FFF;letter-spacing:2px;text-align:center;vertical-align:middle;line-height:50px;}.second{opacity:0;}.first,.second{cursor:default;}.containeri:hover{width:250px;}.containeri:hover .wrapi{padding-bottom:17px;}.containeri:hover .first{transform:translateY(-8px);padding-top:5px;}.containeri:hover .second{transform:translateY(20px);opacity:1;}
收录



