Commit Graph

590 Commits

Author SHA1 Message Date
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
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
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 b07b8a678a /deleteclaim also restores nature, if configured to do so in survival worlds
Closes #11
2016-10-02 02:13:32 -07:00
RoboMWM b7162823e8 Allow portal rescue feature to work regardless if claims are enabled in the world
Seems like this check was intended for the
"portalCreationRequiresPermission," so when he threw in the portal trap
check, he didn't account for this check possibly breaking in worlds
where claims aren't enabled.
2016-10-02 01:59:30 -07:00
RoboMWM c4fcc327fa Cleanup executed tasks in hashmap 2016-10-02 01:22:40 -07:00
RoboMWM 2bfe8632a0 Remove /undorescue 2016-10-02 01:12:13 -07:00
RoboMWM e1955fb337 shorten portal "rescue" time to 20 seconds 2016-10-02 01:03:01 -07:00
RoboMWM 35a67de339 Use fancy new player#setPortalCooldown
As discussed in #13
- Also now using Paper repo (spigot repo was too slow to get CB with the
new portalCooldown API)
2016-10-02 01:00:54 -07:00
RoboMWM a2c9242adc Finished implementing new portal trap improvements #13
Probably will need some testing though
2016-09-30 12:56:23 -07:00
RoboMWM 8e7af23a13 Portal trap check changes (unfinished)
- Cancel existing rescue tasks on successful teleport
- Send the player a message when they are rescued (unfinished)

Someday, I will make this OOP-compliant
2016-09-30 10:48:19 -07:00
RoboMWM b78d1e6413 refactor portal trap check method 2016-09-29 23:56:36 -07:00
Erik1988 750fd1de5b Add option to allow /trapped to be used in administrative claims (#8)
erik1988:
Its now possible to allow players to use /trapped inside adminclaims.
Note that its off by default.
2016-09-22 13:14:03 -07:00
RoboMWM 7c5fe862cc Merge pull request #7 from CweepahCraft/unlockothersdrops
Add admin command to unlock the drops of other players.
2016-09-22 08:58:44 -07:00
MineTheCube 806f68967d Make DataStore#getGroupBonusBlocks(UUID) public
This improve compatibility with external plugins
2016-09-20 18:30:46 +02:00
RoboMWM 29538c69fe Ignore snowballs, etc. from triggering PvP timer
If _really_ desired, I could add an option for this. But more often than
not, unintended deaths could occur from players disconnecting from a
snowball fight.
2016-09-16 00:12:03 -07:00
RoboMWM 70ece72332 Remove unnecessary check for logging signs
Since we're also checking if location is the same, this really doesn't make much sense to store in the first place, unless of course we do some more string manipulation to store just the message and not the location.
2016-09-15 17:10:18 -07:00
ryanhamshire d4eef6eb37 Merge branch 'master' of https://github.com/BigScary/GriefPrevention 2016-09-08 18:36:09 -07:00
jjm223 d4ea1cfa03 Add admin command to unlock the drops of other players. 2016-09-08 18:57:23 -05:00
ryanhamshire 7efbd63f8d Fixed /abandonallclaims wrt pets
This command was releasing all pets in the abandoned land claims by
mistake.
2016-09-07 15:50:55 -07:00
Big Scary 9e1be73d46 Fix: Send new sign content to admins.
Accidentally broken by an earlier commit.
2016-09-07 15:35:40 -07:00
ryanhamshire 828e20cba8 Disable delayed logout messages by default.
This feature has value in anti-spam, but too many new GP installers are
confused by it.  Disabling by default to save support cost - also I
figure at least some are installing the plugin, seeing this as a "bug"
and uninstalling without bothering to get educated, and that's bad for
their players.
2016-08-30 20:39:45 -07:00
RoboMWM 9afec8dfe8 Fix sign logging/spam detection 2016-08-28 13:30:01 -07:00
ryanhamshire a76b834495 More reliable IP address limit. 2016-08-28 13:10:18 -07:00
Big Scary 7f95d70d4d Work around falling block issue in Spigot
Don't convert falling blocks which pass through portals to items.
2016-08-28 13:07:50 -07:00
RoboMWM 359f5f50d1 Ignore falling blocks that pass through portals.
This is due to CB erroneously firing EntityChangeBlockEvent twice when a
falling block falls through an end portal
2016-08-26 19:59:03 -07:00
RoboMWM 1b77f12a4b broaden nether portal trap check 2016-08-26 19:44:18 -07:00
ryanhamshire 86a18e2f04 Added PreventBlockBreak event.
Supports the new SpleefArena flag in GriefPrevention flags.  Fired when
a player is prevented from breaking a block.  If cancelled by another
plugin, the break will be allowed.
2016-08-17 11:09:05 -07:00
ryanhamshire b5236aed9a Permission to teleport around besieged areas.
Intended for administrators.  Defaults on for server ops.
2016-08-12 20:58:51 -07:00
ryanhamshire 70b8c242e2 Polar bears are not protected inside land claims.
Because they can sometimes be aggressive, they could be used to kill
other players in a non-pvp environment.
2016-08-12 20:56:02 -07:00
ryanhamshire 2b8af6a3e0 Tweaked initial softmute experience for admins.
When a player is auto-muted for using banned word, online admins will
now see that chat.
2016-08-12 20:54:08 -07:00
ryanhamshire ebaa6235a0 Placing end crystals requires build permission. 2016-08-12 20:41:36 -07:00
Ryan Hamshire dad90a795f Merge pull request #52 from bigpresh/no_siege_yourself
No siege yourself
2016-08-08 15:42:38 -07:00
ryanhamshire bed2e11c59 Improved spam detection.
Now blocking poetry spam and padded message spam.
2016-08-08 15:39:08 -07:00