Commit Graph
100 Commits
Author SHA1 Message Date
RoboMWM f6b35d71bf Claim expiration: improvements+config option. Closes #24
- Claim expiration collects all players (uuids) that own claims, and
iterates this set instead of iterating through every single claim.
- Individual claims had a "last modified" timestamp, so this method was
valid before, but makes no sense now since expiration is based on player
inactivity instead of claim inactivity.

New config option under the advanced node allows controlling the
frequency each player in the aforementioned set is checked for
inactivity.
2018-09-22 05:21:00 -07:00
RoboMWM 93a36dd9e1 Remove old try-catch block, add metrics 2018-09-22 04:47:40 -07:00
RoboMWM 2ead578666 Make the version explicitely a string. Not sure if CB or yaml is at fault here
[20:58:37] RoboMWM: hmmm it's a bit annoying how CB cuts off the
trailing 0 in my versions
[20:58:49] RoboMWM: e.g. 16.10 displays as 16.1
[20:59:02] +Choco: That seems... stupid? lol
[20:59:12] RoboMWM: very
[20:59:27] RoboMWM: plugin.yml inside jar reveals it to be correct
[20:59:43] RoboMWM: and afaik this is supposed to be a string so idk why
it's doing that
[21:00:49] RoboMWM: apparently wrapping it with single quotes does the
job
[21:01:33] +Choco: Maybe it assumes it's a double then converts it to a
String
[21:02:04] RoboMWM: I guess >_> since I stuck a test.16.10 without
quotes and it's all there
[21:02:09] RoboMWM: thank you yaml
[21:02:22] +Choco: What if you were to do 1.1.10?
[21:02:30] +Choco: Because that's not a valid number, maybe it would
assume String
[21:02:33] RoboMWM: the second dot probably makes it a string
[21:02:51] RoboMWM: maybe I should do 16.1O
[21:02:57] +Choco: lol that's cheating
2018-09-19 21:05:42 -07:00
RoboMWM fb6bc79fe9 testing github templates 2018-09-19 16:04:27 -07:00
RoboMWM ad273c1a1b version 16.10 2018-09-19 01:05:10 -07:00
RoboMWM 5bb3c70b77 Prevent drivers in unauthorized claims from destroying lilypads. Fixes #250 2018-09-19 01:02:37 -07:00
RoboMWM cb6a42cbc6 Don't "reload" the database when migrating to SQL
FYI, I do not recommend migrating to SQL for GP.
Fixes #369
2018-09-19 00:57:14 -07:00
RoboMWM 5e2f128a8d sieged claims are never pvp-safe zones. Fixes #199 2018-09-19 00:36:21 -07:00
RoboMWM 59196f4742 Also protect pets from cacti, drowning in non-PvP worlds.
Closes #213, #79
2018-09-19 00:28:29 -07:00
RoboMWM e21a781536 Cancel item merging with protected drops. Closes #255 2018-09-19 00:02:40 -07:00
RoboMWM ad1f32ec8e don't send message when canceling trampling of turtle eggs, closes #373 2018-09-18 23:51:04 -07:00
RoboMWM d31c62e233 catch more instances of people using outdated worldguard versions 2018-09-18 23:49:05 -07:00
RoboMWM a764eea215 add syncronized keyword to hopefully fix plugins that insist on calling this method asynchronously
May close #279
2018-09-07 16:59:47 -07:00
RoboMWM 2f190a926a version 16.9 2018-09-04 22:26:33 -07:00
RoboMWM 35a80407be Breaking turtle eggs only seem to fire a PlayerInteractEvent. Closes #364 2018-09-04 13:18:33 -07:00
RoboMWM ebd7e1b0d0 Check if claim owner is abandoning claim before adjusting accrued claim blocks. Closes #322 2018-09-04 13:11:26 -07:00
RoboMWM bea2fa3d7f Disallow interaction with Fish in claims, closes #353 2018-08-19 11:36:19 -07:00
RoboMWM 59d0cfc56c Avoid unnecessary call to setAccruedClaimBlocks when AbandonReturRatio is set to 1.0 2018-08-17 17:25:46 -07:00
RoboMWM d1adf26573 prepend explanation for failed claim and playerdata loads 2018-08-17 10:17:56 -07:00
RoboMWM e17403feb2 Perform sanity check on nextClaimID, closes #207 2018-08-17 10:15:35 -07:00
RoboMWM d8e0a094e4 fix wrong parameter used in /gpblockinfo, closes #313 2018-08-17 09:45:44 -07:00
RoboMWM 0581f7314a Don't destroy tridents, mitigates #330 2018-08-17 09:20:41 -07:00
RoboMWM e2883ce7b1 Prevent TNT ignition in areas with no build access. Closes #356 2018-08-17 09:08:34 -07:00
RoboMWM 187df11b20 version to 16.9.alpha 2018-08-13 07:21:10 -07:00
RoboMWMandGitHub 03f2ff5568 Add hyperconomy to softdepend
According to #97 hyperconomy loads after GP. See #97 for discussion and etc. on a proper way to fix/avoid requiring this for any other economy plugins that happen to load before GP does.
2018-06-11 23:25:48 -07:00
RoboMWM 0c95165af0 Goodbye travis, hello shiny new appveyor 2018-04-25 00:18:54 -07:00
RoboMWM 92299d683b make sendMessage public
Allows tighter integration with addons that wish to augment core GP
features/commands.
2018-01-01 15:44:13 -08:00
RoboMWM 05497b7b6a ensure worldguard warning is printed to server console 2017-12-23 08:41:43 -08:00
RoboMWM c6b3c3c4ab version 16.8 2017-12-23 08:29:11 -08:00
RoboMWM 9c5c7523a2 add fallback to old id-based system for chunk snapshots 2017-12-23 08:28:12 -08:00
RoboMWM fd0ddbf405 handle case of server not having ChunkSnapshot#getBlockType
i.e. tell server owner to update and handle conservatively.
2017-12-20 09:57:19 -08:00
RoboMWMandGitHub 2a68fb9795 Update ISSUE_TEMPLATE.md 2017-12-20 09:29:09 -08:00
RoboMWM 9414700d40 ignore vanilla teleports. Fixes #210 2017-12-20 09:26:31 -08:00
RoboMWMandGitHub 7aa9680876 Add option to disable negative claim block amount fixing (#236) 2017-12-19 14:05:27 -08:00
RoboMWM 452a6a1c7e Add a delay before immediately rescuing players trapped in nether portals
In case they actually aren't and lagged out (perhaps due to chunk
loading), they'll have a few seconds to be able to walk out before being
automatically rescued on reconnect.

Also logs when a player has been rescued
2017-07-23 14:48:16 -07:00
RoboMWM 92a0adcfc0 Avoid hidden files as well when migrating to MySQL
Related to #158
2017-07-22 00:25:56 -07:00
RoboMWM 04bc32336c Implement #114 2017-07-22 00:19:09 -07:00
RoboMWM d079fcf379 Warn server owners about use of out-of-date Worldguard
closes #162
2017-07-21 23:24:52 -07:00
RoboMWM 4cb2abefeb Add a code comment explaining why we do this
Fixes #85
2017-07-21 23:15:48 -07:00
RoboMWM 9a642205d7 Revert "Always schedule SendPlayerMessageTask"
This reverts commit 39e1e13dda.
2017-07-21 23:12:35 -07:00
RoboMWMandGitHub 8d0e5e8e5f Remove alias /dc for /deleteclaim
Could be typo'd accidentally.

> was trying to type /sc for staff chat and typed /dc by mistake
2017-07-17 20:36:09 -07:00
RoboMWM e5dc0f2861 travis, we use java 8 2017-07-09 09:28:21 -07:00
RoboMWM 39a4758c04 compile with java 8
A PR will be using it, and MC now uses Java 8.
2017-07-09 09:24:33 -07:00
RoboMWM f918ee18bc Disable DeniedMessageEvent
I don't know if this is the problem regarding another similar issue, but
I'd rather not risk it + it's likely not being used
2017-06-15 22:44:02 -07:00
RoboMWMandGitHub 8e484ad4f7 Update README.md 2017-05-15 01:06:53 -07:00
RoboMWM ae0b0520dc version 16.7.1 2017-05-14 22:18:30 -07:00
RoboMWM f439ea62c0 Use banlist
because offlineplayer methods for setting ban have been long deprecated
and are now removed.
2017-05-14 22:17:58 -07:00
RoboMWM cefa66767c remove unused import 2017-05-14 21:53:29 -07:00
RoboMWM e6dc0d5104 version 16.7 2017-05-14 21:52:42 -07:00
RoboMWM 37198d09b1 Use wood pickup stat instead of achievement
1.12 removed achievements
2017-05-14 21:45:48 -07:00
RoboMWM 8392069960 Merge branch 'master' of https://github.com/TechFortress/GriefPrevention 2017-02-24 14:24:10 -08:00
RoboMWM ec08a8b52b a tad more debug messages
Basically to help diagnose #95 and any future related issues.
2017-02-24 14:24:03 -08:00
RoboMWM 261620747e more debug logging 2017-02-24 12:48:59 -08:00
RoboMWM 82e7f9fc3f Don't let TNT be dropped in end portals
Necessarily this shouldn't be an issue anyways since the platform is
obsidian.

Also, if you have claims enable in the end, you should theoretically be
already protected.
2017-02-23 10:23:38 -08:00
RoboMWM 3043298640 v16.6 Compatibility with custom biomes that don't set a temperature 2017-02-04 13:13:07 -08:00
RoboMWM e5d81e76a2 ok I didn't catch them all
yea this needs to be rewritten
2017-01-20 07:13:38 -08:00
RoboMWM 7545d36034 version 16.5.1 2017-01-20 06:16:28 -08:00
RoboMWM 39e1e13dda Always schedule SendPlayerMessageTask 2017-01-20 06:15:52 -08:00
RoboMWM 8b8178b327 version 16.5 2017-01-18 11:17:04 -08:00
RoboMWM 208c8f0c72 Temporarily fix #62
Potentially related: #53
2017-01-18 11:09:17 -08:00
RoboMWM 0d26d6c65b Implement DeniedMessageEvent
Partially addresses #57
2017-01-04 13:17:59 -08:00
RoboMWM 70f3be68d3 Merge branch 'master' of https://github.com/TechFortress/GriefPrevention 2016-12-03 20:00:36 -08:00
RoboMWM a8e9290cd8 Use a switch instead 2016-12-03 20:00:29 -08:00
RoboMWMandGitHub 332a9346aa Update README.md 2016-11-20 19:40:24 -08:00
RoboMWM b36692ffec Version to 16.4 2016-11-20 19:01:46 -08:00
RoboMWM eeadbfa568 API: per-player claim limits
Note: this is not persistent.
2016-11-20 18:56:00 -08:00
RoboMWM 514b0e5949 Add negative value check when accruing claim blocks
to prevent plugins from doing nasties
2016-11-20 17:40:26 -08:00
RoboMWM 11d6d3cf13 v16.3: Fix debug message variable 2016-11-20 17:34:00 -08:00
RoboMWM f173ae9ddc Let's not deliver 6 times the intended claim blocks
Thanks Billy
2016-11-20 17:29:53 -08:00
RoboMWM 409f2f7b33 Remove redundant call
Also remove todo, since it's possible to use the bonus claim blocks to
"extend" the claim block limit via an addon:
https://github.com/TechFortress/GriefPrevention/issues/41#issuecomment-261471314
2016-11-20 17:18:38 -08:00
RoboMWM d7e1b7d812 version to 16.2 2016-11-20 16:23:27 -08:00
RoboMWM 72070c8df3 Protect flower pots 2016-11-20 15:02:35 -08:00
RoboMWM 410dc3c3da v16.1: don't protect villagers from new mobs 2016-11-20 14:31:10 -08:00
RoboMWM 2c5cb67af0 version 16 2016-11-20 13:54:49 -08:00
RoboMWM 2fac38aa7e No need to give benefit of doubt since we now have one global accrual limit
- Might also be related to #41, #36, #28
2016-11-17 23:58:37 -08:00
RoboMWM 12758b5a03 Close #25
- Witches can no longer apply potions to claimed animals (as if they
were an untrusted player)
- Protect claimed villagers as well

- Don't cancel entire event when we're protecting a single animal.
2016-11-17 23:20:08 -08:00
RoboMWM d6caffb2e2 Use 1.11 API, commented on code to possibly remove 2016-11-17 02:14:47 -08:00
RoboMWM 554bb94832 Some documentation on the new event 2016-11-15 13:10:04 -08:00
RoboMWM 201ba58c3e Remove custom accrual limits and rates
Related to #18

Will likely make an API/custom event for accrual limit(?)
2016-11-15 13:04:29 -08:00
RoboMWM 3a3d3632a9 Implement AccrueClaimBlocksEvent. Closes #18 2016-11-15 12:36:59 -08:00
RoboMWM 17854cf2d5 Removed unimplemented message 2016-11-06 11:45:58 -08:00
RoboMWMandGitHub afa251dc90 The github web editor is junk now for w/e reason 2016-10-28 01:14:39 -07:00
RoboMWMandGitHub a3e51bdb91 add jitpack badge thingy cuz y not 2016-10-28 01:06:42 -07:00
RoboMWM e565b433be use entity type vs. instanceof where possible 2016-10-23 05:44:46 -07:00
RoboMWM 2f186bdf88 Print the server's /version if people don't update CB
https://www.spigotmc.org/threads/how-do-i-do-this.187026/#post-1964612
2016-10-20 22:49:06 -07:00
RoboMWM 807f6f5899 Actually fix #27 2016-10-11 12:21:38 -07:00
RoboMWM 047f4d89d2 Fix #27 2016-10-10 19:58:32 -07:00
RoboMWM 8eb6ac9543 Make creative mode claims actually go to bedrock 2016-10-09 00:18:22 -07:00
RoboMWM 26f3578a03 Extra check on getLastPlayed
In case getOfflinePlayer failed, or getting a proper claim owner failed
somehow.

Yup, that's where I was going to add it.
Closes #22
2016-10-08 15:49:17 -07:00
RoboMWM 5638f02bf0 Reading update notes is hard
Also, stop using static (One foot in front of the other)
2016-10-08 11:57:34 -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
RoboMWMandGitHub f7319e2431 Update ISSUE_TEMPLATE.md 2016-10-07 11:32:34 -07:00
RoboMWMandGitHub b83ee956b4 Update ISSUE_TEMPLATE.md 2016-10-07 11:32:17 -07:00
RoboMWMandGitHub 415ceaa34d Create ISSUE_TEMPLATE.md 2016-10-07 11:31:25 -07:00
RoboMWM 7a35825386 Disable the plugin correctly
I stared at this for a moment, and then thought to myself - this is
probably the correct way to disable a plugin.
2016-10-05 00:06:17 -07:00
RoboMWM 10ae47ec14 return; 2016-10-04 19:57:48 -07:00
RoboMWM 7af3d37675 Warn Java 7 users of their impending doom 2016-10-04 19:56:46 -07:00
RoboMWM a70cde344f Don't use minecraft logger
Part of 1 of a zillion bad practices to fix
2016-10-02 12:21:38 -07:00
RoboMWM ebfef4d688 Ok worldedit maven repo people, I know 6.1.5 exists... 2016-10-02 02:28:19 -07:00