Removed old trigger_error()

This commit is contained in:
Shoghi Cervantes 2014-09-16 00:42:36 +02:00
parent 44a30b7fac
commit 69ab0d433b

View File

@ -1573,7 +1573,7 @@ class Server{
if($this->getDefaultLevel() === null){ if($this->getDefaultLevel() === null){
$default = $this->getConfigString("level-name", "world"); $default = $this->getConfigString("level-name", "world");
if(trim($default) == ""){ if(trim($default) == ""){
trigger_error("level-name cannot be null, using default", E_USER_WARNING); $this->getLogger()->warning("level-name cannot be null, using default");
$default = "world"; $default = "world";
$this->setConfigString("level-name", "world"); $this->setConfigString("level-name", "world");
} }