Jump to content

Recommended Posts

Posted

Hi guys, im pretty stumped with this at the moment- hoping some one will shed some light on it :P

I can get modifyworld to work one way but not the other (And I am not sitting here entering all the ID's for the longer working way haha)

Here is the restricted modify world version of my permissions:

groups:

  Member:

    default: true

    permissions:

    - modifyworld.*

    - -modifyworld.items.have.(x27556:71)

    - -modifyworld.items.drop.(x27556:71)

    - -modifyworld.items.pickup.(x27556:71)

    - mbr.mbce

    - mbr.fortune

    - mbr.mb

    options:

      rank: '1000'


 

(ps. I have also tried it with modifyworld.* under the removed permissions in theory of loading in an order, this also did nothing...)

 

With this the item (Catalytic Lens) modifyworld does absolutely nothing.. played for ages and couldn't see what the issue is. I eventually turned on PermissionsEX debug mode and find this:

 


17.08 12:43:01 [server] INFO User Rection checked for "modifyworld.items.drop.x27556:71", "modifyworld.*" found


 

So my brain ticks over a bit more and to test a theory, I change my permissions to this:

 


groups:

  Member:

    default: true

    permissions:

    - modifyworld.items.have.(x27556:71)

    - modifyworld.items.drop.(x27556:71)

    - modifyworld.items.pickup.(x27556:71)

    - mbr.mbce

    - mbr.fortune

    - mbr.mb

    options:

      rank: '1000'


 

Now I can keep the item thus meaning that the permission nodes are working and in the console from PermissionsEX I see this, confirming its working:

 


[server] INFO User Rection checked for "modifyworld.items.pickup.x27556:71", "modifyworld.items.pickup.(x27556:71)" found

[server] INFO User Rection checked for "modifyworld.items.drop.x27556:71", "modifyworld.items.drop.(x27556:71)" found 

Why on earth does it work when I do not have "modifyworld.*" but when I add it, it stops working?!

/megaconfused

Any help would be greatly appreciated :)

Posted

Not sure why you are using metadata with the ID for catalytic lens, when I open up my tekkit and use NEI to check the item ID, it only shows 27556 for the catalytic lens (no metadata).

Try this:

groups:

  Member:

    default: true

    permissions:

    - -modifyworld.items.(have|drop|pickup).(27556.?*)

    - mbr.mbce

    - mbr.fortune

    - mbr.mb

    - modifyworld.*

    options:

      rank: '1000'

[ modifyworld.* ] must go AFTER all other modifyworld nodes, if you put it at the top it will check, see the [ .* ] node, and stop checking for restrictions.

If you don't have [ modifyworld.* ] anywhere in your group, you won't be able to interact with anything else in game except for the items/blocks you have given permission for.

Also, don't use the "x" anymore, they removed this necessity in one of the more recent versions of permissionsex.

Posted

Just one more quick question actually. I can't seem to get the second number to work on there now :/

as an example... lets say i dont want to stop people having 214 which is a world anchor but i want to stop them having a block of steel which is 214:2 - how would I type that into it now because im not entirely sure how its working now you have typed that with ?* after it :P

ps. Catalytic lens has meta data due to its charge status i think, when i dont use the meta data it doesn't remove them :<

Posted

If you want to block ONLY 214:2 then just use (214:2). That will only stop the block of steel and not anything else with a 214 id.

As well, if you use just (214) that will block only the world anchor and nothing else with 214 id.

Sorry I should have explained the < .?* >

The < .?* > is good to use if there is only 1 item/block that has that ID OR you want to block every item and every possible metadata with that ID.

Example time!

Your example above with the catalytic lense -- If you wanted to make sure you blocked every possible metadata of 27556 then you use 27556.?* Nothing will sneak by that has weird metadata or changing metadata such as uncharged catalytic lense vs. charged catalytic lense.

It's probably explained better here:

https://github.com/PEXPlugins/PermissionsEx/wiki/Modifyworld#wiki-metadata_notes

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

×
×
  • Create New...