NewPlayerAlert
功能说明
它将几项相关功能整合在一个紧凑的包中。
它可以:
- 提醒玩家有新成员加入服务器
- 替换加入、离开和踢出的提示信息(使其完全可通过 config.yml 配置文件自定义)
- 提供禁用部分或全部通知的选项
- 提供独特的玩家计数(作为新玩家通知的一部分,也可通过命令查看)
- 提供可选的新玩家传送至出生点功能(以便你的出生点可以设置在任意想要的位置)
工作原理
非常简单,只有两个文件:插件本身和 config.yml(运行后自动生成并随更新同步修改)。
它不使用数据库,仅将玩家计数、显示的文本字符串以及禁用不同通知和新玩家传送至出生点功能的选项存储在 config.yml 中。
设置步骤
- 将其复制到你的 plugins 目录
- 重启服务器(或强制重载,如果你坚持的话)以生成配置文件。
- 对配置文件进行任何更改
- 如果进行了更改,请重启(或重载)服务器
- 在游戏中运行 /pc update 命令以更新已加入服务器的玩家数量
- 享受吧!
命令列表
主要命令是 /playercount,简写为 /pc。以下所有命令均可用 /pc 替代
/playercount - 列出玩家数量
/playercount update - 更新已游玩过的玩家数量(首次设置时很有用)
/playercount reload - 从磁盘重新加载配置文件(v0.3 新增)
/playercount (t 或 toggle) (option) - 用于切换以下选项的主命令。
- 选项可以是以下内容之一:
newplayer - 切换新玩家公告开关
returning - 切换回归玩家公告开关
quitting - 切换玩家离开公告开关
kicked - 切换玩家被踢出公告开关(v0.3 新增)
权限节点
仅有 2 个权限节点:
npa.noannounce - 跳过该玩家的加入/离开消息广播。
npa.admin - 拥有切换公告选项和更新玩家计数的能力。
使用统计(感谢 mcstats.org!)

捐赠
如果你想捐赠,我提供了一个链接。
谢谢你的支持,这让我充满动力! :D
NewPlayerAlert
What it does
It does a few related things in one compact package.
It:
- It alerts players to a new player who joined the server
- Replaces the join, quit and kick texts (makes them fully customizable from the config.yml)
- Has an option to disable some or any of the notices
- Provides an unique player count (as part of the new player alert and on command)
- Has an optional warp-to-spawn for new players (so your spawn can be exactly where you want it)
How it works
It's simple, there's 2 files. The plugin and the config.yml (which auto generates on run and updates).
It doesn't use a database, it only stores the player count in the config.yml along with the strings it displays and the options to disable the different alerts and new player warp-to-spawn feature.
The set up
- Copy to your plugins directory
- Restart (or reload, if you insist) to generate the config.
- Make any changes to the config
- Restart (or reload) if any changes were made
- In game, run the /pc update command to update the number of players that have joined the server
- Enjoy!
The commands
The main command is /playercount or /pc for short. All the commands below can be substituted with /pc
/playercount - Lists the number of players
/playercount update - Updates the number of players that have played (Useful on first setup)
/playercount reload - Reloads the config from disk (new in v0.3)
/playercount (t or toggle) (option) - Root command to toggle the below options.
- Option would be one of the following:
newplayer - Toggles the new player announcement
returning - Toggles the returning player announcement
quitting - Toggles the player quit announcement
kicked - Toggles the player quit announcement (new in v0.3)
The permissions
There are only 2 permission nodes:
npa.noannounce - Will skip announcing their join/quit messages.
npa.admin - Has the ability to toggle the announce options and update the player count.
Usage Stats (Thanks to mcstats.org!)

Donations
If you'd like to donate, I have a link for that.
Thanks for keeping me motivated! :D
评论 0
登录后参与评分
还没有评论,来抢沙发吧