Skip to content

Conversation

@TheMrEngMan
Copy link

This PR adds features which make it possible to use leader-boards and saving stats on a standalone UHC server without having a MySQL database or separate lobby server in a bungeecord network.

Namely:

  • Added config option to use local SQLite database instead of MySQL (use-mysql-database)
  • Added support to automatically place leader-boards in main UHC server lobby, or in a preset world, depending if plugin is used on a UHC server or lobby server

Smaller user-facing changes:

  • Added config option for leader-boards update interval (leaderboards-update-interval)
  • Added more info in comments of config.yml file

Other changes:

  • Added null checks to prevent NPE's when disabling plugin if some leaderboards could not be created
  • Added paperlib to pom.xml

Please note that the leader-boards are placed in the default lobby world by determining which world has the glass box lobby at y=200. I realize this is not an ideal way to do so, and it would be better to expose this world through the UhcCore API.
I have added comments in the modified code sections to explain what each change is doing.

Added option to use local SQLite database instead of MySQL (currently auto-used if MySQL details are not changed from the default)
Added paperlib to pom.xml
…lobby, or in a preset world, depending if plugin is used on a UHC server or lobby server

Added config option for database type
Added config option for leaderboards update interval
Added more info in comments of config file
Renamed SQLite database file from "stats.db" to "database.db"
Added null checks to prevent NPE's when disabling plugin if some leaderboards could not be created
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

Successfully merging this pull request may close these issues.

1 participant