diff --git a/resources/config.yml b/resources/config.yml index 49145cb..6ea95bb 100644 --- a/resources/config.yml +++ b/resources/config.yml @@ -2,7 +2,7 @@ # Welcome to GameManager config. # Here you can configure how does game signs looks. # 1 is line 1, 2 is line 2, 3 is line 3 and 4 is line 4. -# Note that {Game} MUST be included in the first line and {level} in the second one (detection). +# Note that {Game} can be only placed in first line and {level} MUST be in the second one (detection issues :/). Game1: "§l§o[§r§l{Game}§o]" Game2: "-=<{level}>=-" diff --git a/src/Ad5001/GameManager/tasks/SignReloadTask.php b/src/Ad5001/GameManager/tasks/SignReloadTask.php index ff2d579..d242fc5 100644 --- a/src/Ad5001/GameManager/tasks/SignReloadTask.php +++ b/src/Ad5001/GameManager/tasks/SignReloadTask.php @@ -38,7 +38,7 @@ class SignReloadTask extends PluginTask { } $t->setText($texts[0], $texts[1], $texts[2], $texts[3]); } - if(str_ireplace("{game}", $class->getName(), $this->cfg->get("Game1")) == $t->getText()[0]) { + /*if(str_ireplace("{game}", $class->getName(), $this->cfg->get("Game1")) == $t->getText()[0]) {*/ $lvlex = explode("{level}", $this->cfg->get("Game2")); $lvl = str_ireplace($lvlex[0], "", $t->getText()[1]); $lvl = str_ireplace($lvlex[1], "", $lvl); @@ -57,7 +57,7 @@ class SignReloadTask extends PluginTask { $t->setText($t->getText()[0], $t->getText()[1], $l3, $t4); } } - } + // } } } }