Commit Graph

145 Commits

Author SHA1 Message Date
8fcd286eb0 This might be important 2014-10-15 01:31:11 -04:00
4723a7cbdb Switch to a different ConnectionPool implementation 2014-10-15 00:15:43 -04:00
1119d3c17f Actually fix flatfile player loading....
you lied to me @tft_02
2014-09-03 00:05:48 -04:00
56cb5c092f Should be this 2014-08-26 21:55:35 +02:00
9d7faf9ed9 Fix database loading data for wrong player
Fixes #2223
2014-08-24 15:25:56 -07:00
2147417322 This seems easier. 2014-08-22 15:16:40 -04:00
4304970059 This was supposed to be a zero. 2014-08-22 00:59:20 -04:00
fc981fda20 Better connection validation for us. 2014-08-21 19:42:03 -04:00
be9ff51fd9 Should fix #2223 for realz this time. 2014-08-21 19:42:03 -04:00
c878775c72 Close the statement here as well 2014-08-21 14:33:50 -06:00
574cdd374b Use a placeholder value. Fixes #2216 #2221 2014-08-20 22:19:36 -04:00
4d402c7229 Use correct element 2014-08-19 19:11:07 -04:00
d8ad519cd0 Seperate pools for essential tasks like profile loading and profile saving. 2014-08-19 17:58:45 -04:00
097a5a0894 Change purge a bit. Apparently andrewkm says this works. 2014-08-17 21:23:27 -04:00
8760c2bbb0 This way is cleaner though. 2014-08-17 20:01:04 -04:00
dc635fe7d7 SHould fix #2195 2014-08-17 19:57:52 -04:00
0a066f51bb Fix #2197 There is no wait forever option, so we actually need a timeout. 2014-08-12 11:39:43 -04:00
294141c353 We should be reconnecting automagically. 2014-08-11 12:16:27 -04:00
5a47f9fa86 Fix #1320 2014-08-08 00:42:33 -04:00
f2881f02c8 Fix id retrieval 2014-08-08 00:09:00 -04:00
9f5445689c Helpful debug on shutdown 2014-08-08 00:02:07 -04:00
1fcb9e649e A bit more logic simplification in SQLDatabaseManager, also fixes error printing, Fix #2188 2014-08-07 23:45:40 -04:00
1d0dc02013 Greatly simplify Profile loading in mySQL 2014-08-07 14:16:28 -04:00
8766d31943 Fix #2182 and Fix #2178
NOW() is a numeric representation of the date, not a timestamp....  so thats a nono.

Also,  we need to update UUIDs grabbing by name.
2014-08-07 13:54:28 -04:00
da7507fc75 Throw some sanity information into the info log. 2014-08-05 20:20:05 -04:00
79a17b0c1c Fix /mcrank when using flatfile. Fixes #2179 2014-08-05 09:20:12 -04:00
d3051ad127 Use a slight delay to ensure its after the purge. 2014-08-04 11:49:09 -04:00
f4c53aaf8a Prevent user purges and UUID updates from conflicting in mass database operations. 2014-08-04 11:42:02 -04:00
fe29bb4b9f Accurate purge count 2014-08-03 21:14:24 -04:00
ae5347bc0f Purging shouldn't be main thread, also we have no reason to refresh profiles of purged users, as old users aren't online, and powerless users have nothing to wipe. 2014-08-03 21:12:41 -04:00
3569f9a182 Woot, rushing things without looking! 2014-08-03 20:40:48 -04:00
70a23f8a0a EnumMaps cannot use a null key 2014-08-03 20:39:37 -04:00
857e12b96e SQLDatabaseManager optimizations, async profile loading -t00thpick1, zreed
This commit changes our shared connection into a connection pool utility to prevent
thread locks from multiple actions attempting to access the database at the same time.
In additon,  profile loading has been moved off the main thread at login time, to
allieviate the performance issues caused by it.

Fixes #2138, Fixes #2119, Fixes #1982, Fixes #1953
2014-08-01 20:31:17 +02:00
c10525ada9 Add UUID support! - zreed, slipcor, t00thpick1
This commit updates our database managers to use UUIDs instead
of usernames for persistent storage.

Fixes #1979
2014-08-01 20:23:03 +02:00
48c7aa3e84 Add an UpgradeManager 2014-07-23 12:37:02 +02:00
0aa67727f5 Fixed bug with flatfile format updater 2014-07-12 14:02:53 +02:00
94a566acc9 Remove redundant maxReconnects database connection property 2014-07-09 19:03:15 +02:00
862d38b587 Clean up all of the imports 2014-03-03 18:27:45 +01:00
GJ
0056be2d5f Assorted cleanup. 2014-02-28 08:36:42 -05:00
GJ
8deac175d1 Repair damaged user files. Fixes #1869 2014-02-22 09:52:36 -05:00
GJ
d0b766a2d3 Fixed bug with updating (very) old user data. 2014-02-21 11:38:22 -05:00
GJ
b3474c04c7 Increment SQL query numbers due to addition of Alchemy. Fixes #1803
Thanks to @roastnewt for the help!
2014-01-21 11:16:39 -08:00
GJ
43e2c813d1 Clean up some of our messes. 2014-01-20 13:58:40 -08:00
8f83e328b0 Introduction of new Alchemy skill! 2014-01-16 22:32:40 +01:00
GJ
3be443c63c Cleanup some XP functions, remove unused scoreboard values, minor refactoring. 2013-10-29 09:49:41 -04:00
95f15e68fe New and Improved Scoreboard System
- Scoreboards now AUTO-UPDATE
 - Scoreboards now COME IN COLOR
 - If you want, they can come in EVERY COLOR (Config setting)
 - Scoreboards can be displayed alongside chat output!
 - Prevention of denial of service to SQL via spamming /mctop using a cooldown
 - Added /mccooldown command to show cooldowns for all available skills
2013-10-25 09:49:02 -07:00
f4ff8518c2 Cleanup progress feedback 2013-10-18 16:43:37 +02:00
dbd27b641e Give periodic status messages to the console in conversion 2013-10-18 16:40:44 +02:00
3b09012b35 Also use getServer() here as well 2013-10-18 15:26:14 +02:00
GJ
468fbdab56 SkillUtils cleanup, EventUtils creation
Move some functions in SkillUtils to more relevant locations.

Begin work on utility class to handle all event calls.
2013-10-15 13:03:33 -04:00