Solved way to prevent a "player sleeping" from making it day?

Discussion in 'Spigot Plugin Development' started by LethalBunny, Jun 10, 2018.

  1. Is there a way to have a Non-Player variable of some sort prevent players that are in bed from making it day when they are in bed if all other players are in bed?

    In other words, i want a variable to act as if it is a player that is NOT in bed when other players are trying to sleep to prevent it from making the night > day....

    any such methods in spigot api?
     
  2. Awesome! With a few modifications that should do the trick! Thank you very much!