Excursion — 一款适用于 Bukkit 的传送插件
Excursion 是一款适用于 Bukkit 的传送插件,它会记住每位玩家在每个世界中的上次位置。
请将错误报告和功能请求发布为 dev.bukkit.org 工单。
功能特性
-
当离开一个世界(通过 /visit 命令)时,会保存该玩家在该世界中的位置。当玩家再次访问该世界时,他们将被传送至已保存的位置。
-
可以将某些世界列入黑名单/排除在此行为之外,强制玩家始终传送至该世界的出生点。
-
可以对世界进行分组!当玩家离开一个分组内的世界时,除了保存玩家的位置外,还会保存玩家所在的世界。当玩家再次访问该分组时,他们将被传送回离开的确切世界和位置。
为了更清楚地说明,假设有三个世界:WorldA、WorldB 和 WorldC。WorldA 和 WorldB 被归入一个组,其中 WorldA 作为“主世界”。当玩家首次访问此分组(通过在 WorldA 或 WorldB 上使用 /visit)时,玩家将被传送至 WorldA 的出生点。
现在假设玩家位于 WorldB 并访问了 WorldC。当玩家返回该分组时,他们将传送回之前在 WorldB 中保存的位置。
注意:由于分组的性质,必须使用其他方法来允许玩家在分组内的世界之间移动——例如,下界传送门和常规传送门。
-
世界(和分组)可以设置别名。
-
可以为每个世界(或分组)配置延迟。当玩家使用 /visit 命令离开该世界时,他们必须在实际被传送走之前等待配置的秒数。启用延迟后,您可以选择配置如果玩家攻击、受到伤害或移动了一定距离,则取消传送。
安装与配置
只需将 Excursion.jar 放入 Bukkit 服务器的 plugins 目录中。启动服务器。这将在 plugins 目录中创建一个 Excursion 目录和一个默认的 config.yml 文件。有关配置详情,请参阅该文件。
命令与权限
基本命令为:
/visit <world>
其中 <world> 是世界名称或分组名称。
/excursion reload
重新读取 config.yml。
权限节点如下:
excursion.visit - 允许使用 /visit 命令。
excursion.visit.now - 允许在 /visit 命令中使用 -n(或 --now)选项。这将绕过当前世界中配置的任何延迟。
excursion.visit.other - 允许在使用 /visit 命令时指定玩家,例如 /visit creative ZerothAngel。这在脚本执行或其他需要自动执行命令的情况下可能很有用。
excursion.access.<world> - 允许访问 <world>。您必须使用服务器目录中世界目录的确切名称!
excursion.access.* - 允许访问所有世界。
excursion.reload - 允许使用 /excursion reload 命令
默认情况下,操作员拥有所有权限。
许可与源码
Excursion 根据 Apache License, Version 2.0 发布。
源代码可在 GitHub 上找到:
本项目的开发构建版本可通过提供的持续集成服务器获取。这些构建版本未经 BukkitDev 员工批准。请自行承担使用风险。
待办事项
- 自动或手动清理过期的保存位置。
- 或许支持简单的导入/导出功能,以便更轻松地进行数据库架构升级。
Excursion — A teleport plugin for Bukkit
Excursion is a teleport plugin for Bukkit which remembers each player's previous location in each world.
Please post bugs and/or feature requests as dev.bukkit.org tickets.
Features
-
When leaving a world (via the /visit command), the player's location within that world is saved. When the player revisits that world, they are teleported to their saved location.
-
Worlds can be blacklisted/excluded from this behavior, forcing players to always teleport to the world's spawn point.
-
Worlds can be grouped! When a player leaves a grouped world, in addition to the player's location, the player's world is also saved. When the player revisits that group, they are teleported to the exact world and location they left from.
To make things clearer, suppose there are 3 worlds: WorldA, WorldB, and WorldC. WorldA and WorldB are put in a group with WorldA as the "primary world." When a player visits this group for the first time (by using /visit on either WorldA or WorldB), the player will teleport to WorldA's spawn point.
Let's now say the player is in WorldB and visits WorldC. When the player returns to the group, they will teleport back to their saved location in WorldB.
NOTE: Due to the nature of grouping, some other method must be used to allow players to move between worlds of a group — for example, nether gates and portals.
-
Worlds (and groups) can have aliases.
-
A delay may be configured per world (or group). When a player leaves that world with the /visit command, they will be forced to wait the configured number of seconds before actually being teleported away. With a delay enabled, you may optionally configure that the teleport be cancelled if the player attacks, receives damage, or moves a significant amount.
Installation & Configuration
Simply drop Excursion.jar in your Bukkit server's plugins directory. Start up your server. This will create an Excursion directory and default config.yml within the plugins directory. See that file for configuration details.
Commands & Permissions
The basic command is:
/visit <world>
Where <world> is the name of a world or a group.
/excursion reload
Re-reads config.yml.
Permission nodes are:
excursion.visit - Allows use of the /visit command.
excursion.visit.now - Allows the use of the -n (or --now) option with the /visit command. This bypasses any delay configured into the current world.
excursion.visit.other - Allows specifying a player with the /visit command, e.g. /visit creative ZerothAngel. This may be useful for scripts or other situations where commands are executed automatically.
excursion.access.<world> - Allows visiting <world>. You must use the exact name of the world directory in your server directory!
excursion.access.* - Allows visiting all worlds.
excursion.reload - Allows use of the /excursion reload command
Operators have all permissions by default.
License & Source
Excursion is released under the Apache License, Version 2.0.
Sources may be found on GitHub:
Development builds of this project can be acquired at the provided continuous integration server.
These builds have not been approved by the BukkitDev staff. Use them at your own risk.
To Do
- Automated or manual cleanup of stale saved locations.
- Perhaps simple import/export to allow for easier database schema upgrades.
评论 0
登录后参与评分
还没有评论,来抢沙发吧