Fixes DecodingException caused by first-joiner

Ensures that the CipherCoded(ChannelHandler) is added right in time to the
channel pipeline before the next packet arrives by the client.

Thanks @md_5 for working with me to resolve this and pushing a fix to
Spigot

Signed-off-by: XemsDoom <moser.luca@gmail.com>
Fixed formatting on else (OCD)
Signed-off-by: Steven Downer <grinch@outlook.com>
Prevent handshake spam from invalid names.

Conflicts:
	src/main/java/org/bukkit/craftbukkit/Spigot.java
Debug mode false by default for stable builds
Signed-off-by: Steven Downer <grinch@outlook.com>
Make Slimes fire EntityTarget events. Fixes BUKKIT-1408
When moving a misplaced chunk move tile entities too. Fixes BUKKIT-4092

When a chunk is being loaded the server checks to ensure the chunk's idea
of where it is located matches where it was located in the region file. If
these two values do not match the chunk's idea of its position is updated
and the chunk is reloaded. In vanilla minecraft this loading involves the
chunk's tile entities as well. With the change to loading player chunks
asynchronously we split loading tile entities to a separate step that takes
place after this check. Because of this tile entities are loaded with
invalid locations that result in trying to fetch block data from negative
or too large positions in the chunk's internal block storage arrays.

Because loading the tile entities is not thread safe we cannot return to
vanilla behavior here. Instead when we detect a misplaced chunk we just
edit the NBT data for the chunk to relocate the tile entities. This results
in them moving correctly with the chunk without having to actually load
them first.
Clean-up
165164f5ab311057efc9a05588231ec89642de2c and 13c74c16346c4610b59964b4b2f60d5120ed3627
Signed-off-by: Steven Downer <grinch@outlook.com>
Don't do physics updates in world generation. Fixes BUKKIT-3747
Merge branch 'master' of git://github.com/Libigot/Libigot.git

Conflicts:
	src/main/java/org/spigotmc/netty/NettyNetworkManager.java