[Essentials Eco] Balance format

Discussion in 'Plugin Development' started by L33m4n123, Feb 22, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    L33m4n123

    Hey,

    this is rather a question regarding Essentials. If this cannot be done via Essentials API [did not found anything on Wiki and got no usefull response in the IRC I ask here] then it's a general question

    OK what do I want to achieve? The Essentials Economy displays the balance for example as follows

    "Balance: $10000"

    So now I want it to be

    "Balance: $10,000"

    I know how to change the value of "10000" to "10,000" thats not my question.. What I want to know. How can I achieve this within Essentials?

    I know that it calles the Method

    Code:
    public static String displayCurrency(final BigDecimal value, final IEssentials ess)
    (https://github.com/essentials/Essen...com/earth2me/essentials/utils/NumberUtil.java)
    whenever it formats currency. Now I do not want to decompile/download the source and change one line and compile the complete essentials plugin to alter the return value there.

    Is there a way to intercept this method in general that whenever essentials calls said method it changes the value?
     
Thread Status:
Not open for further replies.

Share This Page