[Economy] Total Economy v1.7.1

I will definitely add this for the next release.

2 Likes

I have tried to receive the event EconomyTransactionEvent, but it looks that you don’t send the event.

I could be wrong here, but I am pretty sure this is fired by Sponge itself so Total Economy would not send this event. What exactly are you trying to do?

This is on my main class. I’m trying to get the event, but nothing is called. The other events in the class are called.

    @Listener
    public void onEconomyTransaction(EconomyTransactionEvent event){
        Account account = event.getTransactionResult().getAccount();

        System.out.println(account.getBalance(event.getTransactionResult().getCurrency()).toString());
    }

I am going to look into this on my end and see if I can come up with something.

I can confirm that the event is not being fired. There could be a chance that the event is not implemented on Sponge’s end. Like I said, I do not believe this is something that has to be added on my end so your best bet is to ask someone higher up.

I tried with snowball currency and the events were called.

More likely you messed something

Figured it out. Will get to work on it tomorrow. Sorry about this.

1 Like

The intention is for it to be fired by economy plugins, so that they have complete control over where and how they fire it.

1 Like

Got it to properly call the EconomyTransactionEvent. Sorry again for the trouble. I will release it within a couple of days as I would like to add/change a few more things.

2 Likes

Total Economy version 1.3.1 has just been released. Changes include:

+EconomyTransactionEvent is now properly fired
+Admin Pay command can now be ran from console

You can download this release here: Release Total Economy v1.3.1 Ā· Erigitic/TotalEconomy Ā· GitHub.
If you encounter any issues or have suggestions, please post them here: https://github.com/Erigitic/TotalEconomy/issues/new

As always, thanks for using Total Economy and I hope you enjoy.

1 Like

Is there a way to set a money cap for all players?

Currently no. I will add this to the GitHub page to add in a later version though.

1 Like

Continuing the discussion from [Economy] Total Economy v1.3.1:

Hi, how does we do for add new jobs in this plugin?
I’ve tried but it doesn’t work at all.

Any idea?
Friendly!

Have you looked at this: Creating Jobs Ā· Erigitic/TotalEconomy Wiki Ā· GitHub?

Thinking of adding a /reload? :wink:

As far as I know, this cannot be done.

Hi, Erigitic and Thorns Ofire.

No i havnt’ 't look at this but i’ve already know this method but it’s didn’t work for me. My jobs are registred but when a break something the job is supposed to lvl up on, i havn’t got any message from earning xp or money and my lvl didn’t lvl up…

Also i havn’t any command ā€œ/reloadā€ on my sponge server so i’ve simply restart it and it didn’t work anymore.

I’ve u got any idea?
Friendly, Zex_!

Ho gosh!

It work… why? I don’t know…
But i’ve got another questions.
IS it possible to desabled the job message when u earn xp/money by your action?
Is it possible to set the maximum lvl of a job?
Some creature didn’t give xp when i set it in jobs.config (mooshroom, magma cube and zombie pigman), i’ve u got an idea why?
Is it possible to give xp onlu when u broke a wheat at the seventh variant? same thing for carrot or potatoes?
Break/place/catch and kill are the only action possible? Is it possible to earn xp by craft/smelt/explore like in Jobs Reborn plugin?

Friendly!