Strict-compare these to strings since they cannot return anything but

This commit is contained in:
Dylan K. Taylor 2017-08-27 19:32:57 +01:00
parent b548c4fdbe
commit f2402f2122

View File

@ -86,11 +86,11 @@ class VersionCommand extends VanillaCommand{
$desc = $plugin->getDescription();
$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());
}
if($desc->getWebsite() != null){
if($desc->getWebsite() !== ""){
$sender->sendMessage("Website: " . $desc->getWebsite());
}