1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

lying in bed

Discussion in 'Requests' started by HannesTheDev, Feb 9, 2021.

  1. HannesTheDev

    HannesTheDev Spider

    Messages:
    7
    GitHub:
    HannesTheDev
    How can I query whether one or more players are currently lying in a bed?
     
  2. ethaniccc

    ethaniccc Baby Zombie

    Messages:
    189
    GitHub:
    ethaniccc
    Just curious about why you want to do that
     
  3. HannesTheDev

    HannesTheDev Spider

    Messages:
    7
    GitHub:
    HannesTheDev
    I need it for a cool public plugin
     
  4. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Foreach all online players, have a check if the player is on isSleeping(), and just count them?
    Not sure if this is what you want :/
     
  5. HannesTheDev

    HannesTheDev Spider

    Messages:
    7
    GitHub:
    HannesTheDev
    Yes, thanks.
     
    minijaham likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.