Commit Graph

92 Commits

Author SHA1 Message Date
85fd0a79bc Sounds volume and pitch are now configurable in the new sounds.yml file 2019-01-12 19:08:54 -08:00
4cfb7a5f4b mcMMO now supports SSL and tries to use it by default for MySQL (turn this off in config.yml MySQL.Server.SSL)
this fixes a lot of console spam from default mysql installs
2019-01-12 17:26:17 -08:00
f828084246 Added config option to easily disable all scoreboards 2019-01-11 01:47:36 -08:00
626890ed95 Chimaera Wing exploit fix 2019-01-10 23:52:11 -08:00
8aa919f834 should fix inspecting offline players
(cherry picked from commit ad715f51c6b8b87e3a78c18c7daaf4cdf7c10a8e)
2019-01-05 19:21:45 -05:00
0d260a74c9 Refactoring to make my life easier 2018-12-29 05:24:55 -08:00
495c4a33e5 Store skill totals rather than calculating them on the fly for faster leaderboard queries. 2018-11-14 20:31:57 -05:00
0a1559511a Quick and dirty 1.13 update. I.e. it now compiles for 1.13. 2018-07-23 22:13:57 -04:00
dcd79e87e1 This command probably works 2016-04-23 00:32:04 -04:00
f4b6d7845e Add config option to auto-truncate player skill levels that exceed the configured max level. Adds #2512
Also removes a good bit of magic numbering from FlatFileDatabaseManager
2015-11-12 19:10:30 -05:00
7e92905618 Comments so I don't forget why I did it like this again 2015-11-04 13:48:29 -05:00
9934ab972e Clean up SQLDatabaseManager 2015-07-18 10:48:40 -04:00
93ad040936 Syntax is important 2015-06-20 15:11:18 -04:00
4388430491 When an older user no longer has a username that a new user now has, we will update the old entry to be _INVALID_OLD_USERNAME_, however we no longer strictly enforce name uniqueness, so people altering their DB's need to tweek with caution. Invalid old users will not display in the leaderboards. Fixes #2503 2015-06-20 12:57:01 -04:00
d8184fb298 Properly calculate diff times for old user purge. Fixes #2541 2015-06-11 18:12:22 -04:00
1f68f4e654 More debug for rare cases where things don't work. 2015-02-23 20:37:03 -05:00
a1c3f0d651 WHERE'S HARVEY DENT 2015-02-16 21:43:51 -05:00
8543382bde We want answers for the issues. 2015-02-15 22:03:58 -05:00
eddadcc179 Properly allow searches by name without UUID 2015-01-01 23:56:30 -05:00
eda18bc990 Only show the scoreboard tips a couple of times
We can assume a player knows how scoreboards work after showing them
the tips a few times across multiple login sessions

Adds #1833
2014-12-23 14:08:29 +01:00
b3cd5486d6 Actually use settings 2014-10-19 01:55:10 -04:00
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
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
c878775c72 Close the statement here as well 2014-08-21 14:33:50 -06: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
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
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
94a566acc9 Remove redundant maxReconnects database connection property 2014-07-09 19:03:15 +02:00
GJ
0056be2d5f Assorted cleanup. 2014-02-28 08:36:42 -05:00