功能说明
当玩家进入或离开当前所在的维度时,此插件会向玩家发送通知。该通知仅在当前特定维度内生效。同时,还会在玩家加入的维度中广播服务器加入消息。离开消息同理。此外,还提供选项以广播首次进入某个维度/服务器的消息。所有消息均可完全自定义,并且支持将加入/离开消息设置为全局广播。
配置文件
默认情况下,配置文件内容如下:
#对于这些消息,您还可以使用 {WORLD} 来获取加入或离开的维度名称,WORLD2 仅支持全局消息
join-message: "&9%PLAYER% joined this world!"
leave-message: "&9%PLAYER% left this world!"
first-join-message: "&9%PLAYER% joined this world for the first time!"
join-server-message: "&9%PLAYER% joined the game!"
leave-server-message: "&9%PLAYER% left the game!"
first-server-join-message: "&9%PLAYER% joined the server for the first time!"
global-message: "&9%PLAYER% joined %WORLD%, leaving %WORLD2%!"
global-first-join-message: "&9%PLAYER% joined %WORLD% for the first time!"
global-first-join-server-message: "&9Welcome %PLAYER% to the server!"
#如果您不知道此项的作用,请保留默认值
broadcast-globally: false
error-broadcast: true
first-join-server-message: true
first-join-world-message: true
#维度分组将使针对玩家维度加入的消息(包括
#首次加入消息)在 world_nether 和 world_the_end 中广播。
#如果启用了维度分组,玩家加入消息将广播给 world、world_nether 和 world_the_end 中的所有玩家,
#其中 'world' 自然是维度的名称。
#如果未启用维度分组,则使用旧行为。
world-grouping: true
#在末地/主世界、下界/主世界之间移动时将抑制加入/离开消息
world-grouping-suppress-nether-end: true
这些值的含义均一目了然。
维度分组
自版本 1.2.0 起,该插件还包含名为“维度分组”的功能。此功能会将某些维度进行分组,这意味着 world、world_nether 和 world_the_end 将被归为一组。如果启用了维度分组且禁用了全局消息,那么维度/服务器加入及离开消息以及首次加入消息将在已分组的维度中进行广播。
命令
该插件目前仅有一个命令:/pwwtoggle。此命令用于切换插件功能的开关状态。这意味着所有类型的消息都将被禁用。当功能重新开启时,配置文件将被再次加载。
权限
该插件拥有两个权限:
- perworldwelcome.receiveerrors:此权限允许被授权的玩家在加载过程中收到错误提示。这将在该玩家加入时触发。
- perworldwelcome.toggle:此权限允许被授权的玩家根据命令参考所述,开启或关闭插件的功能。
开发计划
我们目前正在进一步扩展此插件的功能,使其更加“局部化”。这将包括限制死亡消息仅在单个维度内生效的功能。对于遵循原版行为在所有维度广播的所有消息,同样适用此规则。
其他
有关各版本的更新日志,请参阅 changelog。
您可以在 github 上找到源代码。
What does it do?
This plugin will inform players when a player joins or leaves the world they are currently in. This will only happen in that specific world. A server join message will also be broadcast, only in the world where the player joins. The same applies for leave messages. There is also an option to broadcast a first world/server join message. The messages are fully customizable, there is also an option to make the join/leave messages be broadcasted globally.
Config
The configuration file will by default look like this:
#For these messages you can also use {WORLD} to get the name of the joined or left world, WORLD2 is only supported for global messages
join-message: "&9%PLAYER% joined this world!"
leave-message: "&9%PLAYER% left this world!"
first-join-message: "&9%PLAYER% joined this world for the first time!"
join-server-message: "&9%PLAYER% joined the game!"
leave-server-message: "&9%PLAYER% left the game!"
first-server-join-message: "&9%PLAYER% joined the server for the first time!"
global-message: "&9%PLAYER% joined %WORLD%, leaving %WORLD2%!"
global-first-join-message: "&9%PLAYER% joined %WORLD% for the first time!"
global-first-join-server-message: "&9Welcome %PLAYER% to the server!"
#If you don't know what this does leave the defaults
broadcast-globally: false
error-broadcast: true
first-join-server-message: true
first-join-world-message: true
#World grouping will make that messages for player world joins (so also
# first join messages) will be broadcasted in world_nether and world_the_end.
# If world grouping is enabled, player join messages will be broadcasted to all players in world, world_nether and world_the_end,
# where 'world' is of course the name of the world.
# If world grouping is not enabled, old behaviour will be used.
world-grouping: true
#Will suppress join/messages when moving between nether/overworld, end/overworld, vice verse
world-grouping-suppress-nether-end: true
These values are all self explanatory.
World grouping
Since version 1.2.0 the plugin also contains a feature called world grouping. This feature will group certain world together, so that means that world, world_nether and world_the_end are grouped together. If world grouping is enabled and global messages are disabled. Join/Leave world/server and first join messages will be broadcasted in the worlds that are grouped together.
Commands
The plugin currently only has one command: /pwwtoggle. This command will toggle the functionality of the plugin. This means that all sorts of messages will be disabled. When the functionality is turned on again, the config files will be loaded again.
Permissions
This plugin has two permissions:
- perworldwelcome.receiveerrors: This permission will inform the permitted players about errors when loading. This will happen when this player joins.
- perworldwelcome.toggle: This permission will allow the permitted player to toggle the functionality of the plugin on or off, as described in the command reference.
What's in the works?
We are currently working on expanding the functionality of this plugin even further, which will include making everything less 'global'. This will include functionality to limit death messages to only one world. The same goes for all messages that are broadcasted server wide according to vanilla behaviour.
Other
For the changes in each version, take a look at the changelog.
You can find the source on github.
评论 0
登录后参与评分
还没有评论,来抢沙发吧