From 3d7c34283c494351d8558bbaf293c0fceb18ef16 Mon Sep 17 00:00:00 2001 From: Blumieare Exxarion Date: Fri, 1 May 2015 20:55:05 -0400 Subject: [PATCH] Fixed the updating glitch --- src/WorldGM/WorldGM.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WorldGM/WorldGM.php b/src/WorldGM/WorldGM.php index 1aafbf6..1da0fae 100644 --- a/src/WorldGM/WorldGM.php +++ b/src/WorldGM/WorldGM.php @@ -207,7 +207,7 @@ public function updatePlugin($sender) { //BETA $dsc = \yaml_parse($lst); $description = $this->getDescription(); - if(version_compare($description->getVersion(), $dsc["version"]) < 1){ + if($description->getVersion() !== $dsc['version']){ $this->getLogger()->info(TextFormat::YELLOW."WorldGM v".$dsc["version"]." has been released. Please download the latest version here:\n".TextFormat::GOLD."http://github.com/Exxarion/WorldGM/releases"); }else{ $this->getLogger()->info(TextFormat::GREEN."Your version is up-to-date!");