Permissions: Checks if the player has permission (convertloot.use).
Initialization: Sets up variables to track loot and cash amounts.
Loot Counting: Counts specific items (emeralds, gold, nuggets, paper) in the player's inventory.
Loot Removal: Removes counted loot items from the player's inventory.
Random Conversion: Converts loot into cash based on random chances, assigning denominations.
Cash Delivery: After a 10-second delay, gives the player the calculated cash.
Notifications: Sends messages to the player about the conversion process and results.
No Loot Handling: Notifies the player if they have no convertible items.
Sound Effects: Plays sound effects during the process.