mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 10:01:53 +00:00
Strict-compare these to strings since they cannot return anything but
This commit is contained in:
parent
b548c4fdbe
commit
f2402f2122
@ -86,11 +86,11 @@ class VersionCommand extends VanillaCommand{
|
|||||||
$desc = $plugin->getDescription();
|
$desc = $plugin->getDescription();
|
||||||
$sender->sendMessage(TextFormat::DARK_GREEN . $desc->getName() . TextFormat::WHITE . " version " . TextFormat::DARK_GREEN . $desc->getVersion());
|
$sender->sendMessage(TextFormat::DARK_GREEN . $desc->getName() . TextFormat::WHITE . " version " . TextFormat::DARK_GREEN . $desc->getVersion());
|
||||||
|
|
||||||
if($desc->getDescription() != null){
|
if($desc->getDescription() !== ""){
|
||||||
$sender->sendMessage($desc->getDescription());
|
$sender->sendMessage($desc->getDescription());
|
||||||
}
|
}
|
||||||
|
|
||||||
if($desc->getWebsite() != null){
|
if($desc->getWebsite() !== ""){
|
||||||
$sender->sendMessage("Website: " . $desc->getWebsite());
|
$sender->sendMessage("Website: " . $desc->getWebsite());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user