Commit graph

2298 commits

Author SHA1 Message Date
Aikar
731f141042 Raise string limit for packet serialization
The default limit is possible to hit with 50 page books with color codes, causing clients to disconnect.

Bump the limit up a hair to above currently seen sizes.
2016-09-21 23:56:41 -04:00
MiniDigger | Martin
16a304fab2 [CI-SKIP] Add javadocs to readme (#427)
Add javadocs to readme
2016-09-22 05:50:38 +02:00
Aikar
663fbf798e Auto fix bad Y levels on player login
Bring down to a saner Y level if super high, as this can cause the server to crash
2016-09-21 23:49:27 -04:00
Aikar
59b9ad36e6 Remove FishingHook reference on Craft Entity removal
This caused some bugs chickeneer reported to me, with fishing.
2016-09-21 23:45:05 -04:00
Aikar
d330ae5050 Process NMS Data Conversion post ItemMeta on Copy
ItemMeta apply is a destructive process that expects to be the authority on
what the items NBT data is.

When CraftItemStack.asNMSCopy was called, the conversion ran, potentially setting
the converted data into the ItemStacks tag.

Then if that item had ItemMeta, it would completely undo that conversion by
erasing the NBT Tag.

On copy, run conversion post ItemMeta apply.
2016-09-21 23:42:13 -04:00
Aikar
cc1f66ce0e add a chunk registration fix
World checks and the Chunk Add logic are inconsistent on how Y > 256, < 0, is treated

Keep them consistent
2016-09-21 22:56:19 -04:00
Aikar
77825c2a60 Log chunk save failures as ERROR level 2016-09-21 22:33:09 -04:00
Aikar
6c7ea0b67a Auto Save Improvements
Makes Auto Save Rate setting configurable per-world. If the auto save rate is left -1, the global bukkit.yml value will be used.

Process auto save every tick instead of once per auto tick interval, so that chunk saves will distribute over many ticks instead of all at once.

Re-introduce a cap per tick for auto save (Spigot disabled the vanilla cap) and make it configurable.
2016-09-21 22:12:56 -04:00
Zach Brown
d6618994b5 Update upstream CB 2016-09-20 15:59:26 -05:00
Aikar
7c6d0644a2 Don't save players every tick, oops 2016-09-19 23:39:21 -04:00
Aikar
f18f712da2 Incremental Auto Saving
Process auto save every tick instead of once per auto tick interval, so that chunk saves will distribute over many ticks instead of all at once.
2016-09-19 23:31:42 -04:00
Zach Brown
7ec7c0ed95 Merge pull request #428 from kashike/feature/configurable-kick-messages
Configurable flying kick messages
2016-09-19 20:11:51 -05:00
Riley Park
57569597bd Configurable flying kick messages
Closes #423
2016-09-20 00:58:32 +00:00
Zach Brown
bc24e29dc5 Update upstream CB 2016-09-18 13:37:38 -05:00
Zach Brown
d9c982ac17 Add javax.annotations to the API
Used this set specifically because they are present in NMS already.
2016-09-16 14:38:52 -05:00
Zach Brown
66dc00b4dd Stop collideRule team from seeing invis 'friends'
More appropriately aligns ourself with the no team option, because the
collideRule team is only a team because it has to be, not because we want
anyone to have any sort of gameplay based relationship.

Also block any options from being set on this team to further enforce that
it is not a persistent team and should not be treated as such.
2016-09-15 16:36:57 -05:00
Zach Brown
e4251a092b Block minecart portal teleports in some instances
Mitigates GH-373
Technically a workaround rather than a true fix
2016-09-14 18:52:41 -05:00
Zach Brown
ca7a828688 Update upstrean CB/S 2016-09-11 14:55:02 -05:00
Zach Brown
4bf0ca21fe Make UseItem rate limiting stricter, configurable 2016-09-10 23:27:07 -05:00
Zach Brown
5ba385dd4c Fix patch, need to investigate build issues 2016-09-10 22:45:09 -05:00
Zach Brown
4b7796fe7c [ WHITESPACE ] 2016-09-10 22:09:14 -05:00
Zach Brown
4dcb73693a Add rate limiting to PacketPlayInUseItem as well
Also removes our toggle for Spigot's option, I doubt anyone uses it.
2016-09-10 21:42:47 -05:00
Zach Brown
89b26bb90d Commit CB changes as "Auto"
Helps when using git's annotate function
2016-09-10 21:31:32 -05:00
Zach Brown
b0a15ca1ea Further safety for player collision setting
Hopefully the end of similar problems
Fixes GH-415
2016-09-08 12:39:40 -05:00
Zach Brown
098dae2524 Run paper upstream from anywhere
woops
2016-09-07 19:45:47 -05:00
Zach Brown
7bd3964037 [CI-SKIP] Fix CONTRIBUTING.md formatting 2016-09-06 15:01:46 -05:00
Zach Brown
6dedb92652 Make collide team removal more patient, safer
Fixes GH-414
2016-09-06 12:33:47 -05:00
Zach Brown
64c6e06d95 Update upstream B/CB/S 2016-09-05 14:21:03 -05:00
Zach Brown
949fc0534f Create a team as needed for disabling collisions
Fixes GH-383
2016-09-04 17:29:25 -05:00
Zach Brown
b4eceb16ec Update upstream B/CB 2016-09-04 16:59:06 -05:00
Brokkonaut
449309fc3d Fix an AIOOBE in inventory handling
Closes GH-404
2016-09-04 16:49:29 -05:00
Zach Brown
65858cf283 Merge pull request #408 from kashike/feature/health-conversion
Convert new health to a float
2016-09-04 16:05:38 -05:00
Riley Park
7a403d82a0 @Zbob750 missed a few name changes 2016-09-04 06:26:05 +00:00
Zach Brown
e1423d87ba Update upstream B/CB/S 2016-09-02 22:44:52 -05:00
Riley Park
ac750065e3 Convert new health to a float during set
Convert the new health value to a float before doing any validation logic
2016-09-01 09:54:06 +00:00
Zach Brown
2df56fa35b Revert team creation for player collision setting
Needs more work, have redone it locally but its not quite ready for
prime time.
2016-08-31 19:22:43 -05:00
Zach Brown
0ccbb356f1 Rename patch file to be more specific 2016-08-31 17:18:54 -05:00
Aikar
f919bc9732 fix order of mc dev imports 2016-08-30 18:54:03 -04:00
killme
755861dfb6 Disable ticking of snow blocks 2016-08-30 16:42:17 +02:00
Zach Brown
246294d161 Make getEntity dead check more specific 2016-08-28 00:46:21 -05:00
Zach Brown
8a2d6a1790 Restore some timings functionality lost in last 2016-08-27 19:36:26 -05:00
Zach Brown
fcbbc76319 Update upstream B/CB/S
Remove two features added upstream
2016-08-27 18:41:58 -05:00
Zach Brown
a9481ee3c7 Update upstream CB 2016-08-21 14:52:19 -05:00
Aikar
086939fe19 Timings v2 updates for more chunk related timings (generations) 2016-08-20 00:07:26 -04:00
Aikar
6b24c4cfde Timings v2: confirm before reset. Add delays before report generation
Require user to confirm the timings reset, warning them that they should not be doing this.
Also require Timings to have ran for 3 minutes before allowing the report command.
Also require 1 minute intervals between reports to stop report spam.
2016-08-19 23:42:38 -04:00
Zach Brown
2bf8ae3251 Add upstreamMerge script to paper tool 2016-08-19 16:00:59 -05:00
Alfie Cleveland
3820e163d4 Optimise BlockStateEnum 2016-08-19 01:53:36 +01:00
Zach Brown
eacefd4282 Kick git and rebuild patches 2016-08-15 19:22:10 -05:00
Zach Brown
aec2bb905c Update upstream B/S 2016-08-15 18:51:55 -05:00
Zach Brown
e9de969c6f More changes to view distance API implementation
Should fix GH-381
2016-08-13 15:26:40 -05:00