API Usage
Add virtual keys to a player
UserManager userManager = CratesProvider.get().getUserManager():
userManager.addKeys(5, uuid, "CrateName", KeyType.virtual_key);
Add physical keys to a player
UserManager userManager = CratesProvider.get().getUserManager():
userManager.addKeys(5, uuid, "CrateName", KeyType.physical_key);
Update or add how many times a player has opened a crate.
UserManager userManager = CratesProvider.get().getUserManager():
userManager.addOpenedCrate(uuid, "CrateName");
An example of the api in use in a plugin.
https://github.com/Crazy-Crew/ExamplePlugin/tree/ver/1.20.4 You can compile the plugin using gradle assemble