Velocity Sign Link
一个轻量级的 Paper/Spigot 插件,用于 Velocity,允许玩家使用告示牌连接到其他服务器。
功能
- 保存告示牌: 使用
/savesign <serverName> 将目标服务器配置到告示牌上。
- 获取告示牌数据: 使用
/getsign 读取告示牌的数据。
- 删除告示牌数据: 使用
/deletesign 移除告示牌的配置。
- 冷却管理: 使用
/signcooldown <milliseconds> 设置告示牌使用的全局冷却时间。
- 自定义冷却显示:
config.yml 中的选项 (display_below_one_second_as_one) 可将小于 1 秒的冷却时间显示为“1 秒”。
- 条件性“未找到数据”消息: 通过
VeloSign.nomessage 权限控制是否显示“此告示牌未找到数据”的消息。
- 数据库集成: 使用 SQLite 存储告示牌数据。
- Velocity/BungeeCord 集成: 利用插件消息传递在服务器之间传送玩家。
安装
- 下载插件 jar 文件。
- 将 jar 文件放入服务器的
plugins 文件夹中。
- 重启或重载你的服务器。
- 根据需要编辑
plugins/VelocitySignLink/config.yml。
配置
位于 plugins/VelocitySignLink/config.yml:
display_below_one_second_as_one:(默认值:true)
如果设置为 true,任何小于 1 秒的冷却时间(例如 0.2、0.6 秒)都将向玩家显示为“1 秒”。如果为 false,则显示为“0 秒”。
cooldown:(默认值:1000)
使用告示牌之间的冷却时间。
命令
-
/savesign <serverName>
保存你当前所看告示牌的目标服务器。需要 VeloSign.command.savesign 或 VeloSign.admin 权限。
-
/getsign
获取你当前所看告示牌的数据。需要 VeloSign.command.getsign 或 VeloSign.admin 权限。
-
/deletesign
删除你当前所看告示牌的数据。需要 VeloSign.command.deletesign 或 VeloSign.admin 权限。
-
/signcooldown <milliseconds>
设置告示牌使用的全局冷却时间。需要 VeloSign.command.signcooldown 或 VeloSign.admin 权限。
权限
VeloSign.use
允许玩家使用告示牌进行传送。(默认:所有玩家/true)
VeloSign.nomessage
拥有此权限的玩家在与未配置的告示牌交互时不会看到“此告示牌未找到数据”的消息。(默认:所有玩家/true - 默认隐藏消息)。如果你希望他们看到该消息,请撤销其所属组或玩家的此项权限。
VeloSign.bypass.cooldown
允许玩家绕过告示牌使用的冷却时间。(默认:op)
VeloSign.admin
授予对所有 VeloSign.command.* 权限的访问权。(默认:op)
VeloSign.command.savesign
使用 /savesign 命令的权限。(默认:op)
VeloSign.command.getsign
使用 /getsign 命令的权限。(默认:op)
VeloSign.command.deletesign
使用 /deletesign 命令的权限。(默认:op)
VeloSign.command.signcooldown
使用 /signcooldown 命令的权限。(默认:op)
贡献
欢迎贡献!请随意 fork 该项目并提交拉取请求。
许可证
本项目采用 GPL-3.0 许可证授权。
支持
如有问题或功能请求,请在 GitHub 上提交 issue。
Velocity Sign Link
A lightweight Paper/Spigot plugin for Velocity that allows players to use signs to connect to other servers.
Features
- Save Signs: Use
/savesign <serverName> to configure a sign with its target server.
- Retrieve Sign Data: Use
/getsign to read a sign's data.
- Delete Sign Data: Use
/deletesign to remove the configuration from a sign.
- Cooldown Management: Use
/signcooldown <milliseconds> to set a global cooldown for sign usage.
- Customizable Cooldown Display: Option in
config.yml (display_below_one_second_as_one) to show cooldowns less than 1 second as "1 second".
- Conditional "No Data Found" Message: Control the visibility of the "No Data found for this sign" message using the
VeloSign.nomessage permission.
- Database Integration: Utilizes SQLite to store sign data.
- Velocity/BungeeCord Integration: Leverages plugin messaging to send players between servers.
Installation
- Download the plugin jar.
- Place the jar in your server's
plugins folder.
- Restart or reload your server.
- Edit
plugins/VelocitySignLink/config.yml as needed.
Configuration
Located in plugins/VelocitySignLink/config.yml:
display_below_one_second_as_one: (Default: true)
If set to true, any cooldown that is less than 1 second (e.g., 0.2, 0.6 seconds) will be displayed to the player as "1 second". If false, it will display as "0 seconds".
cooldown: (Default: 1000)
The cooldown between the usage of a sign.
Commands
-
/savesign <serverName>
Saves the target server for the sign you’re looking at. Requires VeloSign.command.savesign or VeloSign.admin.
-
/getsign
Retrieves the data of the sign you are looking at. Requires VeloSign.command.getsign or VeloSign.admin.
-
/deletesign
Deletes the data of the sign you are looking at. Requires VeloSign.command.deletesign or VeloSign.admin.
-
/signcooldown <milliseconds>
Sets the global cooldown for sign usage. Requires VeloSign.command.signcooldown or VeloSign.admin.
Permissions
VeloSign.use
Allows players to use the signs to teleport. (Default: all/true)
VeloSign.nomessage
Players with this permission will not see the "No Data found for this sign" message when interacting with an unconfigured sign. (Default: all/true - message is hidden by default). Revoke this permission from groups/players if you want them to see the message.
VeloSign.bypass.cooldown
Allows players to bypass the sign usage cooldown. (Default: op)
VeloSign.admin
Grants access to all VeloSign.command.* permissions. (Default: op)
VeloSign.command.savesign
Permission to use the /savesign command. (Default: op)
VeloSign.command.getsign
Permission to use the /getsign command. (Default: op)
VeloSign.command.deletesign
Permission to use the /deletesign command. (Default: op)
VeloSign.command.signcooldown
Permission to use the /signcooldown command. (Default: op)
Contributing
Contributions are welcome! Feel free to fork the project and submit pull requests.
License
This project is licensed under the GPL-3.0 License.
Support
For issues or feature requests, please open an issue on GitHub.
评论 0
登录后参与评分
还没有评论,来抢沙发吧