flinbein / PowerNBT

[MineCraft] Minecraft PowerNBT plugin
https://www.spigotmc.org/resources/powernbt.9098/
MIT License
39 stars 25 forks source link

Protocol error, unexpected packet #6

Closed mishkapp closed 9 years ago

mishkapp commented 10 years ago

I trying to make plugin that allows users to place their own mob spawners. Player tries to place spawner in the world, after plugin will detect needed spawner's configuration, spawn needed entity, tune it, place NBT container from entity to spawner, delete entity, tune spawner properties and that is all, spawner is ready. All works fine on localhost, but on remote server when I try to place spawner I lost connection with reason "Protocol error, unexpected packet".

Server: Bukkit 1.6.4-R2.0 Build #2918 Plugins: PowerNBT 0.7.3.1, My Own Plugin

It also tested on MCPC+ 1.6.4 and 1.5.2

P.S. Sorry for my bad english.

DPOH-VAR commented 9 years ago

Sorry for the late reply

This means that you do not follow the NBT format of mobspawner. 1.6.4 is not protected from incorrect data. Therefore, you must be careful. Perhaps you forgot to specify "RequiredPlayerRange", "SpavnPotentials.Type", or use int instead short

Monster spawner format: http://minecraft.gamepedia.com/Chunk_format#Tile_entity_format