-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Item does not appear with expected permission #162
Comments
Somethings not right here, can I see the config.yml of ItemJoin? |
|
The issue may be related to permissions. Please clarify the permissions needed to acquire these items. I have a permissions tracker, so I can verify that I have the needed nodes. |
Are you using a multi inventory plugin / or clearing items upon switching worlds / or are you simply using one single inventory unmodified? |
Multiverse-Inventories. |
It seems like it might be a permission issue, using your setup it works fine with me being OP. The permission nodes you used for the items such as; deluxemenus.open |
Same result with permission itemjoin.world_lobby.* inherited from the default group. Same result with permission itemjoin.world_lobby.* applied directly to the player. If I give permission itemjoin.*, I get the slot-8 item. So some other permission. I'll try to isolate it. Hint? |
I started messing around with this using multiverse-inv & PEX and it wasn't working if deluxemenu's was installed and ItemJoin was using that perm node, so I set it to ; then it ended up working if I was to use ; What permissions plugin are you using? |
LuckPerms. Here is the itemjoin tree.
I'll just wade through the tree until I identify the correct node. |
This one works: itemjoin.craftworld{name=world_lobby}.* Remember I mentioned it the other day? |
interessttting... hmmm... Yeah I had gone off the idea that you were using LuckPerms via ItemJoin's discussion. However, custom permission nodes set to the item do seem to be working. Try adding this to your items; EDIT: Confirmed working for me with LuckPerms and using that permission node on every single item. You can also define two different permission nodes and it will work (with separate nodes) srry its late lol. |
What is changeworld.item ? I don't see that in the permissions tree. |
changeworld.item is a custom permission node. The idea of the permission-node option for the item is to create your own, unique permission. You could set it to ILoveCupCakes and if the player has the permission ILoveCupCakes then the item will be given. |
Ah. Sure. |
How are you seeing the ItemJoin "tree" via LuckPerms? I want to use it to identify the craft-world issue. |
LuckPerms has a command to display the tree. Very useful for debugging. |
Verbose logging? EDIT: did you add the custom permission node to your two items? |
No. /lp tree |
Verbose logging gives the permissions that are granted or not. The other half of the debugging equation. |
OK. Permission itemjoin.craftworld{name=world_lobby}.* definitely is the culprit. |
Ahh thanks I see it now, this will help me figure out why the permissions are appearing as craftworld{name=world_lobby}. Using the custom permission node I added to the items I see the "new perm" in the lp tree; |
Did using the permission node I supplied allow you to recieve the items? |
I didn't try a custom node. I'm sure that would work, since I use custom nodes for other things. But in this case, I got curious to find the real deal. I am trying to minimize the custom nodes. |
Ah okay, I was just wanting to make sure that you were able to make it so players can receive the items as I work to fix the original permission node for luckperms. |
Sure. But as I pointed out, itemjoin.craftworld{name=world_lobby}.* works. Hopefully, you will be able to identity where it derives. |
Ah okay sorry its a little late, I misread somewhere that you said it worked and then I thought you said it didnt work. #College Life. I will work to fix this asap. Thanks for bringing this to my attention. |
Ahah! Consider this fixed for the next update. Apparently putting player.getWorld().getName().toString(); directly into the permission node makes it register to only LuckPerms as a craft world. However, I created a new string Then i just directly put the string (id) in the permission node and it worked just perfectly. I am going to be doing some additional tweaking to permissions to make things more user-friendly, but this issue has been fixed and will be available in a snapshot soon. |
Cool. So the correct permission will be itemjoin.worldName.* (as documented)? |
by that if you mean you replace worldName with the world's actual name example; world_nether, then yes. I have also removed the itemjoin.worldName.* and itemjoin.worldName.itemname from the plugin.yml (the example) so it doesn't appear in the plugin's permission tree. Rather it will now show the actual worlds name if the permission is being utilized. However, those default permission examples will still remain in the documentation. If that makes any sense xD. what I mean; I confuse myself when writing this but it will make sense when you see the changes xD |
ItemJoin v4.8 has been officially released containing this bug fix for official usage. Please read the changelog as the documentation has not been updated yet; |
Spigot 1.12.2
ItemJoin 4.7
DeluxeMenus 1.10.2
Multiverse-* 2.6.0-b734
On first join, player is spawned in world_lobby, and should have two IJ-created inventory items (0-indexed):
What does happen: only the book in slot 7
Player can then leave world_lobby through portals to other worlds. In any of those worlds, the slot-8 item is created. When player returns to world_lobby, the slot-8 item is created.
I must be doing something wrong, but I don't see what.
The text was updated successfully, but these errors were encountered: