You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
[22:08:30 ERROR] [Sponge]: Could not pass LiteEconomyTransactionEvent to Plugin{id=t, name=Test, version=1.0.0, source=mods/test-1.0.0.jar}
java.lang.ClassCastException: io.github.flibio.economylite.impl.economy.event.LiteEconomyTransactionEvent cannot be cast to org.spongepowered.api.event.impl.AbstractEvent
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:304) ~[SpongeEventManager.class:1.10.2-5.0.0-BETA-129]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:320) ~[SpongeEventManager.class:1.10.2-5.0.0-BETA-129]
at io.github.flibio.economylite.impl.economy.account.LiteUniqueAccount.resultAndEvent(LiteUniqueAccount.java:214) ~[LiteUniqueAccount.class:?]
at io.github.flibio.economylite.impl.economy.account.LiteUniqueAccount.deposit(LiteUniqueAccount.java:159) ~[LiteUniqueAccount.class:?]
at org.spongepowered.api.service.economy.account.Account.deposit(Account.java:294) ~[Account.class:1.10.2-5.0.0-BETA-129]
at io.github.flibio.economylite.commands.admin.AddCommand.run(AddCommand.java:72) ~[AddCommand.class:?]
at io.github.flibio.economylite.utils.commands.BaseCommandExecutor.lambda$execute$2(BaseCommandExecutor.java:69) ~[BaseCommandExecutor.class:?]
at org.spongepowered.common.scheduler.SchedulerBase.lambda$startTask$642(SchedulerBase.java:177) ~[SchedulerBase.class:1.10.2-5.0.0-BETA-129]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_102-ea]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_102-ea]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_102-ea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_102-ea]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_102-ea]
The text was updated successfully, but these errors were encountered:
@RobertHerhold: I believe this would happen with most economy plugins, as they implement the EconomyTransactionEvent. Do you think the EconomyTransactionEvent should extend AbstractEvent in the SpongeAPI? This would allow the issue to be fixed for all economy plugins. Anyways, I'll fix it soon.
@Flibio Thanks for the quick response! I think it might be wise for EconomyTransactionEvent to extend AbstractEvent, although I have to admit that I'm not incredibly familiar with the implementation details of events, so I don't know if that would have any unintended consequences.
With this event listener:
I get this exception:
The text was updated successfully, but these errors were encountered: