EmilHernvall / tregmine

The tregmine plugins
http://tregmine.info/
BSD 4-Clause "Original" or "Old" License
8 stars 10 forks source link

[Suggestion] Block Break Trapper #347

Open lDiverse opened 10 years ago

lDiverse commented 10 years ago

Note// If this is not done by the time I get around to working on it - I will do it. This is not me telling someone else to do it, but if I don't write it here - I'll forget.

Add a new int for blockTrapperTimeout On failed block break, set it to something Runnable, lower the timeout by one every second.

Listen to events for; Inventory Open (Block inventory) Entity Mount (Horses) Compass Dragon Egg (Making it teleport)

If blockTrapperTimeout is more than 0, then cancel the event.

Reasoning: It's a known bug in the community that if you break a block then rapidly right click or something then you can activate events. Whether this be get in an inventory through a wall (granted Auto Bless picks this up), making a dragon egg teleport away, jump on a horse (then steal it) etc. By adding timeout it will mean that events that happen in the time it takes for the server to react and replace the block will be handled by this as the listening events will wait for a response before continuing.

If this doesn't make sense its because my brain doesn't function, but I know what I'm on about.

404Senpai commented 10 years ago

Support - 404 egg breaking seems to be a popular passtime.