该模组目前处于测试阶段!
本模组添加了认领和强制加载世界区块的功能,以及创建和管理玩家队伍的能力。它还赋予服务器管理员对玩家使用模组功能的强大控制权。
默认情况下,认领由单个玩家拥有,他们可以根据队伍关系或自定义玩家组设置保护例外。服务器管理员还可以启用由队伍拥有的认领,这将在下面的常见问题解答中解释。
模组的 API 允许其他模组或插件轻松与队伍和区块认领进行交互,无论是在服务器端还是客户端。模组已经与 Xaero's Minimap 和 World Map 模组集成。请确保将它们更新到最新版本。
模组的 API 允许实现玩家权限系统,供模组用于某些权限节点(例如基于等级的认领限制),Prometheus、FTB Ranks、LuckPerms 以及 Forge/Fabric 权限 API 均内置支持。它还允许实现队伍系统,供认领在默认队伍系统旁边或替代使用,Argonauts 和 FTB Teams 均内置支持。默认的队伍系统或认领可以在主配置文件中完全禁用。
命令(自 0.30.0 起):
/opac … - 玩家配置命令(服务器认领、荒野和过期的认领也有“玩家配置”)
/oclaims … - 所有与认领相关的内容
/oparties … - 所有与队伍相关的内容
/opm - 队伍聊天的快捷方式
键位绑定:
' - 打开主模组界面。可以在控制菜单中更改。
G - 打开队伍界面。可以在控制菜单中更改。
配置文件:
[world directory]/serverconfig/openpartiesandclaims-server.toml - 主配置文件的通常位置。编辑前请确保关闭服务器,否则服务器可能会覆盖您的所有更改。
[server directory]/config/openpartiesandclaims-server.toml - 有时是 Fabric/Quilt 上主配置文件的位置。
[world directory]/serverconfig/openpartiesandclaims-... - 一些全局“玩家配置”,尽管都可以通过游戏内的界面访问它们。
权限节点(自 0.33.0 起):
此模组查找的各种权限节点不仅仅是静态路径。它们可以在主配置文件中配置,例如选项 "maxPlayerClaimsPermission"。使用的权限系统(FTB Ranks、LuckPerms 等)可以通过主配置文件中的 "permissionSystem" 选项进行配置。
如果您或您使用的整合包未更改权限节点,则权限节点路径应为以下内容:
- "xaero.pac_max_player_groups" - 应覆盖主配置中默认 "maxPlayerGroups" 选项值的元值权限。
- "xaero.pac_player_group_space" - 应覆盖主配置中默认 "playerGroupSpace" 选项值的元值权限。
- "xaero.pac_max_claims" - 应覆盖主配置中默认 "maxPlayerClaims" 选项值的元值权限。
- "xaero.pac_max_forceloads" - 应覆盖主配置中默认 "maxPlayerClaimForceloads" 选项值的元值权限。
- "xaero.pac_max_claiming_anchors" - 应覆盖主配置中默认 "maxPlayerClaimingAnchors" 选项值的元值权限。
- "xaero.pac_claiming_anchor_range" - 应覆盖主配置中默认 "claimingAnchorRange" 选项值的元值权限。
- "xaero.pac_server_claims" - 赋予非 OP 玩家制作服务器认领并启用服务器认领模式的权限。
- "xaero.pac_claims_moderator_mode" - 赋予非 OP 玩家启用认领审核员模式以查看队伍拥有认领的玩家所有者的权限。
- "xaero.pac_claims_admin_mode" - 赋予非 OP 玩家启用认领管理员模式的权限,除了审核员模式的功能外,还使他们能够绕过大多数与认领相关的限制,例如保护、最大认领距离、无法认领区块。
- "xaero.pac_claims_impersonation" - 赋予非 OP 玩家在执行与认领相关的操作时冒充其他玩家的权限。
- "xaero.pac_claims_teleport" - 赋予非 OP 玩家传送到任何玩家认领的权限。
- "xaero.pac_parties_admin_mode" - 赋予非 OP 玩家启用队伍管理员模式以查看所有内置队伍系统的队伍聊天消息的权限。
- "xaero.pac_parties_impersonation" - 赋予非 OP 玩家在执行与队伍相关的命令时冒充其他玩家的权限。
- "xaero.pac_claiming_paused" - 暂停拥有此权限的玩家进行认领的权限。
- "xaero.pac_new_forceloads_paused" - 暂停拥有此权限的玩家标记新区块以强制加载的权限。
常见问题
1) 如何在服务器上配置模组?
模组主要通过位于 [world directory]/serverconfig/openpartiesandclaims-server.toml 的主配置文件进行配置,或者在 Fabric/Quilt 上有时位于 [server directory]/config/openpartiesandclaims-server.toml,而服务器未运行时。服务器认领、过期认领和荒野配置以及默认玩家配置可以由 OP 在游戏内通过界面编辑(检查您的键位绑定)。普通玩家可以使用相同的界面配置自己的玩家配置。如果客户端未安装模组,则可以使用玩家配置聊天命令。
2) 作为普通玩家,我该如何使用此模组?
大多数与领地(claims)相关的功能都可以通过游戏内界面访问(请检查你的按键绑定)。如果你安装了 Xaero's World Map 模组,你还可以通过右键点击地图或使用鼠标右键拖拽进行选择,在地图屏幕上查看和编辑你的领地。你也可以使用聊天命令来创建/编辑领地。目前,团队(Parties)只能通过聊天命令进行创建和管理。
3) 为什么我的玩家配置中某些选项呈灰色不可用?
服务器管理员/所有者可以通过主配置文件中的 playerConfigurablePlayerConfigOptions 选项,来配置玩家具体可以访问哪些选项。其余未在此列表中列出的选项将使用默认玩家配置中的值。
4) 如何禁用服务器上的所有保护功能?
在服务器领地、过期领地和荒野的配置文件中,以及默认玩家配置文件中,禁用主要的保护选项。接下来,在服务器未运行时编辑配置文件 [world directory]/serverconfig/openpartiesandclaims-server.toml。从 playerConfigurablePlayerConfigOptions 中移除主要选项 claims.protectClaimedChunks。
5) 如何为交互或破坏/攻击特定方块、实体/生物或使用物品添加领地保护例外?
模组预配置了一些全局例外,以及一些你可以在各个领地中切换的默认例外组。强制应用和按领地切换的例外都可以通过主配置文件 [world directory]/serverconfig/openpartiesandclaims-server.toml(有时位于 [server directory]/config)添加。必须确保在服务器未运行时编辑/替换该文件,以防止其在服务器重启时被覆盖。对于强制应用于每个领地的例外,你感兴趣的选项是 forcedBlockProtectionExceptionList, forcedEntityProtectionExceptionList, itemUseProtectionExceptionList。对于可切换的例外组(类似于默认的 Controls, Doors, Traders, Livestock),你感兴趣的选项是 blockProtectionOptionalExceptionGroups, entityProtectionOptionalExceptionGroups, itemUseProtectionOptionalExceptionGroups。你可以添加新组或编辑现有组。请仔细阅读选项上方的注释。它们包含至关重要的信息,篇幅过长无法在此全部列出。
6) 如何允许特定的实体/生物类型访问方块、实体或掉落的物品(例如让僵尸攻击村民)?
强制应用和按领地切换的例外都可以通过主配置文件 [world directory]/serverconfig/openpartiesandclaims-server.toml(有时位于 [server directory]/config)添加。必须确保在服务器未运行时编辑/替换该文件,以防止其在服务器重启时被覆盖。若要强制允许特定实体在所有领地中进行破坏,你感兴趣的选项是 entitiesAllowedToGrief, entitiesAllowedToGriefEntities, entitiesAllowedToGriefDroppedItems。对于按领地切换的访问组(类似于默认的 Villagers, Zombies, Piglins, Foxes),选项为 blockAccessEntityGroups, entityAccessEntityGroups, droppedItemAccessEntityGroups。对于“假玩家”(fake players),即那些绑定到特定方块位置并通常作为自动化机器一部分运行的实体,请查看 staticFakePlayers 选项。请仔细阅读选项上方的注释。它们包含至关重要的信息,篇幅过长无法在此全部列出。
7) 如何允许特定的投射物落在方块或实体上(例如让风弹击中方块或实体)?
当投射物落在受保护的已声明区块中时,首先发生的是非破坏性的常规交互检查,即使该投射物本应造成破坏。如果投射物的所有者是该区块拥有相关访问权限的玩家,或者投射物具有相关的例外(针对方块访问或实体访问),则该投射物被允许落地。上一个问题(即本题之上的一题)的答案解释了服务器所有者如何添加此类例外。你最可能希望在使用主配置文件 [world directory]/serverconfig/openpartiesandclaims-server.toml(有时位于 [server directory]/config)时为投射物创建例外组,使用其中的 blockAccessEntityGroups 和 entityAccessEntityGroups 选项。如果你这样做了,请确保也将为其创建的玩家配置选项添加到 playerConfigurablePlayerConfigOptions 列表中,以允许玩家对其进行配置。可以参考 Villagers 和 Zombies 组的处理方式。
8) 如何启用小队所有者的领地?
在主配置文件 [世界目录]/serverconfig/openpartiesandclaims-server.toml(有时位于 [服务器目录]/config)中将 _partyOwnedClaims_ 选项设置为 true,即可实现以下效果:如果一名技术上拥有领地的玩家同时也是主小队系统(主配置文件中选项 _primaryPartySystem_)中的小队所有者,那么他们的领地将被视为由小队本身所有。
- 这允许其他小队成员在拥有权限时(默认小队系统中至少为 CLAIMER 等级,FTB Teams 中为 Officer,Argonauts/Odyssey Allies 中除 TP_MEMBERS 外的任何成员权限),使用小队领地模式以小队名义进行占领。如果小队所有者的配置中启用了“全队可占领”(或受默认玩家配置强制执行),则小队中的每位玩家都可以以小队名义占领/取消占领领地。
- 这允许其他小队成员在拥有权限时编辑小队领地配置(小队所有者配置中与领地相关的选项)。权限要求为:默认小队系统中至少为 ADMIN 等级,FTB Teams 中仅限所有者,Argonauts/Odyssey Allies 中为 MANAGE_SETTINGS。
- 这允许其他小队成员管理小队领地配置中的自定义玩家组(权限要求为:默认小队系统中至少为 MODERATOR 等级,FTB Teams 中为 Officer,Argonauts/Odyssey Allies 中为 MANAGE_MEMBERS)。
- 这允许其他小队成员超越单纯管理玩家的权限,进一步编辑小队领地配置中的自定义玩家组(权限要求为:默认小队系统中为 ADMIN,FTB Teams 中仅限所有者,Argonauts/Odyssey Allies 中为 MANAGE_SETTINGS)。
- 如果所选的主小队系统支持小队颜色(例如 FTB Teams),则小队领地的默认颜色为小队颜色,而非小队所有者的随机颜色。
- 服务器所有者可以使用主配置文件中的以下选项来配置可用领地数量、强制加载区块数和占领锚点如何随小队规模和存在而缩放:claimBonusPerPartyMember、forceloadBonusPerPartyMember、claimingAnchorBonusPerPartyMember、claimBonusForPartyOwner、forceloadBonusForPartyOwner、claimingAnchorBonusForPartyOwner 和 memberCountForPartyOwnerBonus。请阅读这些选项上方的注释以获取详细说明。
9) 如何启用基于锚点的占领方式,以限制玩家可以拥有的独立占领区域数量?
在主配置文件 [世界目录]/serverconfig/openpartiesandclaims-server.toml(有时位于 [服务器目录]/config)中将 _anchorBasedClaiming_ 选项设置为 true,即可使玩家获得有限数量的占领锚点,他们可以在世界中放置这些锚点以占领周围的区块。每个维度都有独立的锚点数量上限。默认上限(适用于所有维度)可以通过 maxPlayerClaimingAnchors 选项进行修改。若要调整特定维度的上限,您可以在荒野配置(通过游戏内 UI 或聊天命令访问)中创建一个子配置,使用维度 ID 作为子配置 ID,并在该子配置中将 “+ Claiming Anchors” 选项设置为一个数字。单个玩家在他们的玩家配置中也拥有相同的选项。占领锚点的有效范围可以通过相同的方式配置:在主配置文件中设置 claimingAnchorRange 选项,以及在荒野配置和/或玩家配置中设置 “+ Cl. Anchor Range”。
默认的占领锚点上限和默认的占领锚点范围都可以通过使用选项 maxPlayerClaimingAnchorsPermission 和 claimingAnchorRangePermission 配置的权限节点进行覆盖。默认的权限节点分别为 xaero.pac_max_claiming_anchors 和 xaero.pac_claiming_anchor_range。
支持的模组:
许多(通常较小的)模组应能通过已占领区块的保护功能自动获得支持。一些模组对其添加到游戏中或修改的机制进行了大量扩展,在这种情况下,区块保护不能得到保证,需要手动添加到此模组或额外的模组中。欢迎在 问题追踪器 上留下您希望获得支持的模组的建议。请务必通过测试确保它们尚未被支持,并提供一个使用该模组可以实现的区块破坏示例。
明确支持的模组:
- (自 b0.8.0 起)Create - 内置于 Forge 版本中,但在 b0.25.1 之前,当在 Fabric/Quilt 上使用时需要 扩展模块
The mod is currently in Beta!
This mod adds the ability to claim and to forceload world chunks, as well as create and manage player parties. It also gives server owners powerful controls over their players' usage of the mod's features.
By default, claims are owned by individual players who are able to make protection exceptions based on party relations or custom player groups. Server owners can also turn on party-owned claims which is explained in the FAQ below.
The mod's API allows other mods or plugins to easily interact with the parties and the chunk claims, both on the server and the client side. The mod already integrates with Xaero's Minimap and World Map mods. Make sure to update them to the latest versions.
The API of the mod allows the implementation of player permission systems to be used by the mod for some permission nodes (e.g. for having rank-based claim limits), with Prometheus, FTB Ranks, LuckPerms and the Forge/Fabric permission APIs having built-in support. It also allows the implementation of party systems to be used by claims alongside or instead of the default party system, with Argonauts and FTB Teams having built-in support. The default party system or claims can be disabled completely in the main config file.
Commands (since 0.30.0):
/opac … - player config commands (server claims, wilderness and expired claims also have a "player config")
/oclaims … - everything claim-related
/oparties … - everything party-related
/opm - shortcut for the party chat
Key Bindings:
' - open the main mod UI. Can be changed in the controls menu.
G - open the party UI. Can be changed in the controls menu.
Configs:
[world directory]/serverconfig/openpartiesandclaims-server.toml - the usual location of the main config file. Make sure to shut down the server before editing it, or the server might overwrite all your changes.
[server directory]/config/openpartiesandclaims-server.toml - sometimes the location of the main config file on Fabric/Quilt.
[world directory]/serverconfig/openpartiesandclaims-... - some global "player configs", although all of them can be accessed in game through the UI
Permission Nodes (since 0.33.0):
The permission nodes that this mod looks up for various reasons are not just static paths. They can be configured in the main config file, e.g. option "maxPlayerClaimsPermission". The used permission system (FTB Ranks, LuckPerms etc) can be configured with the "permissionSystem" option in the main config file.
If you or the modpack you are using have not changed the permission nodes, then the permission node paths should be the following:
- "xaero.pac_max_player_groups" - The meta value permission that should override the default "maxPlayerGroups" option value in the main config.
- "xaero.pac_player_group_space" - The meta value permission that should override the default "playerGroupSpace" option value in the main config.
- "xaero.pac_max_claims" - The meta value permission that should override the default "maxPlayerClaims" option value in the main config.
- "xaero.pac_max_forceloads" - The meta value permission that should override the default "maxPlayerClaimForceloads" option value in the main config.
- "xaero.pac_max_claiming_anchors" - The meta value permission that should override the default "maxPlayerClaimingAnchors" option value in the main config.
- "xaero.pac_claiming_anchor_range" - The meta value permission that should override the default "claimingAnchorRange" option value in the main config.
- "xaero.pac_server_claims" - The permission that gives non-OP players the ability to make server claims and enable server claim mode.
- "xaero.pac_claims_moderator_mode" - The permission that gives non-OP players the ability to enable claim moderator mode which enables them to see player owners of party-owned claims.
- "xaero.pac_claims_admin_mode" - The permission that gives non-OP players the ability to enable claim admin mode which, in addition to moderator mode features, gives them the ability to circumvent the vast majority of claim-related limitations, e.g. protection, max claiming distance, inability to claim a chunk.
- "xaero.pac_claims_impersonation" - The permission that gives non-OP players the ability to impersonate other players when performing claim-related actions.
- "xaero.pac_claims_teleport" - The permission that gives non-OP players the ability to teleport to any player's claims.
- "xaero.pac_parties_admin_mode" - The permission that gives non-OP players the ability to enable parties admin mode which lets them see party chat messages for all built-in party system parties.
- "xaero.pac_parties_impersonation" - The permission that gives non-OP players the ability to impersonate other players when performing party-related commands.
- "xaero.pac_claiming_paused" - The permission that pauses claiming for the player who has it.
- "xaero.pac_new_forceloads_paused" - The permission that pauses the ability to mark new chunks for forceloading for the player who has it.
FAQ
1) How do I configure the mod on my server?
The mod is mainly configured through the main config file at [world directory]/serverconfig/openpartiesandclaims-server.toml, or sometimes [server directory]/config/openpartiesandclaims-server.toml on Fabric/Quilt, while the server isn't running. Server claim, expired claim and wilderness configs, as well as the default player config, can be edited by OPs in-game with the UI (check your key bindings). Normal players can configure their own player config with the same UI. If the mod isn't installed on the client side, then you can use the player config chat commands instead.
2) How do I use this mod as a regular player?
Most things related to claims can be accessed with the in-game UI (check your key bindings). If you have the Xaero's World Map mod installed, you can view and edit your claims on the map screen as well, by right-clicking on the map or dragging with the right mouse button to make a selection. You can also use chat commands to make/edit claims. Parties can only be created and managed through chat commands at the moment.
3) Why are some options greyed out in my player config?
The server admin/owner can configure with the main config file option playerConfigurablePlayerConfigOptions which specific options players have access to. Everything else uses the value in the default player config.
4) How do I disable all protection on my server?
In the server claim, expired claim and wilderness configs, as well as the default player config, disable the main protection option. Next, edit the config file [world directory]/serverconfig/openpartiesandclaims-server.toml, while the server isn't running. Remove the main option claims.protectClaimedChunks from playerConfigurablePlayerConfigOptions.
5) How do I add claim protection exceptions for interaction or breaking/attacking of specific blocks, entities/mobs or using items?
The mod comes with some global exceptions preconfigured, as well as some default exception groups you can toggle in individual claims. Both forced and per-claim toggleable exceptions can be added through the main config file [world directory]/serverconfig/openpartiesandclaims-server.toml (sometimes in [server directory]/config). The file must be edited/replaced while the server isn't running to ensure that it is not overwritten on server restart. For exceptions forced on every claim, the options you are interested in are forcedBlockProtectionExceptionList, forcedEntityProtectionExceptionList, itemUseProtectionExceptionList. For toggleable exception groups, similar to the default ones (Controls, Doors, Traders, Livestock), the options you are interested in are blockProtectionOptionalExceptionGroups, entityProtectionOptionalExceptionGroups, itemUseProtectionOptionalExceptionGroups. You can add new groups or edit existing ones. Please carefully read the comments above the options. They have crucial information that would take too much space to put here.
6) How do I give specific entity/mob types access to blocks, entities or dropped items (e.g. letting zombies attack villagers)?
Both forced and per-claim toggleable exceptions can be added through the main config file [world directory]/serverconfig/openpartiesandclaims-server.toml (sometimes in [server directory]/config). The file must be edited/replaced while the server isn't running to ensure that it is not overwritten on server restart. To force access by specific entities on all claims, the options you are interested in are entitiesAllowedToGrief, entitiesAllowedToGriefEntities, entitiesAllowedToGriefDroppedItems. For access groups toggleable per claim, similar to the default ones (Villagers, Zombies, Piglins, Foxes), the options are blockAccessEntityGroups, entityAccessEntityGroups, droppedItemAccessEntityGroups. For "fake players" that operate from specific block positions they are tied to, usually as part of automation machines, check out the staticFakePlayers option. Please carefully read the comments above the options. They have crucial information that would take too much space to put here.
7) How do I allow specific projectiles to land on blocks or entities (e.g. letting wind charges hit blocks or entities)?
When a projectile lands in a protected claimed chunk, the first thing that happens is a non-break regular interaction check, even if the projectile is supposed to break something. The projectile is allowed to land if the projectile is owned by a player who has relevant access to the chunk or if the projectile has a relevant exception, either for block access or for entity access. The answer to the previous question (above this one) explains how the server owner can add such exceptions. You most likely want to use the blockAccessEntityGroups and entityAccessEntityGroups options in the main config file [world directory]/serverconfig/openpartiesandclaims-server.toml (sometimes in [server directory]/config) to create exception groups for the projectile. If you do that, make sure you add the player config options created for them to the playerConfigurablePlayerConfigOptions list as well to allow players to configure them. Look at how it's done for the Villagers and the Zombies groups as a reference.
8) How do I enable party-owned claims?
Setting the partyOwnedClaims option in the main config file [world directory]/serverconfig/openpartiesandclaims-server.toml (sometimes in [server directory]/config) to true makes it so if a player who technically owns the claims is also the owner of a party from the primary party system (option primaryPartySystem in the main config file), then their claims are effectively treated as if they are owned by the party itself.
- This enables other party members to use party-claim-mode to claim as the party if they have permission (at least rank CLAIMER in the default party system, Officer in FTB Teams, any member permission other than TP_MEMBERS in Argonauts/Odyssey Allies). If "Whole Party Can Claim" is enabled in the party owner's config (or enforced by the default player config), then every player in the party can claim/unclaim as the party.
- This enables other party members to edit the party claim config (claim-related options in the party owner's config) if they have permission (at least rank ADMIN in the default party system, only the owner in FTB Teams, MANAGE_SETTINGS in Argonauts/Odyssey Allies).
- This enables other party members to manage players in the party claim config's custom player groups (at least rank MODERATOR in the default party system, Officer in FTB Teams, MANAGE_MEMBERS in Argonauts/Odyssey Allies).
- This enables other party members to edit party claim config's custom player groups beyond managing players (ADMIN in the default party system, only the owner in FTB Teams, MANAGE_SETTINGS in Argonauts/Odyssey Allies).
- If the chosen primary party system supports party colors (e.g. FTB Teams), then the default color of the party's claims is the party color, not the random color of the party owner.
- The server owner can configure how available claims, forceloads and claiming anchors scale with party size and existence using options claimBonusPerPartyMember, forceloadBonusPerPartyMember, claimingAnchorBonusPerPartyMember, claimBonusForPartyOwner, forceloadBonusForPartyOwner, claimingAnchorBonusForPartyOwner and memberCountForPartyOwnerBonus in the main config file. Please read the comments above these options for a detailed explanation.
9) How do I enable anchor-based claiming to limit how many separate claimed areas players can have?
Setting the anchorBasedClaiming option in the main config file [world directory]/serverconfig/openpartiesandclaims-server.toml (sometimes in [server directory]/config) to true makes it so players get a limited number of claiming anchors they can place in the world to be able to claim chunks around them. Each dimension has a separate anchor limit. The default limit (for every dimension) can be changed with the maxPlayerClaimingAnchors option. To adjust the limit for a specific dimension, you can create a sub-config in the wilderness config (accessed in game using the UI or chat commands), using the dimension ID as the sub-config ID and setting the "+ Claiming Anchors" option in that sub-config to a number. Individual players also have the same option in their player configs. The effective range of claiming anchors can be configured the same way using the claimingAnchorRange option in the main config file and the "+ Cl. Anchor Range" in the wilderness and/or player configs.
Both the default claiming anchor limit and the default claiming anchor range can be overridden using the permission nodes configured with the options maxPlayerClaimingAnchorsPermission and claimingAnchorRangePermission. The default nodes are xaero.pac_max_claiming_anchors and xaero.pac_claiming_anchor_range.
Supported Mods:
A lot of (usually smaller) mods should be supported by the claimed chunk protection automatically. Some mods go above and beyond with the mechanics they add to the game or modify, in which case chunk protection is not guaranteed and should be manually added, either to this mod or with an additional one. Feel free to leave suggestions on the issue tracker for the mods that you'd like to be supported. Please make sure that they are not already by testing it and provide an example of chunk griefing one can achieve with the mod.
Explicitly supported mods:
- (Since b0.8.0) Create - built into the Forge version, but before b0.25.1 requires an extension when used on Fabric/Quilt
评论 0
登录后参与评分
还没有评论,来抢沙发吧