KRandomTeleport
允许创建一个告示牌,当玩家点击时,会将其随机传送至距离该告示牌指定范围外的位置。这在允许 griefing(恶意破坏)、阵营战争或 PVP 的世界中非常有用。通常情况下,玩家需要走到离重生点一定距离的地方才能建造建筑,以防止其他玩家进行 griefing 或被过快突袭。使用此告示牌,你可以指定玩家被随机传送的最小和最大距离。
告示牌制作
创建告示牌需满足以下条件:
- 你必须在服务器上拥有 OP(管理员)权限。
- 告示牌第一行必须为 "RandomTeleport"(不含引号)。
- 告示牌第二行必须为 "[Click Me]"(不含引号)。
- 第三行必须填写最大传送距离。
- 第四行必须填写最小传送距离。
例如:
RandomTeleport
[Click Me]
10000
3000
这将使玩家在右键点击告示牌时,被传送到距离告示牌 3,000 到 10,000 格之间的位置。
水域世界警告
应许多用户的要求,我最近更新了此插件,使其不会将你传送至水中。问题在于,我有两种编程实现方式:快速方式和慢速方式。我选择了快速方式。快速方式的缺点是,如果你的世界中地表水面积异常庞大,可能会导致插件陷入死锁。因为本质上,在计算寻找陆地时会暂停服务器运行,如果始终找不到陆地,它将永远无法停止搜索。这很可能只影响约 0.0001% 的插件使用者。
然而,如果你发现使用该告示牌导致服务器卡顿,或者循环次数变得非常大并导致服务器出现停顿,请在此留言或私信我,我会额外花时间优化以更好地适配你的服务器。只是这需要额外的一个小时或两个小时的编码时间,因为我需要稍微重新设计其工作原理。当然,由于我非常忙碌,除非有人确实需要,否则我不会去做这件事!
更改 / 功能 / 问题
如需报告期望的更改、请求新功能或反馈问题,请直接在下方的评论区留言,或通过 kmcg3413 at gmail.com 联系我。
开发者
如果你想要此插件的源代码,只需解压 JAR 文件,即可在编译后的类文件旁边找到源文件。
KRandomTeleport
Allows creation of a sign which will randomly teleport players a specified distance away from sign location. This is useful on worlds were grieving, factional warfare, or PVP is allowed. Normally, a player has to walk a certain distance away from spawn to build, prevent other players from grieving, or being raided too quickly. With this sign you can specify the minimum and maximum distance that a player will be randomly teleported with in.
Sign Creation
These conditions have to be satisfied to create the sign:
- You must have OP (operator) status on the server.
- First line of the sign must be "RandomTeleport" with out the quotes.
- Second line of the sign must be "[Click Me]" with out the quotes.
- Third line must be the maximum teleport distance.
- Forth line must be the minimum teleport distance.
For example:
RandomTeleport
[Click Me]
10000
3000
This would teleport players between 10,000 blocks away and 3,000 blocks when they right clicked on the sign.
Water World Warning
I recently updated the plugin, at the request of many users, to not teleport you into water. The problem is there were two ways I could program this into the plugin. The fast way and the slow way. So I choose the fast way. The problem with the fast way is that if you for example had a world with abnormally large amounts of surface water than you could encounter a lockup in the plugin, because essentially it stops the server when it starts calculating to find land and if it never finds any well it will never stop looking. This will likely only effect like 0.0001% of the users of this plugin.
However, if you notice using the signs causes a lockup or the number of cycles is growing quite large and causing your server to stutter just come on here and leave me a comment or private message and I will take the extra time to make it work better for your server. It is just that it will require a hour or two of extra coding time because I have to redesign how it works slightly and of course I am really busy so I am not going to do that unless someone actually needs it!
Changes / Features / Problems
To report desired changes, ask for features, or report problems please just leave a comment below or you can contact me at kmcg3413 at gmail.com.
Developers
If you want the source for this plugin simply unzip the JAR and you will find the source files along side the compiled class files.
评论 0
登录后参与评分
还没有评论,来抢沙发吧