This commit is contained in:
Ad5001 2016-08-03 18:44:52 +03:00
parent 9974a7da03
commit b3e17d214b
2 changed files with 3 additions and 3 deletions

View file

@ -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}>=-"

View file

@ -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);
}
}
}
// }
}
}
}