提供一个命令 (/randomteleport),可将玩家随机传送至给定坐标点周围指定半径内的安全位置!
真正的随机!
你可以定义不同的预设,你的玩家可以通过 /rtp <预设名> 或你在 commands.yml 中定义的任意别名来使用它们。(例如:/wilderness 用于荒野传送功能)。它还包含针对不同预设的冷却时间、将目标地点限制在特定生物群系的参数,以及创建随机传送告示牌的功能!
支持 WorldGuard、Factions、FactionsUUID、RedProtect 和 GriefPrevention 的区域保护,并尝试将玩家传送到受保护最少的位置!同时也会检查 WorldBorder(世界边界)。
捐赠
编程工作耗时费力,非常感谢您的支持!
如果您觉得物有所值,或者商业使用了此插件,欢迎 请我喝杯啤酒! :)
视频评测与说明
权限
randomteleport.use - 使用该命令的权限(预设不需要此权限!)
randomteleport.presets.default - 默认 /rtp 预设的权限
randomteleport.presets.<presetname> - /rtp <presetname> 命令的权限
randomteleport.sign.preset.<presetname> - 在 [RandomTP] 告示牌上使用特定预设的权限
randomteleport.sign.create - 允许创建预设告示牌(第2行为 [rtp] 或 [RandomTP],第3行为预设名称)
randomteleport.sign.destroy - 允许销毁预设告示牌(第2行为 [rtp] 或 [RandomTP],第3行为预设名称)
randomteleport.manual - 允许手动指定命令中的参数
randomteleport.manual.option.* -
允许在命令中使用某些选项
randomteleport.tpothers - 允许用户传送其他玩家
randomteleport.cooldownexempt& - 拥有该权限的玩家不受传送冷却时间限制
randomteleport.stat - /rtp stat 命令的权限
randomteleport.reload - /rtp reload 命令的权限
命令
/randomteleport <minRange> <maxRange> [options]
- minRange - 将玩家从中心点传送出去的最小距离(默认为玩家当前位置,范围为方形区域)
- maxRange - 最大传送距离
- 更多选项
/randomteleport --stat - 一些调试统计信息
/randomteleport --reload - 重载配置文件
/randomteleport(不带额外参数) - 执行配置文件中设置的默认预设
/randomteleport <预设名称> - 执行配置中设置的预设
示例:
/rtp 100 500 -p Phoenix616 -x 0 -z 0 -w equestria -c 60 -f
将名为 Phoenix616 的玩家传送至世界 equestria 中 x/z 0/0 周围半径为 100 到 500 格的一个随机位置。此操作不会检查已保存的区域,且仅会忽略空气/熔岩/水和仙人掌。使用这些选项的传送冷却时间为 60 秒。
别名:
/randomtp
/rtp
预设(Presets)
版本 1.5.0 引入了预设功能,你可以仅通过 /rtp 或 /rtp <预设名称> 来触发它们。玩家需拥有权限 randomteleport.presets.default 才能执行默认的 /rtp,或拥有权限 randomteleport.presets.<预设名称> 才能使用其他预设 /rtp <预设名称>。使用预设时,玩家不需要 randomteleport.use 权限!
你在配置文件中定义预设的方式,就像玩家自己输入命令一样,只是不包含 -p <玩家名称> 选项。执行该命令本身所需的权限玩家是不需要的,只需要对应特定预设的权限即可!
配置文件中包含以下示例:
presets:
default: "/rtp 100 1000 -f"
test: "rtp 10 200 -f"
预设告示牌(Presetsigns):
版本 1.6.0 引入了预设告示牌,其工作原理与普通预设类似,但可以通过告示牌触发。只需在告示牌上写入以下行:
在第 3 行中,除了 “Default” 之外,你还可以添加配置中设置的任意预设名称。创建和销毁这些告示牌需要权限 randomteleport.sign.create。玩家需要拥有权限 randomteleport.sign.preset.<预设名称> 才能使用(右键点击)该告示牌!
配置文件
# 当客户端语言不可用时使用的默认语言
lang: en
# 一些调试信息
debug: true
# 在搜索模式下,检查区块之间的延迟(以刻为单位)
# 普通模式下可传送到的方块
save-blocks:
- sand
- sandstone
- gravel
- dirt
- grass_block
- coarse_dirt
- podzol
- stone
- granite
- diorite
- andesite
- cobblestone
- end_stone
- netherrack
# 在 "--force blocks" 模式下不可保存的方块
unsave-blocks:
- air
- water
- lava
- oak_sapling
- spruce_sapling
- birch_sapling
- jungle_sapling
- acacia_sapling
- dark_oak_sapling
- white_bed
- orange_bed
- magenta_bed
- light_blue_bed
- yellow_bed
- lime_bed
- pink_bed
- gray_bed
- light_gray_bed
- cyan_bed
- purple_bed
- blue_bed
- brown_bed
- green_bed
- red_bed
- black_bed
- powered_rail
- detector_rail
- cobweb
- piston_head
- tnt
- torch
- fire
- sign
- ladder
- rail
- wall_sign
- lever
- stone_pressure_plate
- iron_door
- redstone_wall_torch
- redstone_torch
- stone_button
- cactus
- magma_block
- nether_portal
- vine
- end_portal
- end_portal_frame
- tripwire_hook
- tripwire
- flower_pot
- oak_leaves
- spruce_leaves
- birch_leaves
- jungle_leaves
- acacia_leaves
- dark_oak_leaves
- barrier
- iron_trapdoor
- oak_trapdoor
- spruce_trapdoor
- birch_trapdoor
- jungle_trapdoor
- acacia_trapdoor
- dark_oak_trapdoor
- oak_door
- spruce_door
- birch_door
- jungle_door
- acacia_door
- dark_oak_door
- end_rod
- end_gateway
sign-variables:
- "[RTP]"
- "[RandomTP]"
# 像在游戏中 /rtp 后面那样直接编写你的命令参数
# 不要使用 -p 参数,这会自动添加发送者的名字/指定的玩家名字
presets:
# 当你使用不带任何额外参数的 /rtp 时触发
default: "100 1000"
# 添加更多以使用 /rtp <rtp名称>,玩家需要 "randomteleport.presets.<rtp名称>"
# <rtp名称>: "/rtp 1 2"
test: "10 200 -f"
默认英文语言设置位于 lang.en.yml。如果您希望添加更多语言支持,只需在您的 languages 文件夹中创建一个新的 lang.<locale>.yml 文件即可!
Support
Source
源代码可在 Github 上找到,遵循 GPLv3 许可证!
Development Builds
ToDo
以下功能将在完整的 2.0 重写版中实现:
- Y 坐标指定 已实现
- 支持下界和末地 已实现
- 按世界设置的默认预设
- 更多的传送目标控制
- 同时传送多名玩家到同一坐标 (团队支持)
- 每次传送的最大使用次数
- 传送前的延迟时间
- 仅传送到已生成的区块 已实现
- 更多的保护插件兼容性(如 RedProtect) 已实现
- 付费传送
Other Resources
本资源由作者根据 GPLv3 分发,不提供任何担保或责任。
Made in Germany with love (and beer)
Provides a command (/randomteleport) to randomly teleport a player to a safe location in a give radius around a given point!
Truely random!
You can define different presets that your players can use via /rtp <preset> or via any alias that you define in your commands.yml. (E.g. /wilderness for a wildernes teleportfunctionality). It also includes different cooldowns for each preset, parameters to limit the target location to certain biomes and the ability to create random teleport signs!
Respects WorldGuard, Factions, FactionsUUID, RedProtect and GriefPrevention regions and tries to teleport player to the position with the least protections around it! It also checks for the WorldBorder!
Donations
Programming is time intensive and I would really appreciate your support!
So if you can afford it or make commercially use of this plugin feel free to buy me a beer! :)
Video Review & Explanation
Permissions
randomteleport.use - Permission to use the command (Not needed for Presets!)
randomteleport.presets.default - Permission for the default /rtp preset
randomteleport.presets.<presetname> - Permission for the /rtp <presetname> command
randomteleport.sign.preset.<presetname> - Permission to use a specific preset on a [RandomTP] sign
randomteleport.sign.create - Allows creating preset signs ([rtp] or [RandomTP] on the 2nd line and the preset name on the 3rd)
randomteleport.sign.destroy - Allows destroying preset signs ([rtp] or [RandomTP] on the 2nd line and the preset name on the 3rd)
randomteleport.manual - Gives permission to manually specify parameters in the command
randomteleport.manual.option.* -
Gives permission to use certain options in the command
randomteleport.tpothers - Lets the user also teleport other players
randomteleport.cooldownexempt - No teleport cooldowns for players with that permission
randomteleport.stat - Permission for the /rtp stat command
randomteleport.reload - Permission for the /rtp reload command
Commands
/randomteleport <minRange> <maxRange> [options]
- minRange - minimum distance to teleport the player away from the center point (default is the player's location, the range is square shaped)
- maxRange - maximum distance to teleport
- Additional options
/randomteleport --stat - a little debug statistic
/randomteleport --reload - reload the config
/randomteleport(without additional parameters) - executes the default preset from the config
/randomteleport <presetname> - executes the preset set in the config
Example:
/rtp 100 500 -p Phoenix616 -x 0 -z 0 -w equestria -c 60 -f
Teleports the player called Phoenix616 to a random position in the world equestria and in a radius of 100 to 500 blocks around x/z 0/0. It will not check for saved regions and will only ignore air/lava/water and cactus. A teleport with this options can only be used every 60 seconds.
Aliases:
/randomtp
/rtp
Presets
Version 1.5.0 introduced presets which you can trigger with only /rtp or /rtp <presetname>. The player needs the permission randomteleport.presets.default to execute the default /rtp or the permission randomteleport.presets.<presetname> to use any other preset with /rtp <presetname>. A player does not need the randomteleport.use permission to use presets!
You define the presets in the config as if the player would enter the command himself without the -p <playername> option. The player does not need the permission to execute the command you input into the config, just the permission for the specific preset!
This example is included in the config file:
presets:
default: "/rtp 100 1000 -f"
test: "rtp 10 200 -f"
Presetsigns:
Version 1.6.0 introduces preset signs which work like the normal presets but you can run them from signs. Just write the following lines on a sign:
Instead of "Default" on the 3rd line you can add the name of every preset you have set in your config. To create and destroy those signs you need the permission randomteleport.sign.create. Players need the permission randomteleport.sign.preset.<presetname> to be able use (rightclick) the sign!
Config
# Default language to use when client's language isn't available
lang: en
# Some debug information
debug: true
# Delay in ticks between checking chunks when searching
# Blocks to teleport on in normal mode
save-blocks:
- sand
- sandstone
- gravel
- dirt
- grass_block
- coarse_dirt
- podzol
- stone
- granite
- diorite
- andesite
- cobblestone
- end_stone
- netherrack
# Blocks unsave when in "--force blocks" mode
unsave-blocks:
- air
- water
- lava
- oak_sapling
- spruce_sapling
- birch_sapling
- jungle_sapling
- acacia_sapling
- dark_oak_sapling
- white_bed
- orange_bed
- magenta_bed
- light_blue_bed
- yellow_bed
- lime_bed
- pink_bed
- gray_bed
- light_gray_bed
- cyan_bed
- purple_bed
- blue_bed
- brown_bed
- green_bed
- red_bed
- black_bed
- powered_rail
- detector_rail
- cobweb
- piston_head
- tnt
- torch
- fire
- sign
- ladder
- rail
- wall_sign
- lever
- stone_pressure_plate
- iron_door
- redstone_wall_torch
- redstone_torch
- stone_button
- cactus
- magma_block
- nether_portal
- vine
- end_portal
- end_portal_frame
- tripwire_hook
- tripwire
- flower_pot
- oak_leaves
- spruce_leaves
- birch_leaves
- jungle_leaves
- acacia_leaves
- dark_oak_leaves
- barrier
- iron_trapdoor
- oak_trapdoor
- spruce_trapdoor
- birch_trapdoor
- jungle_trapdoor
- acacia_trapdoor
- dark_oak_trapdoor
- oak_door
- spruce_door
- birch_door
- jungle_door
- acacia_door
- dark_oak_door
- end_rod
- end_gateway
sign-variables:
- "[RTP]"
- "[RandomTP]"
# Just write your command arguments as you would use it ingame behind /rtp
# Don't use the -p parameter, this will get added automatically with the senders name/the specified playername
presets:
# Triggered when you use /rtp without any additional paramters
default: "100 1000"
# add more to use /rtp <rtpname>, player needs "randomteleport.presets.<rtpname>"
# <rtpname>: "/rtp 1 2"
test: "10 200 -f"
Default english language settings can be found in the lang.en.yml. If you want to add more language support just create a new lang.<locale>.yml in your languages folder!
Support
Source
The source code can be found on Github under the GPlv3 license!
Development Builds
ToDo
These features will be implemented in the full 2.0 rewrite:
- Y coordinate specification Implemented
- Support Nether and End Implemented
- Per world default presets
- More teleport target control
- Teleport multiple players at once to the same coordinate (team support)
- Max usage per teleport
- Delay before teleporting
- Option to only teleport to generated chunks Implemented
- More protection plugin compatibility (like RedProtect) Implemented
- Pay for teleports
Other Resources
This resource is distributed without any warranty or liability by the author according to the GPLv3.
评论 0
登录后参与评分
还没有评论,来抢沙发吧