-
Notifications
You must be signed in to change notification settings - Fork 35
PreventCommandsInBed
dniym edited this page Apr 5, 2020
·
1 revision
Prevents players from using commands while in a bed. There are a few events that do not fire in the spigot API while players are in bed, one specifically is the inventory click event. This means that unless a plugin checks to see if the player is in bed, it is possible to steal items out of the GUI which wouldn't otherwise be possible. There may be other commands that are exploitable but this is the main reason for the command block. Likewise all inventories are prevented from being opened while in a bed as a further protections.
To enable / disable this protection use the following command: /istack toggle PreventCommandsInBed