CustomCrafting icon indicating copy to clipboard operation
CustomCrafting copied to clipboard

How to hide the advanced_crafting_table and recipe_book in vanilla crafting_table?

Open freeze-dolphin opened this issue 1 year ago • 0 comments

What happened?

even though the player doesn't have the permission to craft advanced_crafting_table, it will display the recipe in vanilla crafting_table

image

How can the bug be reproduced?

changing the hidden to true and vanillaBook to false doesn't make it

adding customcrafting:recipe_book to disabled_recipes in config.yml will be automatically removed

Expected Behaviour?

players should not be able to see advcaned_crafting_table and recipe_book in vanilla crafting_table if they have no permission

Plugin version

cc 4.16.9.1, wu 4.17-beta.3-SNAPSHOT

Server software

paper 1.20.6 (build 137)

Relevant log output

There is a warn log upon startup (i don't know if it is revelent...)

[12:04:21 WARN]: [CustomCrafting] Plugin CustomCrafting v4.16.9.1 generated an exception while executing task 125                                           
java.lang.IllegalStateException: Not a JSON Object: null                                                                                                    
        at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:101) ~[gson-2.10.1.jar:?]                                                           
        at customcrafting-spigot-4.16.9.1.jar/me.wolfyscript.customcrafting.data.patreon.Patron.lambda$new$0(Patron.java:63) ~[customcrafting-spigot-4.16.9.
1.jar:?]                                                                                                                                                    
        at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.6.jar:1.20.6-137-bd5867a]                                        
        at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.20.6.jar:1.20.6-137-bd5867a]                               
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.20.6.jar:?]                       
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]                                                 
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]                                                 
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]                                                                                          
[12:04:21 WARN]: [CustomCrafting] Plugin CustomCrafting v4.16.9.1 generated an exception while executing task 124                                           
java.lang.IllegalStateException: Not a JSON Object: null                                                                                                    
        at com.google.gson.JsonElement.getAsJsonObject(JsonElement.java:101) ~[gson-2.10.1.jar:?]                                                           
        at customcrafting-spigot-4.16.9.1.jar/me.wolfyscript.customcrafting.data.patreon.Patron.lambda$new$0(Patron.java:63) ~[customcrafting-spigot-4.16.9.
1.jar:?]                                                                                                                                                    
        at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.6.jar:1.20.6-137-bd5867a]                                        
        at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.20.6.jar:1.20.6-137-bd5867a]                               
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.20.6.jar:?]                       
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

Submit issue

  • [X] read the Wiki and especially the FaQ, and made sure there is no fix to your issue,
  • [X] searched for and ensured there isn't already an open issue regarding this,
  • [X] are running the latest version of your server software (Spigot, Paper, etc.), and plugins (WolfyUtilities, CustomCrafting).

freeze-dolphin avatar Jun 09 '24 04:06 freeze-dolphin