Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ftop recalc/reload issues #117

Open
notkohrt opened this issue Sep 15, 2019 · 5 comments
Open

ftop recalc/reload issues #117

notkohrt opened this issue Sep 15, 2019 · 5 comments

Comments

@notkohrt
Copy link

Running 1.13.2

Plugin version 1.2.0

Plugin runs fine, calculates all blocks, player balances and spawners just fine.

My issue is, it very rarely recalculates. It doesn't on schedule, and it doesn't with running either command or even rebooting the server. I haven't been able to figure out when or why it refreshes when it does but it's only every couple days. Any tips or fixes?

@novucs
Copy link
Owner

novucs commented Sep 16, 2019

Ideally it will never fully recalculate, and recalculations are not scheduled from within the plugin. I imagine you are executing the recalculate task elsewhere. This plugin is very efficient in how it handles the ftop leaderboard as it relies entirely on events. A nice side effect of this major efficiency boost is that it calculates the worth immediately, providing realtime statistics, meaning there is no need for computationally expensive full recalculate tasks.

@notkohrt
Copy link
Author

Thank you for the response, I understand everything you’ve said but I don’t think I explained my situation enough. It goes days without updating even a single dollar. For example, a faction has 93 blaze spawners listed on /f top. Around a week ago they placed 150 more but the leaderboard hasn’t changed. Usually it does update after a day or two but as I mentioned it’s nearing a week so I’ve contacted you. I remember seeing something about these events, where can I find more information?

@novucs
Copy link
Owner

novucs commented Sep 16, 2019

If you are having difficulty with events not being registered, check your configuration matches that of the default here:

  perform-recalculate:
    command: true
    unload: true
    claim: true
    break: true
    place: true
    explode: true
    chest: true
  bypass-recalculate-delay:
    command: true
    unload: true
    claim: true
    break: false
    place: false
    explode: false
    chest: false

The ftop value should be updated on placement instantly. Check that works, if it does not, perhaps there may be a plugin conflict that is overriding the place event. Let me know how the testing goes.

@notkohrt
Copy link
Author

That's our config.

perform-recalculate:
command: true
unload: true
claim: true
break: true
place: true
explode: true
chest: true
bypass-recalculate-delay:
command: true
unload: true
claim: true
break: false
place: false
explode: false
chest: false

It seems to only update when the server completes a scheduled restart. I'm beyond lost as to why it would on the scheduled restart but not a manual one.
Here's a list of our plugins.
https://prnt.sc/p718qm

@novucs
Copy link
Owner

novucs commented Sep 17, 2019

Could you try debugging as to why your server in particular cannot recalculate on block change? Start by checking a near-vanilla server with your specific factions, factionstop, and spigot build. Then continue to rule out any conflicting plugins that you have enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants