I will definitely add this for the next release.
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.
The intention is for it to be fired by economy plugins, so that they have complete control over where and how they fire it.
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.
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.
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.
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!
Thinking of adding a /reload?
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!