mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Adds beds
This commit is contained in:
@ -27,9 +27,10 @@ class BedBlock extends TransparentBlock{
|
||||
}
|
||||
|
||||
public function onActivate(Item $item, Player $player){
|
||||
$player->dataPacket(MC_CLIENT_MESSAGE, array(
|
||||
$player->sleepOn($this);
|
||||
/*$player->dataPacket(MC_CLIENT_MESSAGE, array(
|
||||
"message" => "This bed has been corrupted by your hands!"
|
||||
));
|
||||
));*/
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user