Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to get block player placed? #180

Open
JamesWRC opened this issue Sep 24, 2022 · 2 comments
Open

Possible to get block player placed? #180

JamesWRC opened this issue Sep 24, 2022 · 2 comments

Comments

@JamesWRC
Copy link

JamesWRC commented Sep 24, 2022

Hey,

I have been trying to somehow identify the block a player just placed. At the moment im using Quarry as a proxy for the server.

What I am trying to do is essentially create an anti-grief 'plugin' where new players cant destroy other players blocks until a player has > 1 hour play time for example.

So my current strategy is to place a specific block as a 'marker' to 'protect' a 20 block radius for example. Then record that info 'proxy side' to then allow / stop users breaking blocks in that area.

At the moment I cant see an obvious way for a player to place a certain block down then get that block ID and the player who placed it through the proxy.

I have been going through this list of packets and cant seem to find anything that could be useful. However I am obviously missing something, im sure its possible to capture the info i need

Any ideas?
Thanks.

@davidawesome02
Copy link

packet: player_block_placement, just cancel it to stop block placements

If you want help msg me for discord info
also just so you know, look into https://wiki.vg/Protocol#Set_Border_Center , warning, and distance to make the player not be able to click or you can just send the packet (https://wiki.vg/Protocol#Set_Cooldown) constantly while in the area to make the animation not play at all or place on their screen and display a white outline on all their items (set ticks to a large number then when they leave set it to 0)

@davidawesome02
Copy link

with new packets it might be (https://wiki.vg/Protocol#Use_Item_On) but I forgot, use a proxy to log all packets upstream to see what the names are

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants