Commit Graph

41 Commits

Author SHA1 Message Date
Eric
8717a282c2 Fix shop limits 2020-02-20 13:23:53 +01:00
Eric
c595b574ec Load/unload shops on chunk load/unload
This breaks shop limits, only loaded shops are counted at the moment
2020-01-21 20:00:08 +01:00
Eric
0896a52556 Add ShopProduct#getLocalizedName for easier access 2019-08-07 23:21:29 +02:00
Eric
e82c28e5e8 Improve output of database errors 2019-07-22 16:07:30 +02:00
Eric
67c55be518 Add serverTimezone to MySQL connection URL 2019-07-22 15:22:41 +02:00
Eric
27083e5093 Add convenience methods for database versioning 2019-06-16 17:54:55 +02:00
Eric
bc284a0717 Only use one date format instance 2019-06-16 17:32:27 +02:00
Eric
a2756620f5 Show "Updating database finished" message 2019-06-16 16:47:16 +02:00
Eric
1b1e5de47e Initialize SQLite driver before use 2019-06-16 16:47:16 +02:00
Eric
e3dadb5896 Add version for database for better future updates 2019-06-16 16:47:15 +02:00
Eric
404c872396 Specify database connection test queries
Should fix database connection error on older Minecraft versions
2019-04-28 22:28:03 +02:00
Eric
6ae12f65c0 Database improvements
- Support table prefixes (Fixes #138)
- Support amounts above 127 in Paper (Fixes #149)
- Split UUID, name and shop type in economy log
- Split product and amount in economy log (Fixes #143)
- Added product data (Base64) to economy log
2018-11-10 20:34:11 +01:00
Eric
4c6c87dc08 Make database console error messages clearer 2018-11-05 17:05:34 +01:00
Eric
7df4f4b69d Don't send error when joining for the first time 2018-11-04 14:24:27 +01:00
Eric
78384ebc7b Implement HikariCP for database 2018-08-01 12:20:10 +02:00
Eric
09fef5b38c Remove database migration from old versions 2018-07-29 12:27:24 +02:00
Eric
8cf7b7c08e Fix javadoc warnings
A part of the documentation may still be incorrect
2018-07-25 13:11:44 +02:00
Eric
1dbf68af9c Fix typos 2018-07-24 18:15:26 +02:00
Steven M
cfff0b9ce2 Implemented economy log cleanup (#156) 2018-07-24 18:10:04 +02:00
Eric
5bfb0a1a22 Renamed config variables 2018-07-23 17:57:01 +02:00
Eric
21fd9bb5ed Check if backup table already exists to prevent errors 2017-08-15 12:44:02 +02:00
Eric
8d459220d3 Vacuum SQLite database on server stop
Closes #132
2017-08-15 12:44:02 +02:00
Eric
a8f589c1b7 Added config option to disable economy logging 2017-08-15 12:44:01 +02:00
Eric
397304c748 Use collection instead of array in Database#getShops 2017-08-15 12:44:01 +02:00
Eric
49d90da57a Added type parameter to callback 2017-07-30 13:54:48 +02:00
Eric
3eef8250d2 Fixed shops duplicating after extending 2017-06-06 18:13:24 +02:00
Eric
f6a7f5e3ba Use more prepared statements
+ Removed quotation marks and semi colons from queries
2017-04-10 20:32:36 +02:00
Eric
508baf4f6b If a world is not found, only show the error once 2017-04-10 20:06:05 +02:00
Eric
97c0ca70c2 Force to not use SSL for connecting to MySQL server
Fixes #86
2017-03-25 15:17:37 +01:00
Eric
b6a233f2b4 Fixed javadoc for methods with a callback as parameter
Also, the getShops() method now always gets all shops from the
database instead of returning the existing one
2017-03-25 15:17:36 +01:00
Eric
dd7a82b49e Added notification about offline revenue on join
Closes #47
2017-03-25 15:17:35 +01:00
Eric
1e38edc7a0 Improved database interaction 2017-03-25 15:17:33 +01:00
Eric
7b3dac61ac Query and update SQL database asynchronously 2017-03-25 15:17:32 +01:00
Eric
73f5d0f79e Change get(...) to getShop(...) in database 2016-11-26 17:07:21 +01:00
Eric
6a96e235a6 Readded autoReconnect parameter to MySQL connection url 2016-08-20 12:38:53 +02:00
MineTheCube
e94463ccbe Make logEconomy asynchronous (#21) 2016-08-18 16:59:57 +02:00
Eric
d1453d5839 Added economy log in database file
Closes #19
2016-08-18 13:30:14 +02:00
Eric
aa2051e9cc Added configurable ping interval to MySQL 2016-08-16 12:26:35 +02:00
Eric
51584a3d04 Removed almost every stack trace that might me printed
Stack traces will now be printed in the debug log (if enabled) and in the console, there will only be displayed an error message without the stack trace
2016-08-10 13:47:25 +02:00
Eric
312e7c9dca Disconnect from database when plugin disables
+ Reconnect to database on shop reload or server reload
+ A few debug messages were added on SQLExceptions
2016-08-06 12:17:53 +02:00
Eric
57af99da1b Now using reflection instead of different modules
This commit also fixes spawn eggs on 1.8.x
2016-08-05 15:26:47 +02:00