Improved the GE database access to use a basic reference counter for the connection that automatically closes the connection when no one is using it anymore

Grand Exchange now uses the GE sqlite database's price index table to track price changes
Removed the old price index (confusingly called GrandExchangeDatabase.java)
Grand Exchange prices are now dynamic and influenced by trades (weighted stepping average price)
Fixed GE interfaces not loading on login
This commit is contained in:
Ceikry
2022-05-20 11:23:30 +00:00
committed by Ryan
parent 01a4292123
commit 334bc77d06
20 changed files with 422 additions and 475 deletions
@@ -13,6 +13,9 @@ import java.math.BigInteger
class ServerConstants {
companion object {
@JvmField
var BOTS_INFLUENCE_PRICE_INDEX = true
@JvmField
var SHUTDOWN_HOOK: Thread = Thread(SystemShutdownHook())
@JvmField