Presence 是一款基于时间的领地插件。玩家在某个区块停留的时间越长,该区块中的得分就越高。拥有最高分数的玩家即为该区块的所有者。
目前该插件仅在小规模服务器上进行过测试,如果存在潜在问题,我可能并不知情。如果您遇到任何问题,请务必报告!
功能:
- 领地群组(Claim groups),本质上是由用户定义的大型领地,拥有独立的权限设置。
- 针对每项操作的独立权限。例如,领地所有者可以允许任何玩家收割农作物,同时禁止放置方块。所有者甚至可以在需要时阻止自己执行某些操作。
- 通过
/claims map 命令查看领地的文本地图。
- 一个极简的计分板,用于追踪最重要玩家的得分。可通过
/claims togglesb 切换显示状态。
- 聊天消息可根据玩家的语言环境进行更改,默认实现的语言包括德语和英语。
- 在玩家拥有的领地内允许飞行。
- 当玩家对某个区块进行“计时”(即增加分数)时,附近的其他区块也有几率被计时(概率可配置)。
- 支持 Placeholder API。
- 交互式文本用户界面。
- 当玩家进入其他玩家的领地时,会收到通知。
API:
API 在并发环境中主要安全且具备原子性,因此即使在其他线程上频繁调用 API,也只会产生轻微的性能影响,且发生竞态条件的可能性极小。
该 API 作为 Maven 构件免费公开,坐标为 de.geolykt:presence:1.0.0,位于 https://geolykt.de/maven/ 仓库中。
依赖项:
- Paper 1.18.1 或更高版本,Spigot 不兼容
- Java 16 或更高版本
占位符文档:
无需安装 Placeholder API 扩展即可使用占位符,也不强制要求安装 PAPI 插件以使本插件正常运行,但使用它可能会带来一些便利。所有占位符都需要知道玩家的范围信息,因此它们并非在所有情况下都可用。
-
%presence_claimowner%
获取玩家当前所在区块的所有者名称,如果不适用则返回 "none"
-
%presence_ownerpresence%
获取玩家当前所在区块所有者的停留时间分数,如果不适用则返回 "0"
-
%presence_claimsuccessor%
获取玩家当前所在区块的下一任领导者的名称,如果不适用则返回 "none"
-
%presence_successorpresence%
获取玩家当前所在区块下一任领导者的停留时间分数,如果不适用则返回 "0"
-
%presence_playerpresence%
获取玩家在当前所在区块的停留时间分数
quirks(或:为何不要使用此插件):
- 无法防止熔岩和水流的蔓延
- 任何人都可以在任何地方建立领地(旁观者模式除外,在此模式下无法建立领地)
- 对此插件而言,所有人都是平等的——即使是管理员也不例外。
- 此插件鼓励挂机(AFK),这既可能是福利,也可能是诅咒
Presence is a time based claiming plugin. The longer a player is in a chunk - the higher their score in that chunk. The player with the highest score in a chunk owns the chunk.
Right now the plugin is only tested on a very small server, if there are issues I might not be aware of them. Please report those if you encounter them!
Features:
- Claim groups, which is basically a user-defined mega-claim with it's own permissions.
- Per-action permission. The owner of a claim can for example allow any player to harvest crops while denying to place blocks. The owner can even prevent themselves from doing actions if they please to
- A text-based map of claims visible via /claims map
- A minimal scoreboard tracking the scores of the most important players on a scoreboard. Can be toggled via /claims togglesb
- Chat messages can be changed dependent on the player's locale, default-implemented languages are german and english
- Flight in claims owned by the player
- When a chunk is ticked by a player (i.e. the score is increased), there is a chance that another nearby chunk is ticked too (chance is configurable).
- Placeholder API support
- Interactive Text UI
- When moving to another player's claim, the user is notified
API:
The API is mostly safe in concurrent environments and atomic, so spamming the API on another thread is only going to yield minor performance impacts while having minimal chances of race conditions.
The API is freely available as a maven artifact under de.geolykt:presence:1.0.0 at the https://geolykt.de/maven/-repository
Dependencies:
- Paper 1.18.1 or above, Spigot will not work
- Java 16 or above
Placeholder documentation:
No Placeholder API exapnsion is required for placeholders and PAPI needn't be installed in order for this plugin to work, though using it might be benificial. All placeholders require the player scope to be known, so they may not always be usable.
-
%presence_claimowner%
Obtains the name of the owner of the chunk the player is currently standing on, returns "none" if not applicable
-
%presence_ownerpresence%
Obtains the presence of the owner of the chunk the player is currently standing on, returns "0" if not applicable
-
%presence_claimsuccessor%
Obtains the name of the follow-up leader of the chunk the player is currently standing on, returns "none" if not applicable
-
%presence_successorpresence%
Obtains the presence of the follow-up leader of the chunk the player is currently standing on, returns "0" if not applicable
-
%presence_playerpresence%
Obtains the presence the player has on the chunk it is standing on
Quirks (or: why to not use this plugin):
- No protection against lava & water flow
- Everyone is able to claim everywhere (except if you are in spectator mode, in that case you are not claiming)
- To this plugin, everyone is equal - even the operators.
- This plugin encourages going afk, it could be as much of a curse as it is a blessing however
评论 0
登录后参与评分
还没有评论,来抢沙发吧