(This guide won't go into detail as the API is really simple)
Part 1: Manipulating the custom Blocks
Every custom block has custom metadata. you can access this metadata by using
Code (Text):
block.getMetaData("bDropsID").get(0).asInt();
The name of the custom data is "bDropsID" and the 0th index is the block ID we are getting.
The id of the block can be easily checked in the config. in the string "Block1" inside the config "1" is the Block ID.
Part 2: Plugin Utilities
In the jar file there is a class called RandomUtils. There are a good chunk of utilities that are useful for manipulating the plugin. Stuff such as getting the block ID, the Drop ID and etc.
quick Doc of RandomUtils:
getEditingBlock -> gets the block that is currently being edited (it returns a string like "Block1" or "Block2" so it can be used for the path of the config)
getEditingDrop -> gets the Drop that is currently being edited (it returns a string like "Drop1" or "Drop2" so it can be used for the path of the config)
color -> adds color to messages by translating them from & to ChatColor chars
changeDecimal -> changes a decimal number to a specific decimal point
getBlockID -> Returns the ID of the editing block without the "Block" part. So if the editing block is "Block1" it will return 1