Solved Get both locations of Bed block

Discussion in 'Spigot Plugin Development' started by ScarabCoder, Jun 3, 2017.

  1. ScarabCoder

    ScarabCoder Retired Resource Staff
    Retired

    Hey,
    I'm trying to get both parts of a bed block when it's being destroyed. Is there a way to check the location of the bed being destroyed against a saved location?
     
  2. If someone break a bed, the another side is breaking aswell, why are u want to know the other location?
     
  3. ScarabCoder

    ScarabCoder Retired Resource Staff
    Retired

    Like I said the in post, I need to check if the bed is in a location set in the file. Since the bed is two blocks, when it's destroyed the BlockBreakEvent will only give me one (which may not be the location that I saved).
     
    • Informative Informative x 1
  4. ScarabCoder

    ScarabCoder Retired Resource Staff
    Retired

  5. No problem, i hope it will work! Good luck! :)