Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

1.18 new permission system


Maxx_Qc
 Share

Recommended Posts

PermissionType is the value of your permission, use one of the predefined ones in PermissionTypes. The PermissionResolver is for providing the default value of your node.

The PermissionDynamicContextKey can provide additional info for a permission query. 

I would advise you check out the excellent JavaDocs on this API.

  • Like 1
Link to comment
Share on other sites

5 hours ago, diesieben07 said:

PermissionType is the value of your permission, use one of the predefined ones in PermissionTypes. The PermissionResolver is for providing the default value of your node.

The PermissionDynamicContextKey can provide additional info for a permission query. 

I would advise you check out the excellent JavaDocs on this API.

Thank you for the quick answer. I did look into the JavaDocs but it doesn't tell me what genre value needs to replace the <T> nor how to use the PermissionResolver. This is what I have so far.
ErZJDB2_R_S8IbogcDmq4A.png

I would like only op players to have this permission by default, and everyone else does not have it.

If you could help me again I would really appreciate it, I was trying to find examples or tutorial about this but couldn't find anything..

Thanks

Link to comment
Share on other sites

9 minutes ago, Maxx_Qc said:

I would like only op players to have this permission by default, and everyone else does not have it.

That's what the defaultResolver is for. The code you have posted shows invalid Java syntax. Please read up on the basics: How to implement an interface, generics and (auto-)boxing.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.