Browse Source

WIP

tags/1.0
Ad5001 3 years ago
parent
commit
b3e17d214b
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      resources/config.yml
  2. 2
    2
      src/Ad5001/GameManager/tasks/SignReloadTask.php

+ 1
- 1
resources/config.yml 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}>=-"

+ 2
- 2
src/Ad5001/GameManager/tasks/SignReloadTask.php 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);
}
}
}
// }
}
}
}

Loading…
Cancel
Save