- Added some new methods into my main class so developers can now import this jar into their build path, make use of these methods to log any additional transactions. The methods can be used like so:
Code (Java):
BowShopLogger.
getInstance
(
).
logSale
(seller, i, itemPrice, info
)
;
BowShopLogger.
getInstance
(
).
logBuy
(buyer, i, itemPrice, info
)
;
/*
*You will need the Player who does the transaction
*The ItemStack and its respective itemPrice as a double.
*And any extra information you want to add to the log as a String.
*/