Commit Graph

623 Commits

Author SHA1 Message Date
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
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 37198d09b1 Use wood pickup stat instead of achievement
1.12 removed achievements
2017-05-14 21:45:48 -07:00
zhro e2609b8973 Don't warn players about unclaimed land if they do not have the 'griefprevention.createclaims' permission. (#112)
Add an optional extended description…
2017-04-04 13:26:49 -07:00
BillyGalbreath 8fdb6e07ee Add PlayerKickBanEvent (#103) 2017-03-22 11:26:22 -07:00
David Precious 73fcd9a674 add new permission to show claim dimensions
Show the claim size to those with griefprevention.seeclaimsize when right-clicking with the investigation tool
(stick by default) - it's not exactly private information, the claim boundaries
are visualised so it would be easy to just count the blocks or compare the
coords of the corners to find out.
2017-03-17 09:37:58 -07:00
BillyGalbreath 3837794c56 Make sure the visualization event is called when auto reverting visuals (#104) 2017-03-12 23:50:02 -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
Rodzynus 678f442cda Account for 1.11 Horse class changes (#93) (#94)
* Fixed issue #93, this time using AbstractHorse entity.
2017-02-24 09:14:43 -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
Erik1988 b81e802b79 Option to globaly allow use of spawner egg (#91)
If enabled, players are allowed to place mob spawn eggs inn all claims (including admin claims).
2017-02-19 11:32:33 -08:00
BillyGalbreath b8a5cb79d1 Add idle claim block accruals percentage (#90)
(defaults to 0 for legacy behavior)

* Math fix :S
2017-02-18 19:23:13 -08:00
BillyGalbreath daf34703e4 Add configuration option for silencing login and logout notifications (#89) 2017-02-18 19:11:39 -08:00
RoboMWM 3043298640 v16.6 Compatibility with custom biomes that don't set a temperature 2017-02-04 13:13:07 -08:00
BillyGalbreath ac319f4e1c add configurable threshold for idle detection (#75)
Also fixes the no-movement idle detection.
2017-01-27 07:43:17 -08:00
BillyGalbreath 70469d1b4c Fix idle detection when other plugins handle AccrueClaimBlocksEvent (#71) 2017-01-21 16:34:44 -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 39e1e13dda Always schedule SendPlayerMessageTask 2017-01-20 06:15:52 -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
BillyGalbreath 9e4db8fb3e Add VisualizationEvent (#48)
* Add VisualizationEvent

Need to know if subdivides are showing or not

* Javadocs for VisualizationEvent
2016-12-04 17:23:35 -08:00
RoboMWM a8e9290cd8 Use a switch instead 2016-12-03 20:00:29 -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 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 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
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