PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
54 stars 21 forks source link

No permission to craft a particular recipe #3341

Closed Lerphie closed 9 months ago

Lerphie commented 10 months ago

Terms

Discord tag (optional)

mc_coder

What happened?

It's a very strange bug. Player cannot create a saber in the workbench. But the server administrator can do it. Below I have discounted you the full configuration of recipes. All rights to the recipe the player has. https://youtu.be/P4fHCBmxC5w

Steps to reproduce the issue

*

Server version

This server is running GuardSpigot 1.16.5 version git-Airplane-"e37fa86" (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)

ItemsAdder Version

image

ProtocolLib Version

image

LoneLibs Version

image

FULL server log

No response

Error (optional)

No response

Problematic items yml configuration file (optional)

info:
  namespace: myitems
recipes:
  crafting_table:

    diamond_sai:
      permission: diamond_weapon
      enabled: true
      pattern:
        - XXD
        - DDX
        - SDX
      ingredients:
        D: diamond
        S: stick
      result:
        item: diamond_sai
        amount: 1

    diamond_rapier:
      permission: diamond_weapon
      enabled: true
      pattern:
        - XXD
        - XDX
        - WXX
      ingredients:
        D: diamond
        W: diamond_sai
      result:
        item: diamond_rapier
        amount: 1

    diamond_saber:
      permission: diamond_weapon
      enabled: true
      pattern:
        - XXD
        - DDX
        - WXX
      ingredients:
        D: diamond
        W: diamond_rapier
      result:
        item: diamond_saber
        amount: 1

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

No response

github-actions[bot] commented 10 months ago

Hello, your report will be looked into as soon as possible. Please do not bump this thread and don't post it on multiple platforms.

Thanks a lot for your patience.

Lerphie commented 10 months ago

Other diamond weapons the player can craft, but the saber cannot. Here is proof that the player has permission: image

Lerphie commented 10 months ago

image

LoneDev6 commented 10 months ago

All rights to the recipe the player has.

Please make sure to read the permissions wiki page and double check if you actually have permissions. For example you should have ia.user.recipe.diamond_weapon

Info on recipes permissions: https://itemsadder.devs.beer/plugin-usage/adding-content/item-properties/permission#recipes-permissions More info on permissions: https://itemsadder.devs.beer/plugin-usage/permissions#permissions

Other diamond weapons the player can craft, but the saber cannot. Here is proof that the player has permission:

ia.user.craft.* is old, should not be used anymore, although it should work fine... strange. I see you're using a plugin to preview recipes, can you try to delete it?

Lerphie commented 10 months ago

Still the recipes don't work. I'm going to try deleting my plugin image

Lerphie commented 10 months ago

I uninstalled the plugin on recipes, didn't help. I also noticed that the item can not be moved to the inventory when opening the workbench https://youtu.be/kEumPmdGkCQ

Lerphie commented 10 months ago

Here's the configuration https://youtu.be/4ZarBoe2tBk

Lerphie commented 10 months ago

Don't you think it's strange that other weapons with similar authorization can be created, but this particular saber cannot?

Lerphie commented 10 months ago

I can send you the complete archive of my ItemsAdder that I have been making for 2 years. You might find something. Maybe the reason is that there are too many recipes.

LoneDev6 commented 10 months ago

Don't you think it's strange that other weapons with similar authorization can be created, but this particular saber cannot?

Yes it is. Can you try to create another recipe with different ingredients and with a new permission name and test? Let me know

Lerphie commented 10 months ago

Yes it is. Can you try to create another recipe with different ingredients and with a new permission name and test? Let me know

I even made more, watch the clip carefully and to the end ;d https://youtu.be/OxvgcZi2Cc0

Lerphie commented 9 months ago

@LoneDev6 Why don't I give you my ItemsAdder folder so you can test it on your own server?

LoneDev6 commented 9 months ago

Create a private "payment issue" thread on my forum and share the file there, so no one can download it other than me. Thanks. https://forum.devs.beer/

Lerphie commented 9 months ago

Create a private "payment issue" thread on my forum and share the file there, so no one can download it other than me. Thanks. https://forum.devs.beer/

I sent you my files

LoneDev6 commented 9 months ago

I cannot reproduce the issue with your files, there might be another plugin interfering. Try disabling all other plugins. Try also to update Paper/Spigot to the latest BUILD for your current server version. Try to check if you have any Luckperms role which interferes with your user permissions.

image

https://github.com/PluginBugs/Issues-ItemsAdder/assets/27242001/bbae146a-0bcf-4a81-8ca7-1d8bfd2c748c

Lerphie commented 9 months ago

@LoneDev6 Hi. I found another problem with the recipes. Please check this out: https://forum.devs.beer/d/1975-cosmeticscore-private-help-optimization-issue-176/5