Commit Graph

329 Commits

Author SHA1 Message Date
ryanhamshire f0625270fd Config option to limit slash commands in claims.
Some can now require access trust.  Default list is only /sethome.
2015-02-21 21:51:39 -08:00
ryanhamshire 5fc17b9a44 Permission to make a player siege immune. 2015-02-21 21:34:20 -08:00
ryanhamshire a0d2edf346 Bug fixes for anti-spawn-camping feature. 2015-02-21 20:57:51 -08:00
ryanhamshire 2f1e9af8d3 Bug fix for new claims mode. 2015-02-20 20:08:38 -08:00
ryanhamshire c40e8ac75c Survival Requiring Claims Mode
Disallows building/breaking outside of land claims, but doesn't involve
the other creative-mode rules.
2015-02-20 18:56:46 -08:00
ryanhamshire ff00b78189 Return cancelled pearls to players. 2015-02-20 18:49:12 -08:00
ryanhamshire 6fcaf3ac7d Perf boost for boot (file and db modes). 2015-02-16 20:14:47 -08:00
ryanhamshire 25e28c482a Spam filter tolerance adjustment for similar msgs. 2015-02-16 20:03:22 -08:00
ryanhamshire b86fded1db Bug fixes for /claimslist output. 2015-02-16 19:49:33 -08:00
ryanhamshire 63f70e3378 Fixed selling initial claim blocks. 2015-02-16 19:46:53 -08:00
ryanhamshire da4f0fda73 Bug fixes for animal vs splash potion protections. 2015-02-11 19:01:41 -08:00
ryanhamshire a29f18fe7a Bug fixes for recent /transferclaim changes. 2015-02-11 17:24:40 -08:00
ryanhamshire ed3347ab9b Automatic claim block totals corrections.
For settings changes and data fix-ups due to damage done by old bugs.
2015-02-11 16:00:44 -08:00
ryanhamshire 37bb74ec48 Added /ClaimsList <otherPlayer> permission. 2015-02-11 15:43:15 -08:00
ryanhamshire 27089048ea /TransferClaim updates.
1. Requires new transferclaim permission.
2. Does not adjust anyone's bonus blocks.
3. No argument means "make it an admin claim".
2015-02-11 15:39:30 -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 94739b58b0 Untrust in top level => untrust in children. 2015-02-05 18:16:17 -08:00
ryanhamshire e7e16e88fd UUID migration bug fix for database mode. 2015-02-04 16:21:26 -08:00
ryanhamshire c5ebc23615 UUID migration fix for very large servers. 2015-02-03 18:54:27 -08:00
ryanhamshire 2866d0cdea Emptying/filling cauldrons requires /ct. 2015-02-03 18:53:20 -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 31aa352648 Fixed /givepet not working in PvP worlds. 2015-02-03 18:48:01 -08:00
ryanhamshire 3208bcd2cb Fix: Hoppers don't pick up locked drops.
Now lethal traps can't steal the victim's items.
2015-01-31 13:31:13 -08:00
ryanhamshire 1e85ed931d Admin claims + delete claim = resize small.
Now players with both admin claims permission and delete claims
permission may resize another player's claim to smaller than the minimum
size.
2015-01-31 13:08:05 -08:00
ryanhamshire 44fb29561e Faster UUID migration. 2015-01-31 13:05:51 -08:00
ryanhamshire f3d301ddc9 Perf: Nether portal restrictions are now optional.
Defaults to off.  The cost of determining if and where a nether portal
will be generated when a player steps through a portal is very high, and
this "grief" is both very difficult to execute and opportunistic.  Also,
it's arguably a gift rather than an attack.
2015-01-29 19:50:34 -08:00
ryanhamshire 30998c3d75 Made expanding chest claims easier.
For players expanding for the first time - allow them to resize to less
than the max size as long as it's an expansion.
2015-01-28 14:09:04 -08:00
ryanhamshire 66b18a0193 Even more reliability for SQL connections. 2015-01-28 13:55:46 -08:00
ryanhamshire 8f566ce816 Another UUID conversion fix for database mode. 2015-01-28 13:38:16 -08:00
ryanhamshire 7e2c75e10b Improved world guard compat feature.
Now it knows about world guard override permissions.
2015-01-26 18:40:58 -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 bdb423970e Removed option requiring permission to claim.
Now it's always true, and all players have that permission by default.
One more seldom-used config option removed!
2015-01-26 16:32:00 -08:00
ryanhamshire 78f306dc9f Prevent ExtendIntoGroundDistance < 0
Someone tried this despite the default value being a positive number, to
bad effect.
2015-01-26 16:28:23 -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 8362a084da Faster claim extension. 2015-01-26 16:07:41 -08:00
ryanhamshire 783c5a9844 Perf: Player interact event. 2015-01-26 16:07:33 -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 14f2486b37 Fixed creative mode claims expiring too fast. 2015-01-19 11:36:52 -08:00
ryanhamshire 9e4c1e58ce Fixed migration to database from flat file.
Broke during perf updates.
2015-01-16 18:16:04 -08:00
ryanhamshire ff491c1443 Fixed "somebody" instead of name for new players. 2015-01-16 18:03:50 -08:00
ryanhamshire 1eb211f0aa Fixed a chat message.
Link wasn't clickable, formatting was broken.
2015-01-16 15:59:56 -08:00
ryanhamshire a25d323897 Fixed UUID migration NPE in corner case.
Happens when world has been deleted AND the owner's UUID failed to look
up, AND running in database mode.
2015-01-16 15:51:17 -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 0a9d8e30dd Preventing chat after login until movement.
Anti-botting feature.  :)
2015-01-15 18:48:00 -08:00
ryanhamshire 696df595bd Reduced frequency of "building outside claims".
Added a 10 minute cooldown period and administrators (those who can
create admin claims) won't see it at all.
2015-01-14 19:46:15 -08:00
ryanhamshire c26e0b3160 Perf: Deliver claim blocks task.
Now this task never has to read from file.
2015-01-14 17:39:44 -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 a7a132ccf8 Fixed visualizations not showing all subclaims. 2015-01-14 17:20:35 -08:00
ryanhamshire 14a57e28c6 Data migration fix. 2015-01-13 19:29:46 -08:00
ryanhamshire 62c3c997e2 Sign notification adjustment.
No notifications when sign contains only spaces.  Indentation of sign
content.
2015-01-13 18:25:33 -08:00
ryanhamshire f51d16bfa6 Made /rnf easier to use in grassy areas. 2015-01-12 21:59:35 -08:00
ryanhamshire ec7346ec43 Daylight detector protections.
Now requires build trust to invert (right click).
2015-01-12 21:57:06 -08:00
ryanhamshire 78c346f789 Villager protections.
Interacting (right click) now requires containertrust or higher.
2015-01-12 21:55:18 -08:00
ryanhamshire e90bae70db Added option to disable WG compat feature. 2015-01-12 13:24:09 -08:00
ryanhamshire 4dd791fa08 Added ClaimDeletedEvent.
Fires only for top-level claims (not subclaims), and not for
resizes(horizontal) or extensions (vertical).
2015-01-11 15:33:05 -08:00
ryanhamshire bea31f340e Added API to get the complete list of claims.
Returned list is read-only.
2015-01-11 15:15:52 -08:00
ryanhamshire 5e0d3f09de Added API to find a claim by its ID. 2015-01-11 15:08:40 -08:00
ryanhamshire 1d3214cbee Usability improvement for PvP worlds config.
No more typing world names.  Also easier to disable for all worlds if
that's what you want to do.
2015-01-11 15:06:03 -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 90df1f3194 More small claim visualization tweaks. 2015-01-11 13:12:09 -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 8070da8dda Fixed disc theft. 2015-01-10 23:44:11 -08:00
ryanhamshire 0cb4572269 Fixed blank lines sent for empty messages. 2015-01-10 23:22:19 -08:00
ryanhamshire 9a81a80fd2 Better visuals for narrow and/or short claims. 2015-01-10 23:20:47 -08:00
ryanhamshire b24984a398 Fixed cause of "some subclaims cant resize".
Also cause of "some subclaims can't be deleted".
2015-01-10 23:16:47 -08:00
ryanhamshire f901373f14 Fixed unwanted log entries for subdivision resize.
And now the confirmation messages are sending as they should.
2015-01-10 23:16:21 -08:00
ryanhamshire 6e6b0d3ee6 Tweaked message for resizing others' claims.
Now shows OWNER's claim blocks remaining, or zero for admin claims.
2015-01-08 20:26:47 -08:00
ryanhamshire 6f428fc1df Added a message to local claim search. 2015-01-08 20:12:58 -08:00
ryanhamshire 24f91ec509 Tweaked admin claims visualization style.
Edges to pumpkins from jackolanterns - less strain on the client to
recompute lighting.
2015-01-08 20:02:16 -08:00
ryanhamshire cb6854abbb Fixed log spam for portals to nowhere. 2015-01-08 20:00:23 -08:00
ryanhamshire ecd0664d66 UUID conversion reliability improvement.
From bug reports, seems the max batch size might have been changed by
Mojang.  Can't find any docs, so the code now starts with 100 per batch
and goes smaller with the first batch until it succeeds.
2015-01-08 19:40:08 -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
ryanhamshire c5fab8dcd9 Tweaked lava buckets near players rule.
Ignoring non-survival players because they can't be injured, and leaving
the nearby player's name out to avoid outing any invisible players.
2015-01-07 15:14:30 -08:00
ryanhamshire 6568e41b60 Narrowed the IP address spam filter.
This will be easy to work around, but fewer false positives.  GP's mute
style should minimize effort going into workarounds anyway.
2015-01-07 15:09:09 -08:00
ryanhamshire 01486f82dc Reintroduced world guard compat feature. 2015-01-07 14:53:19 -08:00
ryanhamshire cef4052cfd Fixed visualizations artifacting the horizon.
Workaround for a client bug triggered by sending block changes for
chunks the client doesn't have loaded.
2015-01-06 20:09:20 -08:00
ryanhamshire 51f6073193 Dropped an unused import.
No behavioral changes.
2015-01-05 21:08:47 -08:00
ryanhamshire 2c99b3a9e4 Nether portal fixes and perf optimizations.
Not checking when it's safe to not check.  Checking maximum one
location.  Unfortunately, asking the portal travel agent to find any
possible existing portal seems both expensive, and unavoidable in the
common case.
2015-01-05 21:05:05 -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 eb23d788bf Prevent unwelcome portals, don't redirect them. 2015-01-05 14:05:53 -08:00
ryanhamshire b666507320 Tweaked metadata for PlayerPortalEvent handler. 2015-01-05 13:28:10 -08:00
ryanhamshire 197609d4ba Temporarily disabled world guard compat feature.
Until the WG forums community can find a more efficient way to do this
without taking a hard dependency.
2014-12-31 12:20:18 -08:00
ryanhamshire 3448930f87 Nether portal redirections.
When a player doesn't have permission to build in a land claim where a
new portal is to be created, redirect his teleport to outside the land
claim.
2014-12-30 18:21:40 -08:00
ryanhamshire 8c758ce28b Fixed players getting stuck in nether portals.
This is a workaround for the spigot bug where a PlayerTeleportEvent
doesn't fire for portal teleportations.
2014-12-30 16:38:40 -08:00
ryanhamshire dfc4264aec Improved world guard compatibility. 2014-12-29 19:37:12 -08:00
ryanhamshire 744d39756c Fixed /acb [permission.node] for database mode. 2014-12-29 13:41:27 -08:00
ryanhamshire 7efdc80739 Fixed: Ender pearls don't require access trust. 2014-12-29 13:13:34 -08:00
ryanhamshire cd3e470cbc Allowed fluid flow parent claim to child claim. 2014-12-23 10:52:17 -08:00
ryanhamshire 7b280d2b22 Prevented cannons from putting blocks in claims.
e.g. sand and gravel cannons
2014-12-23 10:43:50 -08:00
ryanhamshire f0deef80aa Fixed overzealous CAPS and similar message filters. 2014-12-23 10:11:44 -08:00
ryanhamshire 9ecbb7b931 Added better first time help and claim count limit.
Help messages should be harder to miss and easier to understand.  Added
config option to limit total land claims per player, defaulted off.
2014-12-22 16:31:22 -08:00
ryanhamshire f5de6d5c33 Improved readability of /ClaimsList output. 2014-12-21 14:17:32 -08:00
ryanhamshire e8f31151d2 Fixed broken claim visualizations. 2014-12-21 14:06:04 -08:00
ryanhamshire 5a3319022a Added /GPBlockInfo
Useful for admins to set up their config files with correct IDs and data
values.
2014-12-21 13:32:09 -08:00
ryanhamshire 4a426f6469 Added /GivePet and tweaked pet protections. 2014-12-17 21:19:47 -08:00
ryanhamshire 14b0129c3e Allow admins to damage pets with /IgnoreClaims.
Also protecting pets from environmental damage which could easily be
caused by griefers.
2014-12-17 16:58:57 -08:00