Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 19-Jan-15 16:58pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900