I’m new with Sponge and also noob with plugin
I made some plugins for my server with craftbukkit ago,
now I want to use them in my new Sponge server
so I decided to make new plugins for Sponge server
but I couldn’t find any method like ‘sendBlockChange’
help me please.
As far as I can tell there currently isn’t a way to do this with Sponge.
Currently, this isn’t available in Sponge. However, we’ll be adding a way to do this in the future.
For now, you can use NMS directly if you want to, or wait until it’s possible through the API.
A sendBlockChange
method has now been added to the API
* @param z The z position * @param state The block state */ void sendBlockChange(int x, int y, int z, BlockState state); /** * Resets the client's view of the provided position to what * actually exists in the {@link World}. * * <p>This is useful for resetting what the client sees * after sending a {@link #sendBlockChange block change}.</p> * * @param vec The position */ default void resetBlockChange(Vector3i vec) { Objects.requireNonNull(vec, "vec"); this.resetBlockChange(vec.getX(), vec.getY(), vec.getZ()); } /** * Resets the client's view of the provided position to what