mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-29 14:49:59 +00:00
Merge pull request #1387 from PEMapModder/patch-1
pocketmine\command\Command implements the __toString() magic method
This commit is contained in:
commit
346d267e4e
@ -301,4 +301,11 @@ abstract class Command{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __toString(){
|
||||||
|
return $this->name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user