[Resolved] Towny not collecting taxes

Status
Not open for further replies.

Fayettemat

Mr Geek
Staff member
Elaborated description:
It seems, that for what ever reason, towny hasn't been collecting town or nation taxes for quite a while. The error looks to be related to Vault and/or our eco plugin

Is the issue persistant?
Yes, it is indeed.

Additional information:
While I should be able to figure out how to resolve this and/or what's causing the issue I don't know how many players want the taxes to start with. That being said as taxes are part of the eco and Towny we should likely look into this in more depth.
 

Kapten_Knas

lol ɹoʇɐɹʇsıuıɯpɐ
Staff member
Seems to be on Towny's end.
/townyadmin newday spouts;
Code:
[14:11:36] [Craft Scheduler Thread - 9/WARN]: org.apache.commons.lang.UnhandledException: Plugin Towny v0.89.2.0 generated an exception while executing task 186
    at org.bukkit.craftbukkit.v1_8_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Asynchronous entity world add!
    at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:14)
    at net.minecraft.server.v1_8_R2.World.b(World.java:2640)
    at net.minecraft.server.v1_8_R2.Chunk.addEntities(Chunk.java:820)
    at org.bukkit.craftbukkit.v1_8_R2.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:49)
    at org.bukkit.craftbukkit.v1_8_R2.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:1)
    at org.bukkit.craftbukkit.v1_8_R2.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:337)
    at org.bukkit.craftbukkit.v1_8_R2.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:295)
    at org.bukkit.craftbukkit.v1_8_R2.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:16)
    at net.minecraft.server.v1_8_R2.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:115)
    at net.minecraft.server.v1_8_R2.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:97)
    at org.bukkit.craftbukkit.v1_8_R2.CraftWorld.getChunkAt(CraftWorld.java:125)
    at org.bukkit.craftbukkit.v1_8_R2.CraftWorld.getBlockAt(CraftWorld.java:89)
    at org.bukkit.craftbukkit.v1_8_R2.CraftWorld.getBlockAt(CraftWorld.java:567)
    at org.bukkit.Location.getBlock(Location.java:87)
    at org.gestern.gringotts.data.EBeanDAO.getChests(EBeanDAO.java:147)
    at org.gestern.gringotts.GringottsAccount.balance(GringottsAccount.java:47)
    at org.gestern.gringotts.api.impl.GringottsEco$ValidAccount.balance(GringottsEco.java:225)
    at org.gestern.gringotts.api.impl.VaultConnector.getBalance(VaultConnector.java:79)
    at com.palmergames.bukkit.towny.TownyEconomyHandler.getBalance(TownyEconomyHandler.java:229)
    at com.palmergames.bukkit.towny.TownyEconomyHandler.hasEnough(TownyEconomyHandler.java:248)
    at com.palmergames.bukkit.towny.object.TownyEconomyObject.canPayFromHoldings(TownyEconomyObject.java:186)
    at com.palmergames.bukkit.towny.object.TownyEconomyObject._pay(TownyEconomyObject.java:52)
    at com.palmergames.bukkit.towny.object.TownyEconomyObject._payTo(TownyEconomyObject.java:106)
    at com.palmergames.bukkit.towny.object.TownyEconomyObject.payTo(TownyEconomyObject.java:98)
    at com.palmergames.bukkit.towny.tasks.DailyTimerTask.collectTownTaxes(DailyTimerTask.java:230)
    at com.palmergames.bukkit.towny.tasks.DailyTimerTask.collectTownTaxes(DailyTimerTask.java:183)
    at com.palmergames.bukkit.towny.tasks.DailyTimerTask.run(DailyTimerTask.java:49)
    at org.bukkit.craftbukkit.v1_8_R2.scheduler.CraftTask.run(CraftTask.java:71)
    at org.bukkit.craftbukkit.v1_8_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
    ... 3 more
Seems we need to wait for a Towny update before taxes will work as intended.
 

Kapten_Knas

lol ɹoʇɐɹʇsıuıɯpɐ
Staff member
Looked further into this, and it seems Gringott's isn't thread safe.
Luckily Towny's config had an option not to use async - and it now works as previously.
 

Kapten_Knas

lol ɹoʇɐɹʇsıuıɯpɐ
Staff member
As towns now are getting deducted per day I'm pinging the mayors/assistants for awareness.

Elysium - @Atlas @General_Bacon343
Teralon - @Mr_MoonPie @Mjaf
Triterium - @Klandan @dannyboykey
Eridani - @Fayettemat
Phoenix - @Timanetor
Marbentin - @Zawzome @xtinamc
Valhalla - @PotatoShip @SugaryBliss
Orangon - @TheLarsinator
Avalon - @Fronts
Torvald - @AeonChey @Schou_89
Krevs - @Yevn
Automata - @J1015814
Arcadia - @Bluelion319
Azmar - @Sivine

If the users have registered with different usernames on the forum than ingame they'll simply stay unaware. :>
 

Tim122911

Moderator
Staff member
Thank you for the notification!
In the past, it has happened that the contents of a town has been completely reset when the town runs out of money. Could we check that this doesn't happen? (Or maybe you want it to, idk)

Thx
 

Kapten_Knas

lol ɹoʇɐɹʇsıuıɯpɐ
Staff member
Ahoy Timmo!
Items do not disappear, apart from torches what I've noticed.
I'll double-check in the nearest of futures!
 
Status
Not open for further replies.
Top