games647 / ScoreboardStats

Bukkit plugin for customizing the sidebar of the scoreboard feature from minecraft
https://dev.bukkit.org/bukkit-mods/scoreboardstats/
MIT License
28 stars 45 forks source link

Add an option in sql.yml to choose different MySQL table #106

Closed KatsuroKurosaki closed 8 years ago

KatsuroKurosaki commented 8 years ago

The title says all, I would like an option to be added in the SQL config in order to have different MySQL tables, so that, I can run different stats on my BungeeCord network,

Thanks in advance

games647 commented 8 years ago

What do you think about a configurable prefix?

KatsuroKurosaki commented 8 years ago

I know the table name in MySQL is: playerstats Do you mean a new config option (Tableprefix) in sql.yml like this: SQL-Settings: `Tableprefix: 'prefix' Username: awesome_user Password: awesome_password Isolation: SERIALIZABLE Driver: com.mysql.jdbc.Driver Url: jdbc:mysql://localhost:3306/awesome_database Timeout: 1000 uuidUse: true`

The new table name will be: prefix_player_stats, and this value, by default, an empty string. If so: All of my YES! :D