Open Parties and Claims

Open Parties and Claims

25M Downloads

[Question] How do I add to `playerConfigurablePlayerConfigOptions` for `anything$` prefixed options?

KiwiFlavoredApollo opened this issue · 7 comments

commented

Hello, I'd like to add "anything$Cobblemons{cobblemon:pokemon}" to entityProtectionOptionalExceptionGroups like the following:

entityProtectionOptionalExceptionGroups = [
  "Traders{minecraft:villager, minecraft:wandering_trader}", 
  "hand$Item_Frames{minecraft:item_frame}", 
  "anything$Cobblemons{cobblemon:pokemon}"
]

Additionally I'd like to add to playerConfigurablePlayerConfigOptions but I am not sure how I can do it.

Looking at "hand$Item_Frames{minecraft:item_frame}" and the corresponding "claims.protection.exceptionGroups.entity.handInteract.Item_Frames", should I use anythingInteract identifier which result in like this?

playerConfigurablePlayerConfigOptions = [
  "claims.protection.exceptionGroups.entity.interact.Traders", 
  "claims.protection.exceptionGroups.entity.handInteract.Item_Frames",
  "claims.protection.exceptionGroups.entity.anythingInteract.Cobblemons"
]
commented

It would be "anyItemInteract". You can see the exact paths of the new player config options being added when adding new exception groups by checking the default player config file after you start the server with the new configuration. This is explained in the comment for entityProtectionOptionalExceptionGroups.

commented
commented

I think you're misunderstanding what playerConfigurablePlayerConfigOptions does if "anythingInteract" supposedly worked.

commented

OPAC version I am currently using is 0.22.0. I still don't understand why but I get configurable options like following:

1. Without prefix

2024-08-25_19 24 22

entityProtectionOptionalExceptionGroups = [
  "Cobblemons{cobblemon:pokemon}"
]

playerConfigurablePlayerConfigOptions = [
  "claims.protection.exceptionGroups.entity.interact.Cobblemons"
]

2. anything prefix and anyItemInteract

2024-08-25_19 32 49

entityProtectionOptionalExceptionGroups = [
  "anything$Cobblemons{cobblemon:pokemon}"
]

playerConfigurablePlayerConfigOptions = [
  "claims.protection.exceptionGroups.entity.anyItemInteract.Cobblemons"
]

3. anything prefix and anythingInteract

2024-08-25_19 37 19

entityProtectionOptionalExceptionGroups = [
  "anything$Cobblemons{cobblemon:pokemon}"
]

playerConfigurablePlayerConfigOptions = [
  "claims.protection.exceptionGroups.entity.anythingInteract.Cobblemons"
]

EDIT: Maybe configuration option appears like above when using anythingInteract but the entity itself isn't put into exception.

commented

playerConfigurablePlayerConfigOptions does not affect the server claims config. This means I was right that you're misunderstanding what it does.

commented

Now I understand what you mean. Sorry if I bothered you. Thank you for the help!

commented

No problem!