-
-
Notifications
You must be signed in to change notification settings - Fork 298
Description
Make sure you've done the following:
- You're using the latest build for your server version
- This isn't an issue caused by another plugin
- You've checked for duplicate issues
Debug paste link: http://pastebin.com/KJ8pjdAq
Description and relevant errors:
Background Information:
I'm trying to do a plugin, where you can click (as non-op) on a Command Block and set all settings. (This is in 1.10)
I've looked through SafeCommandBlock, which accomplish a bit. For the earlier versions, I've used to do a seperate plugin to support placing/breaking blocks.
Now, with 1.10 (also 1.9 I think), you have not only the command to set but also the other settings.
Also you can't open the command block anymore as non-op, thats why I'm oatching the ENTITY_STATUS packet to having op-level 2, if the person has the permission to user command blocks.
This works.
But in vanilla with op, the server sends a TILE_ENTITY_DATA on right clicking the command block to have the data in the gui, while it's not send when you have no op.
--> Problem <--:
As to use the gui you need to receive the packet as client, the server must send this manually if the person has not op. As I notified, the most data stored in the command blocks are stored in NBT, so I tried reading it to copy it into the packet, but using NbtFactory.readBlockState doesn't work. The stacktrace is in the pastebin link.
My code: http://pastebin.com/SFL16P77
I think that either the write function is called different or it hasn't got one (this would be dramatic)
For later use, I also need to write the data.
Thank you
EDIT: Both TileEntity and TileEntityCommand have in my server jar a read and write method, which could be detected with the method used. Tile Entity (read a and c write), TileEntityCommand (read a and save write)
Edit2: Spigot 1.10.2-R0.1-SNAPSHOT
Protocollib 4.1.0-SNAPSHOT-b315