### 玩家增强
允许您更改加入/离开或玩家聊天消息(也允许在玩家离开或加入时运行命令列表)
### 使用方法:
如果您尚未更改 config.yml(Root/plugins/Playerenhancments/confg.yml)
加入/离开文本将显示为:玩家加入了/离开了游戏/现在游戏中有 {playercount}/{maxplayers} 人!
在加入/离开文本或命令中,您可以使用以下内容进行自定义:
- {user} 玩家的用户名
- {playercount} 游戏中玩家的数量
- {maxplayers}
在玩家消息文本中:
- {user} 玩家的用户名
- {message} 发送的文本消息
### 配置文件自定义:
```
joinText: '§e{user} joined the game, There are now {playercount}/{maxplayers} players in the server!' < 玩家加入时的文本
messageText: '<{user}> {message}' < 玩家发送消息时的文本
leaveText: '§e{user} left the game, There are now {playercount}/{maxplayers} players in the server!' < 玩家离开时的文本
joinCommands: < 玩家加入时的命令(必须以 ' 开头和结尾。例如:'say WELCOME')
- ''
leaveCommands: < 玩家离开时的命令(必须以 ' 开头和结尾。例如:'say WELCOME')
- ''
```
### 默认 Config.yml:
```
joinText: '§e{user} joined the game, There are now {playercount}/{maxplayers} players in the server!'
messageText: '<{user}> {message}'
leaveText: '§e{user} left the game, There are now {playercount}/{maxplayers} players in the server!'
joinCommands:
- ''
leaveCommands:
- ''
```