Commit Graph

38 Commits

Author SHA1 Message Date
RoboMWM 92a0adcfc0 Avoid hidden files as well when migrating to MySQL
Related to #158
2017-07-22 00:25:56 -07:00
jacob1 5d474e51f5 add /restrictsubclaim (#135)
Will update databases - warn server owners to backup when releasing (they should be backing up anyways...)
2017-07-21 18:54:24 -07:00
RoboMWM 007a161bfb Skip the first line when reading PlayerData files
Thanks @Jikoo
Related to #22
2016-10-08 10:48:32 -07:00
RoboMWM 5d4ccdca20 Completely remove PlayerData#LastLogin
Not tested, but other than maintaining SQL storage "compatibility" I've
removed all usages of it. It doesn't seem to be used at all anyways
other than to be stored since commit
f935806b45 removed its purpose.

Addresses a request in #22
2016-10-07 19:29:42 -07:00
ryanhamshire 289b832b9a Ignored lots of compiler warnings.
Mostly these are deprecations from the Spigot team which I believe
shouldn't be deprecated.  For example, players refer to each other by
name, not UUID - so there will always be a need for player lookup by
name.  Also the block IDs are a well-documented standard that everyone
understands, even if they're not very human-friendly.  Plugins use those
IDs and data values to specify block types for example in config files.
As for the rest of the ignores, I either decided the warnings are just
noise based on the situation, or that I'm comfortable with the risks.
Possibly for the first time in 5 years of dev work on this plugin, I
just compiled without any warnings.  :)
2016-01-20 16:25:42 -08:00
ryanhamshire e8618c6a40 Improved logging for claim loading issues.
Specifically exceptions with NULL messages.
2015-12-23 07:56:14 -08:00
ryanhamshire 285d5c655a Improved logging for claim load failures.
Now includes identifying information to help server owner fix the
problem.
2015-12-15 13:43:38 -08:00
ryanhamshire 3611c09e7d More boot fixes. 2015-12-10 14:41:55 -08:00
ryanhamshire 9c00a47a29 Unique IDs for claim subdivisions.
Also performance updates and switch to YAML file format for flat file
data stores.
2015-09-12 14:17:00 -07:00
ryanhamshire 7faf3e52be Fixed intermittent exception saving player data. 2015-08-21 12:30:47 -07:00
ryanhamshire 4a5d0ae3fa Claim files for non-existent worlds are deleted.
Previously were not being deleted due to a bug (input stream left open,
file not deletable).
2015-06-09 21:19:37 -07:00
ryanhamshire d425f6736a Fixed database migration breakage.
Having to do with the new *.ignore files.
2015-05-21 19:24:55 -07:00
ryanhamshire b3cac816c6 Better logging for secondary storage problems. 2015-05-16 19:17:11 -07:00
ryanhamshire 14717bd4c7 Added /ignore and /separate.
Also companion commands like /unseparate, /unignore, and /ignorelist.
2015-05-16 13:00:55 -07:00
ryanhamshire 44fb29561e Faster UUID migration. 2015-01-31 13:05:51 -08:00
ryanhamshire 58ea48df06 Fix for data migration.
Overwriting new data with old data because both the file with the
lowercased name and a newer file with correct-cased player name both
exist.
2015-01-19 17:57:52 -08:00
ryanhamshire 14a57e28c6 Data migration fix. 2015-01-13 19:29:46 -08:00
ryanhamshire d15ac75e67 Data migration tweak.
This is for compat with an old version (maybe one of the betas?) which
was saving with a shorter ==== string to separate claims/subclaims.
2015-01-11 12:15:51 -08:00
ryanhamshire 51f6073193 Dropped an unused import.
No behavioral changes.
2015-01-05 21:08:47 -08:00
ryanhamshire febd8f0525 Made player data saving/loading more reliable.
Refactoring and retry loops are both EVIL, but I'm out of better ideas
now regarding the "player data randomly resets" bug.
2015-01-05 18:41:11 -08:00
ryanhamshire db0081e92e Better logging for failures to read claim data. 2014-11-13 19:45:40 -08:00
ryanhamshire 5865dc354b More event handler performance improvements.
Interact, teleport.  Also a fix for two bugs in 8.6.3 - one in interact
handler, the other during logout when the player hasn't loaded any data
from file yet.
2014-10-30 22:07:03 -07:00
ryanhamshire cb808ecacd Reduced CPU time for player login and logout.
By about 85%.
2014-10-30 19:24:07 -07:00
ryanhamshire 50d670a93c Perf boost for first-time logins. 2014-10-10 21:27:12 -07:00
ryanhamshire 31d1eea8f1 BugFix: Now really converting $/_ players in flat file mode.
Missed one of two filters the first time.
2014-10-10 16:06:53 -07:00
ryanhamshire 549ae3441f Now UUID-migrating players with $ and _ names.
Players with names starting with these special characters will now be
migrated.
2014-10-09 15:05:50 -07:00
ryanhamshire 29a2b8e17b UUID Migration Rework, Bug Fixes
Using multi-faceted strategy to better resolve UUIDs, and do it faster.
Fixed dispensers putting fluids in a neighboring claim.
Automatically deleting claims for worlds which no longer exist.
Streamlined visualization code, hopefully will reduce or eliminate weird
visualizations for VERY big land claims.
Removed option to disallow un-claiming land in creative mode.
Better default for last login date for new players or players who've had
their data deleted or lost.
2014-10-08 19:32:43 -07:00
ryanhamshire 04d628b01e Performance: Claim Lookup
Major perf improvement for claim search.
2014-10-04 19:48:03 -07:00
ryanhamshire 94fa70c9d9 Performance - Streamlined event handlers.
Lots of changes, all around reducing processing time, especially for
very common or very expensive-per-instance events.
2014-10-02 19:27:15 -07:00
ryanhamshire cd85562e40 Fix for human-controlled bot spam.
Mutes/bans bots used by a human player to send lots of identical
messages using different accounts while varying the message and limiting
message speed to work around anti-spam measures.
2014-09-29 15:36:51 -07:00
ryanhamshire ad57d1f7f7 Updated SQL code to account for database config differences. 2014-09-23 19:48:26 -07:00
ryanhamshire 6da42a9077 Added UUID support.
Rewrote and retested parts of the plugin to use UUIDs instead of player
names to uniquely identify players.  Added data migration code to
convert old data to the new (UUID) format.
2014-09-22 13:46:13 -07:00
ryanhamshire fe473ebcb8 Finished back compat with buggy beta versions.
Now claim and player data that were written by beta versions will be
automatically carried forward and used by newer stable versions.
2014-09-15 20:13:17 -07:00
Joshua Reetz 23f8272a70 Added in compatibility with newest beta build's data format by skipping
any lines with UUIDs in them.
2014-09-11 19:53:39 -06:00
Ryan Hamshire 452fd7f11a 5.9 2012-08-07 21:46:31 -07:00
Ryan Hamshire 9b277f5801 5.4 2012-07-18 17:18:04 -07:00
Ryan Hamshire 341e200c42 5.2 2012-07-16 20:17:12 -07:00
Ryan Hamshire 311db20522 5.1 2012-07-12 19:44:22 -07:00