Simple Polls
Simple Polls 是一款轻量级的 Minecraft 插件,允许服务器管理员为玩家创建互动投票。玩家可以直接在游戏中通过直观的图形用户界面(GUI)对投票进行投票,并且投票结果会实时追踪。过期的投票会被自动管理并单独存储。
本插件旨在服务于小型生存服(SMP),以确保只有活跃玩家才能参与重要投票的决策。不建议在大型服务器(200+ 名玩家)中使用。
功能特性
- 创建包含问题和多个选项的投票(每个投票最多支持 9 个选项)
- 通过图形用户界面(GUI)管理投票
- 追踪每位玩家的投票情况
- 自动使投票过期并将其归档
- 查看当前活跃和已过期的投票
- 面向玩家友好的投票图形用户界面
- 基于聊天的输入方式用于创建和编辑投票
- 使用 YAML 文件实现持久化存储
安装步骤
- 下载 Simple Polls 的最新构建版本。
- 将 JAR 文件放入服务器的
plugins 文件夹中。
- 启动或重启服务器以生成配置和数据文件夹。
- 确保你使用的是正确的 Minecraft 版本(推荐
1.21.4+)。
命令
| 命令 |
描述 |
/poll |
打开 Simple Polls 图形界面 |
/polls |
/poll 的别名 |
权限
polls.manage – 允许玩家创建和管理投票。默认:OP(管理员)。
使用方法
- 使用
/poll 或 /polls 打开投票图形界面。
- 点击某个投票进行投票。
- 加入服务器的玩家会收到关于他们尚未参与的活跃投票的通知。
- 已过期的投票可以单独查看。
数据存储
- 投票数据保存在
plugins/SimplePolls/polldata 文件夹中。
- 已过期的投票会移动到
plugins/SimplePolls/expiredpolldata 文件夹中。
- 每个投票都作为一个独立的
.yml 文件存储。
计划中的功能
- 实际上限制选项的数量 ;-;
- 添加返回和取消操作的便捷按钮
- 查看具体谁投了哪个选项
- 关闭加入服务器时的投票通知
贡献代码
- 欢迎提交拉取请求(Pull Requests)。对于重大更改,请先开启一个 Issue 来讨论你想做的修改。
- 如需报告 Bug,请在我的 Discord 中进行反馈:
https://discord.gg/aEGxqg8VbZ
通过提交贡献(拉取请求、补丁或其他形式),即表示你同意你的代码将采用 Mozilla Public License 2.0 (MPL 2.0) 许可证授权,并且你有权提交该内容(即它是你的原创作品或来自兼容的来源)。
许可证
本项目采用 Mozilla Public License 2.0 许可协议。
Simple Polls
Simple Polls is a lightweight Minecraft plugin that allows server admins to create interactive polls for players. Players can vote on polls directly in-game through an intuitive GUI, and poll results are tracked in real-time. Expired polls are automatically managed and stored separately.
This is a plugin designed for small SMPs to make sure that only people who actively play vote on important polls, use in large servers(200+ players) in not recommended
Features
- Create polls with a question and multiple options (up to 9 options per poll)
- Manage polls through a GUI
- Track votes per player
- Automatically expire polls and archive them
- View active and expired polls
- Player-friendly GUI for voting
- Chat-based input for creating and editing polls
- Persistent storage using YAML files
Installation
- Download the latest build of Simple Polls.
- Place the JAR file in your server's
plugins folder.
- Start or restart the server to generate the config and data folders.
- Ensure you have the correct Minecraft version (
1.21.4+ recommended).
Commands
| Command |
Description |
/poll |
Open the Simple Polls GUI |
/polls |
Alias for /poll |
Permissions
polls.manage – Allows a player to create and manage polls. Default: OP.
Usage
- Open the polls GUI with
/poll or /polls.
- Click on a poll to vote.
- Players who join the server are notified about active polls they haven’t voted on yet.
- Expired polls can be viewed separately.
Data Storage
- Poll data is saved in the
plugins/SimplePolls/polldata folder.
- Expired polls are moved to
plugins/SimplePolls/expiredpolldata.
- Each poll is stored as a separate
.yml file.
Planned Features
- Actually limiting the amount of options ;-;
- Quality of life buttons for going back and cancelling
- See specifically who voted for what
- Turn off voting notifications on join
Contributing
- Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- For bug reporting, please report it in my discord:
https://discord.gg/aEGxqg8VbZ
By submitting a contribution (pull request, patch, or otherwise), you agree that your code will be licensed under the Mozilla Public License 2.0 (MPL 2.0) and that you have the right to submit it (i.e., it is your original work or from compatible sources).
License
This project is licensed under the Mozilla Public License 2.0
评论 0
登录后参与评分
还没有评论,来抢沙发吧