这是我从零开始制作的第一款模组,最初是为我管理的服务器开发的。
它是一个简单的模组,允许玩家列出其他玩家及其所在的世界。
关于
- 显示在线玩家数量与最大玩家数 (/online)
- 显示世界中玩家数量与在线玩家数量
- 不显示隐形玩家
- 可配置消息
- 列出所有世界及在该世界中的玩家 (/listplayers)
- 列出指定世界中的所有玩家 (/listplayers worldname)
- 使用 /online reload 重载配置
- 重载功能需要权限 simpleonline.reload
用法
/online
显示在线玩家数量与最大玩家数
示例:/online 将输出
/online reload
重载配置文件
/listplayers
显示在线玩家数量与最大玩家数。
列出服务器上所有玩家及其所在的世界。(将跳过空世界)。
示例:/listplayers 将输出
- 20 人中有 5 人在线
- 在 "world1" 中在线 (3/5):player1 player2 player3
- 在 "world2" 中在线 (2/5):player4 player5
/listplayers [world name]
显示在线玩家数量与最大玩家数。
列出所提供世界中的所有玩家
如果该世界中没有在线玩家,玩家将收到一条提示,告知该世界中没有在线玩家。
如果未找到该世界,玩家将收到一条提示,告知无法找到该世界。
示例 - /listplayers world2 将输出:
- 20 人中有 5 人在线
- 在 "world2" 中在线 (2/5):player4 player5
配置
会生成一个用于更改颜色、翻译和格式化消息的配置文件。
配置文件如下所示:config.yml
更多信息
GitHub: https:github.com/getninjaN/SimpleOnline
下载
镜像 1: 当前版本 (1.1.5)
更新日志
1.1.5
1.1.4
- 修复了隐形玩家在 /online 中仍然显示的问题
- 修复了隐形玩家在 /listplayers 中仍然显示的问题
1.1.3
- 修复了 NPC(至少是 Citizens 插件中的 NPC)出现在 /listplayers 中的问题
1.1.2
- 添加了 /listplayers 命令(作用等同于旧的 /online worldname)
- /online 现在仅显示在线玩家数量与最大玩家数
- 添加了配置项 uselist,它将与 /online 一起显示
- 感谢 dougmpv 提供的建议
1.1.1
- 添加了重载功能 (权限 simpleonline.reload)
- 添加了一些遗漏的变量替换
- 进行了一些 minor 清理工作
1.1
- 在 config.yml 中添加了配置项 showtotalonline
- 在 config.yml 中添加了消息键 totalonline
- 添加了输出内容 总在线玩家数 vs. 最大玩家数
- 添加了输出内容 世界中玩家数 vs. 总在线玩家数
1.0
This is the first mod that I've made from scratch and was originally made for a server that I administrate.
It is a simple mod allowing players to list other players and what world they're in.
About
- Displays players online vs. max players (/online)
- Displays players in world vs. players online
- Does not show invisible players
- Configurable messages
- List all worlds and which players are in that world (/listplayers)
- List all players in a provided world (/listplayers worldname)
- Reload configuration with /online reload
- Reload function requires permission simpleonline.reload
Usage
/online
Displays Players online vs. Max players
Example: /online will output
/online reload
Reloads config
/listplayers
Displays Players online vs. Max players.
Displays a list of all players on the server and what world they are in. (Will skip worlds that are empty).
Example: /listplayers will output
- 5 of 20 online
- Online in "world1" (3/5): player1 player2 player3
- Online in "world2" (2/5): player4 player5
/listplayers [world name]
Displays Players online vs. Max players.
Lists all players in the world entered
If there are no online players in the world provided the player will get a message saying that there are no players online in that world.
If the world isn't found the player will be getting a message saying that the world couldn't be found.
Example - /listplayers world2 will output:
- 5 of 20 online
- Online in "world2" (2/5): player4 player5
Configuration
There's a configuration file generated for color changing, translation and formatting messages.
The configuration file looks like this: config.yml
More info
GitHub: https:github.com/getninjaN/SimpleOnline
Download
Mirror 1: Current version (1.1.5)
Changelog
1.1.5
- Fix so that it wont cast errors when using console.
1.1.4
- Fix so that invisible players does not show in /online
- Fix so that invisible players does not show in /listplayers
1.1.3
- Fix so that NPCs doesn't show up in /listplayers (at least NPCs in Citizens)
1.1.2
- Added /listplayers command (acts as the old /online worldname)
- /online will now only display Players online vs. Max players
- Added configuration key uselist which will be displayed together with /online
- Thank you dougmpv for your input
1.1.1
- Added reload function (permission simpleonline.reload)
- Added some forgotten variable replaces
- Some minor clean up
1.1
- Added configuration key showtotalonline in config.yml
- Added message key totalonline in config.yml
- Added output total online vs. max players
- Added output players in world vs. total online
1.0
评论 0
登录后参与评分
还没有评论,来抢沙发吧