Commit Graph

244 Commits

Author SHA1 Message Date
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 4aa94fabb4 Fixed easy workaround for CAPS filter. 2015-06-12 19:12:03 -07:00
ryanhamshire 32e2a91f14 Access trust slash commands list update.
Now supports slash commands with specific parameters, like "/warp
create".
2015-05-30 13:16:19 -07:00
ryanhamshire 6e821d44ee No claiming during PvP combat. 2015-05-18 16:03:28 -07:00
ryanhamshire 14717bd4c7 Added /ignore and /separate.
Also companion commands like /unseparate, /unignore, and /ignorelist.
2015-05-16 13:00:55 -07:00
ryanhamshire 02dee1f21e Fixed NPE during login.
Not sure how a player could NOT have an IP address at this point?  But
logs from customers show it happens somehow.
2015-05-07 15:22:32 -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 b53ec39fbb Perf: Equipping the golden shovel. 2015-04-26 17:50:51 -07:00
ryanhamshire 4a3c105294 Recalibrated the IP address sharing limit.
Ignoring players with 'got wood' achievement, but reduced default limit
to 3.
2015-04-26 13:12:33 -07:00
ryanhamshire 3af2fb39bb Added limits to IP sharing. 2015-04-24 20:04:04 -07:00
ryanhamshire 57d17423bf Better sign logging in abbreviated logs. 2015-04-24 18:36:21 -07:00
ryanhamshire 1da0a6f513 Anti-spam priority fix.
Attempt to beat NCP to the punch.
2015-04-23 20:46:25 -07:00
ryanhamshire c74eff07d7 Added abridged logs.
For server owners to very quickly and conveniently review chat logs by
day, and optionally GP administrative activity.  Also a debug mode for
log entries that would be too noisy for the standard server log.
2015-04-21 21:05:05 -07:00
ryanhamshire cad90078de Dragon eggs require build permission to teleport. 2015-04-08 14:35:39 -07:00
ryanhamshire 1c28e62fbd Spawn eggs require build permission. 2015-04-08 14:30:01 -07:00
ryanhamshire d15da5d02c Version to 11.1 2015-03-19 09:43:00 -07:00
ryanhamshire 80c0f55a88 Better logging for blocked spam messages. 2015-03-18 16:02:12 -07:00
ryanhamshire 68da411528 Preventing signs with blocked IP addresses. 2015-03-18 15:49:07 -07:00
ryanhamshire 0ec966d4fb Greatly reduced tolerance for IP address spam. 2015-03-16 20:23:55 -07:00
ryanhamshire a1db0cbb65 Removed a debug message. 2015-03-03 20:17:21 -08:00
ryanhamshire 8f85092618 Version to 11.0 2015-03-02 20:32:44 -08:00
ryanhamshire e28bb8a8bd Logging for suspicious bucket dumps. 2015-03-02 20:11:11 -08:00
ryanhamshire 07ea755b4d Protected cake. 2015-02-25 17:24:21 -08:00
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 a0d2edf346 Bug fixes for anti-spawn-camping feature. 2015-02-21 20:57:51 -08:00
ryanhamshire ff00b78189 Return cancelled pearls to players. 2015-02-20 18:49:12 -08:00
ryanhamshire 25e28c482a Spam filter tolerance adjustment for similar msgs. 2015-02-16 20:03:22 -08:00
ryanhamshire 2866d0cdea Emptying/filling cauldrons requires /ct. 2015-02-03 18:53:20 -08:00
ryanhamshire 31aa352648 Fixed /givepet not working in PvP worlds. 2015-02-03 18:48:01 -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 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 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 783c5a9844 Perf: Player interact event. 2015-01-26 16:07:33 -08:00
ryanhamshire 0a9d8e30dd Preventing chat after login until movement.
Anti-botting feature.  :)
2015-01-15 18:48:00 -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 8070da8dda Fixed disc theft. 2015-01-10 23:44:11 -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 cb6854abbb Fixed log spam for portals to nowhere. 2015-01-08 20:00:23 -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 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 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 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 7efdc80739 Fixed: Ender pearls don't require access trust. 2014-12-29 13:13:34 -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 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
ryanhamshire 528fda95ff Added pet protections. Tweaked drop protections. 2014-12-16 21:00:42 -08:00
ryanhamshire 2d94e6fdc7 Fixed overzealous protection of death drops.
Hash overlaps are to blame, I think.  Limiting protections to the
immediate area where the player died.
2014-12-15 21:00:45 -08:00
ryanhamshire aa575cbc02 Fixed log entries from chat slash commands. 2014-12-15 19:25:18 -08:00
ryanhamshire d18aa6cfe9 Fixed armor stand protection again.
Thanks for breaking it, Spigot team...
2014-12-15 19:19:44 -08:00
ryanhamshire 298830f076 Added show all nearby claims by holding shift.
While holding the stick.  Requires a new permission node, to avoid any
lag from spamming this operation.
2014-12-13 20:52:26 -08:00
ryanhamshire cabcebe807 Code cleanup.
No functional changes.
2014-12-13 11:37:10 -08:00
ryanhamshire af460009bc Added config options for eavesdropping. (2) 2014-12-13 11:27:50 -08:00
ryanhamshire da24015259 Added adverts for /ac and /acb.
So people who don't read the manual will stop asking me already.  :)
2014-12-09 15:03:02 -08:00
ryanhamshire f57fe68d7d Added death drop locks, removed /deathblow. 2014-12-08 18:58:19 -08:00
ryanhamshire fbd3c11f89 Removed debug message. 2014-12-04 16:16:24 -08:00
ryanhamshire 5a9732981f Workaround for 2x player interact event bug.
Spigot bug:
http://www.spigotmc.org/threads/one-right-click-player-interaction-fires-two-player-interact-events.37600/#post-431325
2014-12-03 17:26:08 -08:00
ryanhamshire 9361d5f219 Prevented armor stand building without permission. 2014-12-02 19:55:54 -08:00
ryanhamshire b7cb5dba51 Perf: Faster player name lookup by UUID. 2014-12-02 19:22:23 -08:00
ryanhamshire 71412a12c2 Protected armor stands. 2014-12-02 14:37:36 -08:00
ryanhamshire 4d59f90543 Protected new types of doors and gates. 2014-12-02 14:28:59 -08:00
ryanhamshire bfd93c2e7c Adjusted for breaking changes in 1.8. 2014-12-02 13:32:29 -08:00
ryanhamshire be0974bb25 Fixes: Non-Vanilla items and offline players.
Proactive defense against non-Vanilla items changing claimed parts of
the world without permission.  Fixed offline player caching not caching
all the players it should.
2014-11-21 21:35:04 -08:00
ryanhamshire b58e74aac3 Smarter player name to ID caching. 2014-11-20 18:41:20 -08:00
ryanhamshire f901ce2793 Perf: Offline player lookup by name.
By searching only players who've been online recently, the search is
made MUCH faster without trading a great deal of RAM to get it.
2014-11-19 18:43:44 -08:00
ryanhamshire 978f7a5ad1 Fix: Milking cows requires only /ct, not /trust.
Oddly, BOTH the block bucket event and the animal interact event fire,
and cancelling the block event also cancels the animal event.  Added a
workaround.
2014-11-17 19:28:45 -08:00
ryanhamshire 5df24c1302 Perf: Player Quit 2014-11-16 15:13:25 -08:00
ryanhamshire 647f874cc0 Workaround: Client-side fire bug.
When creative mode player tries to put out a fire without permission, it
APPEARS to succeed to that player, until he logs out and back in.  This
works around that by explicitly sending that player a block update for
the fire block, which really hasn't changed.
2014-11-13 19:27:50 -08:00
ryanhamshire aa9f847fb6 Perf: Bed protections. 2014-11-12 19:53:07 -08:00
ryanhamshire 47388f3f7c Option to disable horse protections.
Allows other plugins with different horse protections to work.
2014-11-12 18:41:51 -08:00
ryanhamshire 8acbee346e Perf: Player Interactions and Block Breaks
More perf boosts.  No more anti-tree-topping, and fires are no longer
protected by default (new config option).
2014-11-11 21:09:00 -08:00
ryanhamshire 02fba83551 Perf: Interactions, Fluid Flow, Block Deliveries
Improved performance for player interact handler, fluid flow handler,
and scheduled claim block deliveries.
2014-11-11 15:52:09 -08:00
ryanhamshire b80e1cc2cd Removed wilderness bucket ban for survival worlds.
It generates a lot of complaints.  /RestoreNature can be used manually
to quickly clean up any above-sea-level water or lava.
2014-11-10 19:08:11 -08:00
Matt D 96721a5053 Added support for optional horse protection to allow other plugins to manage these entities 2014-11-04 04:14:45 -05:00
ryanhamshire f7945c0e41 Updated soft mute eavesdrop format and color. 2014-11-03 16:05:38 -08:00
ryanhamshire 5ebd570fdf Tweak for team bot spam.
Should be fewer false positives for uninteresting but innocent chat
patterns.
2014-11-03 15:56:43 -08:00
ryanhamshire 9c1094b95b Added /SoftMute 2014-11-01 19:18:27 -07:00
ryanhamshire 5865dc354b More event handler performance improvements.
Interact, teleport.  Also a fix for two bugs in 8.6.3 - one in interact
handler, the other during logout when the player hasn't loaded any data
from file yet.
2014-10-30 22:07:03 -07:00
ryanhamshire cb808ecacd Reduced CPU time for player login and logout.
By about 85%.
2014-10-30 19:24:07 -07:00
ryanhamshire 5cd161a296 Improved underwater claim management.
Better visualizations while the player is underwater, and both the stick
and shovel now point "through" water.
2014-10-29 15:27:13 -07:00
ryanhamshire 00fbb0f257 Sheep can't be dyed or sheared without permission.
Note: The client will still update the sheep color even when the event
is cancelled.  Reconnecting to the server or shearing the sheep (with
/ignoreclaims) will prove the sheep was not actually dyed.
2014-10-29 15:10:04 -07:00
ryanhamshire 0ec63d6e1c Added "Farmtrust".
/ContainerTrust now grants permission to farm - use bonemeal on crops,
harvest crops, replant crops.  Does NOT allow for planting trees or
grass, or preparing new soil.
2014-10-23 19:57:25 -07:00
ryanhamshire d31990d257 Bug Fixes: Mod Access Trust and Subdivision Stick
Mod Access Trust config setting now also protects from left clicks.
Right-clicking in a subdivision with a stick does not produce an error.
2014-10-22 19:23:07 -07:00
ryanhamshire 6311bf86ee Performance improvement for player interact events.
Now ignoring all "left click on air" events.
2014-10-20 14:40:02 -07:00
ryanhamshire 682ec35503 Added /IgnoreClaims advertisement to animals.
For both attacking and right-click interaction.
2014-10-19 13:26:57 -07:00
ryanhamshire ca6024e151 Redesigned per-world claim mode configuration.
Much easier to understand and customize, especially for server owners
who are new to GP and have both survival and creative worlds.  Also, a
performance improvement - when claim creation is disabled in a world, GP
will not protect any existing claims in that world.
2014-10-19 13:19:53 -07:00
ryanhamshire f2634fa464 "Too far away" with stick reverts visualizations.
Used to leave current visualization in place.  This is clearer, and
gives players a handy strategy for erasing visualizations when standing
inside a large claim - just point up at the sky and right click.
2014-10-16 19:57:56 -07:00
ryanhamshire aa2f9121f3 Increased effective range for claim tools.
To 100 blocks from 50.
2014-10-16 19:55:46 -07:00
ryanhamshire ac657d8a5f Removed option to disable auto cleanup in creative mode.
Disabling this results in a big time opportunity for griefers, who can
just move their land claims around to build without limits.  Now it is
always on, so any builds left behind will vanish.
2014-10-13 13:50:48 -07:00
ryanhamshire fc56e461d7 Login cooldown to seconds.
Default to 60 seconds instead of 2 minutes.  Now configurable in
seconds.
2014-10-13 13:35:53 -07:00
ryanhamshire 74e70dd21a Perf boost for banned logout.
Banned players no longer have their data saved on logout.
2014-10-13 11:33:26 -07:00
ryanhamshire 67978608d8 Performance: Faster player name lookup.
Especially beneficial to /trustlist and error messages (like trying to
do something in a land claim without permission).
2014-10-09 15:39:16 -07:00
ryanhamshire 29a2b8e17b UUID Migration Rework, Bug Fixes
Using multi-faceted strategy to better resolve UUIDs, and do it faster.
Fixed dispensers putting fluids in a neighboring claim.
Automatically deleting claims for worlds which no longer exist.
Streamlined visualization code, hopefully will reduce or eliminate weird
visualizations for VERY big land claims.
Removed option to disallow un-claiming land in creative mode.
Better default for last login date for new players or players who've had
their data deleted or lost.
2014-10-08 19:32:43 -07:00
ryanhamshire 293317b369 Performance: Claim Lookup 2
Another big performance boost for claim lookup, and a reduction to the
number of player interact events processed by the plugin.
2014-10-06 20:42:53 -07:00
ryanhamshire 04d628b01e Performance: Claim Lookup
Major perf improvement for claim search.
2014-10-04 19:48:03 -07:00
ryanhamshire 94fa70c9d9 Performance - Streamlined event handlers.
Lots of changes, all around reducing processing time, especially for
very common or very expensive-per-instance events.
2014-10-02 19:27:15 -07:00
ryanhamshire ae56fdcbcc Banned players no longer show leave messages.
Admins still see the confirmation for the ban, and notifications for any
auto-bans (with reasons).  Players just aren't bothered with the leave
message.  Important for spam using lots of different accounts.
2014-09-30 20:57:54 -07:00
ryanhamshire cd85562e40 Fix for human-controlled bot spam.
Mutes/bans bots used by a human player to send lots of identical
messages using different accounts while varying the message and limiting
message speed to work around anti-spam measures.
2014-09-29 15:36:51 -07:00
ryanhamshire 94c93fbcb4 Debug message removal. 2014-09-24 17:19:01 -07:00
ryanhamshire 82ca509878 Workaround for getTargetBlock deprecation. 2014-09-24 17:18:12 -07:00
ryanhamshire b017aa0f47 Updated help links.
Shortened help links and ensured the point to the most up to date help.
Also redesigned the help so that the links are easier to update later.
2014-09-22 18:40:52 -07:00
ryanhamshire 6da42a9077 Added UUID support.
Rewrote and retested parts of the plugin to use UUIDs instead of player
names to uniquely identify players.  Added data migration code to
convert old data to the new (UUID) format.
2014-09-22 13:46:13 -07:00
ryanhamshire fe473ebcb8 Finished back compat with buggy beta versions.
Now claim and player data that were written by beta versions will be
automatically carried forward and used by newer stable versions.
2014-09-15 20:13:17 -07:00
ryanhamshire 06eeab3b72 Prevent leashing claimed creatures.
Using a leash on a creature in a land claim now requires the claim
owner's container trust.
2014-09-08 15:08:37 -07:00
ryanhamshire e841afb5c6 Prevent theft from hopper minecarts.
Hopper minecarts in claims now require container trust to access their
inventories.
2014-09-07 20:18:47 -07:00
ryanhamshire 50bb2d3298 Bug Fix: Protected animal message.
Fixed "That belongs to {0}." message to include the claim owner's name
when interacting with or attacking protected animals.
2014-09-06 20:13:41 -07:00
ryanhamshire 84e4c77375 7.6.2 2013-02-16 14:07:42 -08:00
ryanhamshire 37ca831612 7.6.1 2013-02-06 21:26:00 -08:00
ryanhamshire 2734ba1ae9 7.2.2 2013-01-24 19:45:39 -08:00
ryanhamshire 6fa1b7340c 7.2 2013-01-05 08:19:42 -08:00
Ryan Hamshire a74a663f4b 7.1.1 2012-11-28 17:50:30 -08:00
Ryan Hamshire 7f600e7098 7.0 2012-11-14 17:33:22 -08:00
Ryan Hamshire e09a6732ba 6.9 2012-11-07 17:36:25 -08:00
Ryan Hamshire 6632af96df 6.7 2012-10-06 10:52:17 -07:00
Ryan Hamshire 1f6223526b 6.4 2012-09-10 16:38:48 -07:00
Ryan Hamshire 008f313d09 6.3 2012-08-29 19:24:33 -07:00
Ryan Hamshire bd215673c0 6.1 2012-08-20 18:09:18 -07:00
Ryan Hamshire e746aa20c0 6.0 2012-08-11 15:38:26 -07:00
Ryan Hamshire 452fd7f11a 5.9 2012-08-07 21:46:31 -07:00
Ryan Hamshire 50f572fc2b 5.5 2012-07-23 08:17:55 -07:00
Ryan Hamshire 098a8c557f 5.3 2012-07-17 19:06:17 -07:00
Ryan Hamshire 311db20522 5.1 2012-07-12 19:44:22 -07:00
Ryan Hamshire 6cb8df52c7 5.0 2012-07-05 17:22:50 -07:00
Ryan Hamshire beec9c4e50 4.9 2012-07-01 14:44:07 -07:00
Ryan Hamshire 2e39b36f1b 4.7 2012-06-20 17:10:07 -07:00
Ryan Hamshire 0b27cb36d5 4.6 2012-06-17 10:33:20 -07:00
Ryan Hamshire afe868de2f 4.2 2012-05-30 19:16:46 -07:00
Ryan Hamshire 540746ad4b 3.8 2012-05-22 20:31:42 -07:00
Ryan Hamshire 136bf91c8a 3.6 2012-05-09 17:29:51 -07:00
Ryan Hamshire 0bed62739c 3.4.1 2012-04-30 20:11:39 -07:00
Ryan Hamshire 5037847814 3.3.2 2012-04-16 19:00:21 -07:00
Ryan Hamshire e68fd63194 3.2 2012-03-29 17:27:12 -07:00