EssentialsEco Tweak

Status
This thread has been locked.

dreadrocky

Feedback score
0
Posts
2
Reactions
0
Resources
0
Ok, so I just want a small change in EssentialsEco. I don't want multiple currencies, but I want to divide the current eco number. For example, I have 11,870 copper coins. I want eco to know that I have 11,870 copper. But to then convert in game to '1 gold, 1 silver, 54 copper'. Silver = 56 copper, and gold = 11,760 copper.

Now I don't need it to convert everything money related. Just /bal and /baltop. But most important, is I need to be able to config each of the 3 currency names, and the value of each one.

If this hasn't been clear enough, please ask me questions. I may be a little slow on replies.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

dreadrocky

Feedback score
0
Posts
2
Reactions
0
Resources
0
I don't know if this will help, but my skill set is in php, so this is how I would do what I'm wanting to do in php.

Code:
if(ecoValue>=11760){
    goldValue++;
    ecoValue = ecoValue-11760;
}
if(ecoValue>=56){
    silverValue++;
    ecoValue = ecoValue-56;
}
copperValue = ecoValue;

/bal--> echo goldValue . " gold, " . silverValue . " silver, " . copperValue . " copper";
 
Status
This thread has been locked.
Top