Jump to content

Custom permission skill issues

Closed 1.4.12

VENIQQ
VENIQQ

Posted

Hey,

When I added the custom permission skill - Backpacks, same as in your video, I encountered several issues:

1) When I just add the skill instead of the "Extra Pockets" it doesn't remove extra pockets but shows the new skill alongside. How to get rid of extra pockets completely (or any other skill in the future)? I don't have that in my config file at all...

2) How to format the field "Permissions required to show this node" ? If I just use string "vip" or "skilltree.vip" it doesn't show up. If Use other plugin permissions it doesn't show up either. I have those permissions, but whenever value is set to something other than NULL the skill just disappears from the tree.

In general, I just want to have 2 tiers for my skill - standard backpacks & vip backpacks. Users with VIP won't have permission to see standard skill and all other users won't see vip skill (that gives more slots).

Would be great if you could help to clarify those 2 questions above.

Adding config file as well. Backpacks are under "Harvesting" tree.

Thanks.

SkillTree.json

VENIQQ

Posted (edited)

Ok, question 1 is solved. I can just change enabled: true to false and this did the trick. Since it seems I can't remove it from JSON, it keeps appearing there from somewhere else.

 

Edited by VENIQQ
VENIQQ

Posted

Please add me to the support group on Discord as well 😄 Thanks!

VENIQQ

Posted

Ok, please disregard and close the ticket, managed to solve everything eventually.

  • Created additional permission in .json file - skilltree.standard
  • Added that as a condition for the node - and it showed up.
  • Once permission removed node also disappeared, as expected.
  • Previously tried to use permissions from external plugins, which didn't work.

Thanks

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.