传送、传送点与家园——支持高度可定制的冷却限制
LimitedTeleport 是一款具备常见功能的传送插件,例如传送到坐标、重生点、玩家、家园以及返回功能(即传送到玩家上次传送前的位置)。
与其他传送插件不同的是,每个玩家拥有独立的可用传送次数,这些次数会按照配置的时间间隔和数量自动恢复。
例如,服务器启动时,玩家初始拥有 2 次可用传送次数。每过 30 分钟,可用传送次数会增加 1 次,最高上限为 5 次。每当玩家使用下方的任一命令时,其可用传送次数将减少 1 次。
当然,所有这些数值均可在配置文件中自定义。
命令与权限:
* /ltp (目前这是唯一的命令)
参数:
- <player> : ltp.player - 将执行者传送到 <player>
- <player1> <player2> : ltp.playertoplayer - 将 <player1> 传送到 <player2>
- spawn : ltp.spawn - 将执行者传送到其所在世界的重生点
- spawn [<player>] : ltp.spawn and ltp.other - 将 <player> 传送到执行者所在世界的重生点
- <x> <y> <z> : ltp.coords - 将执行者传送到给定的坐标
- <x> <y> <z> [<player>] : ltp.coords and ltp.coordsother - 将 <player> 传送到给定的坐标
- home : ltp.home - 将执行者传送到其家园
- sethome : ltp.home - 将执行者当前位置设置为其家园
- return : ltp.return - 将执行者传送到其上次传送的起始位置
传送点(Warp)参数:
- warp create <name> : ltp.privatewarps - 创建一个仅对执行者私有的传送点
- warp create public <name> : ltp.publicwarps.create - 创建一个所有拥有使用公共传送点权限的玩家均可使用的传送点
- warp delete <name> : ltp.privatewarps - 删除一个传送点
- warp delete public <name> : ltp.publicwarps.delete - 删除一个公共传送点
- warp/warps list : ltp.privatewarps - 列出执行者的所有私有传送点
- warp/warps list public : ltp.publicwarps.use - 列出所有公共传送点
- warp <name> : ltp.privatewarps / ltp.publicwarps.use - 传送到名为 <name> 的私有或公共传送点。如果两者同时存在,执行者将被传送到私有传送点
- warp public <name> : ltp.publicwarps.use - 传送到一个公共传送点
- <name> : ltp.privatewarps / ltp.publicwarps.use - 功能等同于 "/ltp warp <name>",但你可以省略 "warp" 关键字。此外,你无法传送到名称与玩家名或其他参数(如 home、warp 等)相同的传送点
其他权限
- ltp.nolimit - 禁用传送次数限制(例如用于 OP)
- ltp.publicwarps.* - 包含权限 ltp.publicwarps.use、ltp.publicwarps.create、ltp.publicwarps.delete
- ltp.* - 包含所有权限,除了 ltp.nolimit 权限。OP 默认拥有此权限
config.yml
- AvailableAtStart: 2 - 插件加载时玩家可用的初始传送次数
- regenInterval: 30 - 所有玩家的可用传送次数增加一次的间隔时间
- regenAmount: 1 - 每次 regenInterval 后玩家获得的可用传送次数
- regenMax: 4 - 玩家最多可以累积保存的可用传送次数
- TeleportDelayEnabled - 是否启用传送延迟:玩家在输入传送命令后,需等待指定时间才能实际完成传送
- TeleportDelayMillis - 需要等待的毫秒数(1 秒 = 1000 毫秒)
待办事项:
- 可配置的 OP 权限
- 思考添加更多功能,并清理代码
已知问题:
版本历史 / 更新日志
版本 2.2 - 错误修复及 1.25 版本更新 - 2012-10-02
- 修复了一个导致用户名中包含大写字母的玩家无法使用家园功能的 bug
- 为 Tekkit 的 1.25 服务器创建了更新版本
版本 2.1 - 错误修复 - 2012-07-31
- 更改了权限设置,使 OP 拥有除 ltp.nolimit 之外的所有权限
- 修复了“飞向天空效果”相关的问题
- 修复了传送到传送点后 return 参数失效的问题
版本 2.0 - 传送点与安全机制 - 2012-07-30
- 添加了传送点功能
- 添加了可在被传送前设置的延迟时间
- 添加了防止传送到实心方块内的保护机制,避免玩家被困住
- 添加了一个实验性效果,使玩家在传送前向上飞向天空
- 更改了权限设置,使 OP 不再默认拥有任何权限
版本 1.0 - 初始发布 - 2012-07-11
Teleportation, Warps and Homes - with highly adaptable Limits
LimitedTeleport is a teleportation plugin with common features, such as teleporting to coordinates, to spawn, to players, home and a return function, to get to the location the player teleported from last time.
The difference to other teleportation plugins is, that every player has an own amount of available teleportations, that regenerates by configured interval and amount.
So, for example, a player has two teleportations available when the server starts. Every 30 minutes the amount of available teleports is increased by one, up to the himark of 5 available teleports. Whenever he uses one of the commands below, his amount of available teleports becomes decreased by one.
Of course all these values can be configured.
Commands and permissions:
* /ltp (at the moment this is the only command)
parameters:
- <player> : ltp.player - teleports the executor to <player>
- <player1> <player2> : ltp.playertoplayer - teleports <player1> to <player2>
- spawn : ltp.spawn - teleports the executor to the spawn of the world he is in
- spawn [<player>] : ltp.spawn and ltp.other - teleports <player> to the spawn of the world the executor is in
- <x> <y> <z> : ltp.coords - teleports the executor to the given coordinates
- <x> <y> <z> [<player>] : ltp.coords and ltp.coordsother - teleports <player> executor to the given coordinates
- home : ltp.home - teleports the executor to his home
- sethome : ltp.home - sets the executors home to the point he´s at
- return : ltp.return - teleports the executor to the location he teleported from last time
Warp parameters:
- warp create <name> : ltp.privatewarps - Creates a warp private for the executor
- warp create public <name> : ltp.publicwarps.create - Creates a warp for all players that have permission to use public warps
- warp delete <name> : ltp.privatewarps - Deletes a warp
- warp delete public <name> : ltp.publicwarps.delete - Deletes a public warp
- warp/warps list : ltp.privatewarps - Lists all private warps of the executor
- warp/warps list public : ltp.publicwarps.use - Lists all public warps
- warp <name> : ltp.privatewarps / ltp.publicwarps.use - Teleports to a private or public warp called <name>, if both (private and public) exist, the executor will be teleportet to the private warp
- warp public <name> : ltp.publicwarps.use - Teleports to a public warp
- <name> : ltp.privatewarps / ltp.publicwarps.use - Does the same as "/ltp warp <name>" exept that you can skip the "warp" and you can't teleport to warps whose names equal to players' names or other parameters (home, warp, ...)
Further permissions
- ltp.nolimit - Disables the limit of teleportations (for example for OPs)
- ltp.publicwarps.* - Contains permissions ltp.publicwarps.use, ltp.publicwarps.create, ltp.publicwarps.delete
- ltp.* - contains all permissions exept the ltp.nolimit-permission, ops have this permission by default
config.yml
- AvailableAtStart: 2 - How often players can teleport when the plugin is loaded
- regenInterval: 30 - How often all player's amount of available teleportations gets increased
- regenAmount: 1 - How many available teleportations the players get every regenInterval
- regenMax: 4 - How many available teleportations the players can save up
- TeleportDelayEnabled - Whether players have to wait a specified time after executing a teleportation command until they really get teleported
- TeleportDelayMillis - How long they have to wait in milliseconds ( 1 second = 1000 milliseconds )
ToDo:
- configurable op-permissions
- thinking about additional features, cleaning up code
Known issues:
- none - if you find some, please tell me
Version history / change log
version 2.2 - bugfix and updated 1.25 version - 2012-10-2
- fixed a bug which made players with capitalized letters in their usernames not be able to use home
- created an updated version for 1.25 servers as Tekkit
version 2.1 - bugfix - 2012-07-31
- changed permissions so that ops have all permissions except the ltp.nolimit permission
- fixed problems with the "flying-up-into-the-sky-effect"
- fixed return parameter not working after teleportation to a warp
version 2.0 - warps and security - 2012-07-30
- added warp functions
- added configurable delay before someone gets teleported
- added rpotection against teleportation into solid blocks so that you can't get stuck in them
- added an experimental effect that makes the player fly up into the sky before getting teleported
- changed permissions so that ops don't have any permissions
version 1.0 - initial release - 2012-07-11
- containes all features exept the warp functions
评论 0
登录后参与评分
还没有评论,来抢沙发吧