tubelius85

Prism griefing query

Apr 24th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #Takes too long to run, needs a better index
  2. select B.*
  3. from prism_actions as B #Breaks
  4. inner join prism_actions as P #Placements
  5. on P.action_time < B.action_time #Placed before broken
  6. and P.action_type = 'block-place' #Placed
  7. and P.player <> B.player #Placed by another player
  8. and P.world = B.world #In same world
  9. and P.x = B.x #Same X coordinate
  10. and P.y = B.y #Same Y coordinate
  11. and P.z = B.z #Same Z coordinate
  12. and P.block_id = B.block_id #Same block type
  13. where B.action_time >= '2013-04-24' #Breaks from date(time)
  14. and B.action_type = 'block-break' #Breaksdelimiter
Advertisement
Add Comment
Please, Sign In to add comment