MobHunting

MobHunting

114k Downloads

MobHunting slowing startup

Sikatsu opened this issue · 12 comments

commented

Hey,

It seems MobHunting is making my server startup much slower.
It hangs like half a minute to find the economy plugin I believe.

https://pastebin.com/hqKdftUA

Could you look into this, so I can perform restarts quicker?

commented

This seems to be because of the rewards.yml file, on a new server this doesn't happen.

commented

Well, when you start a server with alot of Rewards placed in ground around in the world, all the rewards is read from the rewards.yml file... I dont think I can change this

commented

How many rewards do you have in the file?

commented

That is indeed the case. I reset the file and now it starts up fast. But eventually it extended the startup time by a minute. Is there no way to make it read the rewards faster?

commented

Maybe I can load the Rewards asyncroniously... Let me think ...

commented

This build might solve the problem. Could you please check? (I dont have that many rewards placed so it becomes a problem)

https://fractal.lindegaard.one:8181/job/MobHunting/990/

commented
commented

are you aware that all placed rewards on ground will loose its value when you delete the rewards.yml file?

commented
commented

The dropped BagOfGold items or Mobs heads. They usually have a value and can be sold if you have added MobHunting Signs for this.

https://www.spigotmc.org/wiki/mobhunting-bag-of-gold/

commented
commented

Okay. Lets close this ticket then for now.