mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
parent
b071ce9c5a
commit
22d8626e23
@ -62,21 +62,19 @@ class Sign extends Spawnable{
|
||||
* @param null|string $line2
|
||||
* @param null|string $line3
|
||||
* @param null|string $line4
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function setText($line1 = "", $line2 = "", $line3 = "", $line4 = ""){
|
||||
if($line1 !== null){
|
||||
$this->namedtag->Text1->setValue("Text1", $line1);
|
||||
$this->namedtag->Text1->setValue($line1);
|
||||
}
|
||||
if($line2 !== null){
|
||||
$this->namedtag->Text2->setValue("Text2", $line2);
|
||||
$this->namedtag->Text2->setValue($line2);
|
||||
}
|
||||
if($line3 !== null){
|
||||
$this->namedtag->Text3->setValue("Text3", $line3);
|
||||
$this->namedtag->Text3->setValue($line3);
|
||||
}
|
||||
if($line4 !== null){
|
||||
$this->namedtag->Text4->setValue("Text4", $line4);
|
||||
$this->namedtag->Text4->setValue($line4);
|
||||
}
|
||||
$this->onChanged();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user