Commit Graph

94 Commits

Author SHA1 Message Date
ryanhamshire b51a4cbf8a Fixed lingering potion of harm grief.
Doesn't damage protected entities (like claimed animals).
2016-03-20 19:51:33 -07:00
ryanhamshire 3e260ac21e Protected ender crystals.
In land claims, damaging one requires build trust.
2016-03-20 13:54:56 -07:00
ryanhamshire 110f4e2009 Fixed ender crystals damaging protected animals. 2016-03-20 13:51:19 -07:00
ryanhamshire 260db50cc3 API - GPFlags Support
Updated the API to support two new GriefPreventionFlags flags.
2016-01-31 09:02:46 -08:00
ryanhamshire ac68b95301 Protected death loot doesn't take damage.
Previously, griefers could destroy it with fire or lava for example.
2016-01-28 10:19:36 -08: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 44f46368b2 Revert "No projectiles in creative mode worlds."
This reverts commit 384599164d.
2016-01-20 11:31:31 -08:00
ryanhamshire 7c447f64ca Revert "Reduced projectile ban to splash potions."
This reverts commit 74ab5aa515.
2016-01-20 11:31:25 -08:00
ryanhamshire 74239ba15f Revert "Revert "Reduced projectile ban to splash potions.""
This reverts commit 5e3aa30e21.
2016-01-20 11:30:58 -08:00
ryanhamshire 5e3aa30e21 Revert "Reduced projectile ban to splash potions."
This reverts commit 74ab5aa515.
2016-01-20 11:30:43 -08:00
ryanhamshire 74ab5aa515 Reduced projectile ban to splash potions.
Referring to previous commit.
2016-01-20 11:16:57 -08:00
ryanhamshire 384599164d No projectiles in creative mode worlds.
Prevents some grief strats which result in crippling server lag or
crashes.
2016-01-20 11:10:55 -08:00
ryanhamshire 89419ebade 13.5.2 Changes
Various, see changelogs on dev.bukkit.org or spigotmc.org.
2016-01-11 20:13:13 -08:00
ryanhamshire 32d65b5f58 Better experience around entity limits.
Armor stands weren't handled well - if a player directed an armor stand,
he may come back later to find some other items like paintings for
example missing.  Now if at the limit, no placing new armor stands or
interact with (putting items on) existing stands.
2015-12-20 20:30:00 -08:00
ryanhamshire 280db0e352 Config option to protect pets in PvP.
Was previously always not protecting pets in PvP worlds.  That is still
the default, but added an option to protect them (except wolves which
can attack players) in those worlds.
2015-12-03 17:48:44 -08:00
ryanhamshire e52627f08d Added an option to prevent rabbits eating crops. 2015-10-21 12:58:21 -07:00
ryanhamshire 2182216499 Fixed invincible attack dogs.
Fix:  When vanilla PvP is on, but GP config says it's off in a world,
dogs are invincible even though they can attack players.
2015-09-14 20:06:49 -07:00
ryanhamshire e688627304 Siege: TNT destroys soft blocks.
During a siege, TNT may destroy soft blocks regardless of surface
explosion rules.
2015-08-28 18:01:17 -07:00
ryanhamshire 9b9303dd6f Protected squids in land claims. 2015-08-21 12:48:08 -07:00
ryanhamshire b95c34b6f2 Allowing other plugins to disable PvP protections.
Now plugins that want to can selectively disable GP's PvP protections.
2015-07-30 16:56:09 -07:00
ryanhamshire 797f46882b Fixed PvP rules worlds config setting.
Previously applied SOME pvp rules to non-pvp worlds.
2015-07-17 20:19:55 -07:00
ryanhamshire 2b04da4b25 Fixed invincible guard dogs.
In PvP worlds, while in land claims, dogs could attack players but not
be damaged in return.  Now pet dogs are not protected in PvP-world land
claims.  Other types of pets are still protected as long as they're
inside a land claim where the attacker doesn't have sufficient
permission.
2015-06-27 09:34:34 -07:00
ryanhamshire a3969c168c Added smarts for PvP rules in undeclared worlds.
For worlds which aren't listed in the config file because they weren't
detected when GP booted, GP will use Bukkit's world.getPvP() method.
2015-06-17 19:11:23 -07:00
ryanhamshire d1e29e7972 If in PvP combat, not protected from PvP by claims.
Also a bug fix for the /ignoreclaims override to bypass pvp immunity in
land claims.
2015-05-21 20:23:25 -07:00
ryanhamshire e23d8a956a Updated bypass rule for pvp in land claims.
Previously used undocumented permission, now determined by whether or
not the attacker is in /ignoreClaims mode.
2015-05-16 19:05:34 -07:00
ryanhamshire d861688c04 Better config control over villager protections.
Now disabling creature protections allows players to injure villagers
without permission in land claims, and whether trading with villagers
requires permission is now an option in the config file, with default
on.
2015-05-03 13:17:45 -07:00
ryanhamshire af9fb6d56f Fixed bugs with explosion protection options.
All permutations now work as intended.
2015-04-21 21:25:04 -07:00
ryanhamshire fa50376e46 Fix: Horse protections can be entirely disabled.
Previously, horses were still protected from damage in land claims even
when the config file said horses should not be protected.
2015-04-12 12:44:24 -07:00
ryanhamshire 38cbab1c40 Fixed explosions destroying too many blocks.
Due to a breaking Spigot change in 1.8.3.
2015-04-08 14:16:06 -07:00
ryanhamshire e91924eb94 Updated /ClaimExplosions and global explosions.
Now even when surface explosions are blocked, both /ClaimExplosions and
the global config option to allow all explosion damage inside land
claims will override that block.
2015-03-28 13:30:08 -07:00
ryanhamshire 123fc4c284 Fixed PvP immune players attacking pets. 2015-03-28 12:56:57 -07:00
ryanhamshire 89a434f200 Option to allow explosion damage in land claims. 2015-03-18 16:13:10 -07:00
ryanhamshire c781eca5c5 Fixed pvp rules applying where they shouldn't. 2015-03-18 15:51:18 -07:00
ryanhamshire 447a8a1fc4 Ender pearls don't trigger PvP combat mode.
Broke this when I fixed the issue with other plugins cancelling PvP
events.
2015-03-16 18:56:25 -07:00
ryanhamshire 347085e8e0 Fixed "combat" starting for blocked damage events.
When another plugin prevents an attack, neither player should be put "in
combat" where GP's combat rules are concerned.
2015-03-03 20:35:53 -08:00
ryanhamshire 394a6b279d Allowing monsters to hurt claimed villagers. 2015-03-02 20:15:37 -08:00
ryanhamshire da4f0fda73 Bug fixes for animal vs splash potion protections. 2015-02-11 19:01:41 -08:00
ryanhamshire c8d7c3a08a Fixed poisoning of claimed animals. 2015-02-11 15:30:30 -08:00
ryanhamshire c0a99f9e59 Fixed dispenser projectiles vs claimed animals. 2015-02-09 18:53:27 -08:00
ryanhamshire ac0a87124f Fixed self-damage putting a player "in combat".
Fixes especially ender pearls + immediate disconnect = death.
2015-02-06 18:45:00 -08:00
ryanhamshire b04625d861 Fixed animals and monsters trampling crops.
To avoid trampling by griefers spamming chicken eggs or baiting monsters
into fields.
2015-02-03 18:50:54 -08:00
ryanhamshire c7b9897738 Jump potions on animals require container trust.
Otherwise griefers use it to steal animals over fences with bait.
2015-01-26 16:40:08 -08:00
ryanhamshire b88e8da888 Workaround: mcMMO bleed effect.
When GP cancels the damage event, mcMMO still applies "bleed" effect to
entities.  Trying to work around this by reducing priority so that
hopefully GP code will run before mcMMO code.
2015-01-26 16:23:00 -08:00
ryanhamshire 783c5a9844 Perf: Player interact event. 2015-01-26 16:07:33 -08:00
ryanhamshire 2ca6b429e3 Fixed player controlled mounts killing crops.
(Even when creatures trampling crops is allowed.)
2015-01-15 18:56:19 -08:00
ryanhamshire 84731dc28e Injuring villagers requires build trust.
Up from container trust previously.
2015-01-14 17:28:09 -08:00
ryanhamshire 682ededb81 Stronger protections for item frames, armor stands.
Now requires build trust to do damage, since they're decorative.
Right-click access is still container trust.
2015-01-14 17:24:57 -08:00
ryanhamshire 488f6e70e3 Performance tweak for previous. 2015-01-11 14:49:43 -08:00
ryanhamshire 338d310fe7 Limited negative splash potion effects.
Won't effect players standing in a no-pvp area, or any players when
thrown from a no-pvp area.  Positive effect potions are not limited.
The thrower can always negatively effect himself.
2015-01-11 14:48:40 -08:00
ryanhamshire 1e0830542d Allowing environmental damage to minecarts.
Still not TNT, creepers, or players (without permission).
2015-01-07 20:08:04 -08:00