0
Answer

Checking data in .json file, i really need help

Máté Godó

Máté Godó

9y
596
1
Greetings,
 
I'm writing a plugin for a game server modification.
Basically the plugin revokes the item dropping right from players if they don't have the bypass permission. The item gets deleted. This worked but I tried to extend the plugin by adding excluded items.  The plugin would check if the item ID the player tries to drop is listed in a .json config file. If it is, then said player drops the item. If not listed, then the item gets delete, except if the player has the bypass permission.
The difficulty I'm have is that i don't know how to check the item IDs listed in the .json file.
Another alternative is to leave the .json file and put the allowed item IDs inside the code, but I have no idea how to do this either.
 
I uploaded the whole folder, with references. If someone could take a look and help me out..I would really appreciate it. (2.6mb)
https://www.mediafire.com/?whzcmyoc06jnzzo 
 
Thanks in advance