Function set_bed_rest_allowed

Source
pub fn set_bed_rest_allowed(pid: u16, state: bool)
Expand description

Set whether resting in beds is allowed for a player.

This changes the resting permission for that player in the server memory, but does not
by itself send a packet.

pid The player ID.
state The resting permission state.

Returns void