azuvotifier

一个现代化的NuVotifier(和Votifier)分支,增加了Redis转发、Sponge 11+支持和独立实现。

资源图片
# AzuVotifier ![Build status](https://img.shields.io/github/actions/workflow/status/azurejelly/azuvotifier/build.yml?logo=githubactions&logoColor=ffffff) ![Docker Pulls](https://img.shields.io/docker/pulls/azurejelly/standalone-nuvotifier?logo=docker) [![Modrinth](https://img.shields.io/modrinth/dt/azuvotifier?logo=modrinth&color=00AF5C)](https://modrinth.com/plugin/azuvotifier) AzuVotifier是NuVotifier的一个分支,支持Redis转发、独立服务器实现以及Sponge 11+支持。来自原始README: > NuVotifier是使用原始Votifier项目的安全替代方案。 > NuVotifier可以替代Votifier工作 - 任何支持 > Votifier的投票监听器也支持NuVotifier。 ## 有用的资源 - [设置指南](https://github.com/NuVotifier/NuVotifier/wiki/Setup-Guide) - [故障排除指南](https://github.com/NuVotifier/NuVotifier/wiki/Troubleshooting-Guide) - [开发者信息](https://github.com/NuVotifier/NuVotifier/wiki/Developer-Documentation) ## 支持的平台 AzuVotifier目前支持以下平台: - CraftBukkit, Spigot, Paper, Pufferfish 或 Purpur (1.8.8+) - 旧版本可能有效,但将不提供支持 - 任何没有重大破坏性更改的分支也应该有效 - Sponge 11 (1.20+) - BungeeCord/Waterfall - Velocity 它也可以作为一个独立的应用程序运行。 ## 运行 您可以从 [GitHub](https://github.com/azurejelly/azuvotifier/releases) 或 [Modrinth](https://modrinth.com/plugin/azuvotifier) 直接获取最新版本。 然后,请按照针对您的服务器软件或独立版本的说明进行操作: ### Bukkit, Sponge, BungeeCord 和 Velocity 将下载的JAR拖动到`plugins/`文件夹中。您应该下载了带有您的服务器软件名称的JAR。 如果您一切顺利,它应该可以开箱即用。 如果没有,请随时在此处 [https://github.com/azurejelly/azuvotifier/issues](https://github.com/azurejelly/azuvotifier/issues) 寻求帮助。 ### 独立版 打开终端,进入下载的JAR所在的目录,然后像这样运行它: ```shell $ java -Xms512M -Xmx512M -jar nuvotifier-standalone.jar ``` 您还可以使用命令行参数来配置一些设置,例如主机名: ```shell $ java -Xms512M -Xmx512M -jar nuvotifier-standalone.jar --host 127.0.0.1 --config /etc/nuvotifier/ ``` 要获取所有选项的完整列表,请运行: ```shell $ java -jar nuvotifier-standalone.jar --help ``` ### 独立版(Docker) Standalone NuVotifier实现的Docker镜像可在 [Docker Hub](https://hub.docker.com/r/azurejelly/standalone-nuvotifier) 上获取。要拉取它,请运行: ```shell $ docker pull azurejelly/standalone-nuvotifier:latest # 为最新稳定版本 $ docker pull azurejelly/standalone-nuvotifier:unstable # 为主分支上的最新提交 ``` 然后,您可以使用如下命令运行该镜像: ```shell $ docker run -p 8192:8192 \ -v /etc/nuvotifier:/app/config \ --restart unless-stopped \ --name nuvotifier \ azurejelly/standalone-nuvotifier:latest \ --port 8192 ``` 这将会: - 在主机机器上暴露8192端口; - 使用绑定挂载将 `/etc/nuvotifier` (主机) 映射到 `/app/config` (容器); - 除非停止,否则自动重启容器; - 将容器命名为 `nuvotifier`; - 使用 `azurejelly/standalone-nuvotifier:latest` 镜像; - 并将 `--port 8192` 作为命令行参数传递给NuVotifier。 - 虽然 `8192/tcp` 已经是默认端口,但有助于显示您可以传递参数,例如 `--port` 或 `--config`。 如果您想使用Docker Compose,可以在存储库中的 [docker-compose.yml](https://github.com/azurejelly/azuvotifier/blob/master/docker-compose.yml) 文件中找到一个示例文件。 # 许可 NuVotifier 使用GNU GPLv3许可。 此项目的许可证可以在 [此处](LICENSE) 查看。