public double getBalance ( String world , String currencyName ) { double balance = Double . MIN_NORMAL ; if ( ! Common . getInstance ( ) . getWorldGroupManager ( ) . worldGroupExist ( world ) ) { world = Common . getInstance ( ) . getWorldGroupManager ( ) . getWorldGroupName ( world ) ; } Currency currency = Common . getInstance ( ) . getCurrencyManager ( ) . getCurrency ( currencyName ) ; if ( currency != null ) { if ( ! hasInfiniteMoney ( ) ) { balance = Common . getInstance ( ) . getStorageHandler ( ) . getStorageEngine ( ) . getBalance ( this , currency , world ) ; } else { balance = Double . MAX_VALUE ; } } return format ( balance ) ; }
Get s the player balance . Sends double . MIN_NORMAL in case of a error