diff --git a/src/Ad5001/GameManager/GameCommand.php b/src/Ad5001/GameManager/GameCommand.php index 9d54b5d..282163a 100644 --- a/src/Ad5001/GameManager/GameCommand.php +++ b/src/Ad5001/GameManager/GameCommand.php @@ -18,4 +18,7 @@ class GameCommand extends Command implements PluginIdentifiableCommand { public function execute(CommandSender $sender, $label, array $args) { return $this->game->onCommand($sender, $this, $label, $args); } + public function getPlugin() { + return $this->main; + } } diff --git a/src/Ad5001/GameManager/tasks/SignReloadTask.php b/src/Ad5001/GameManager/tasks/SignReloadTask.php index 309d88e..33711b7 100644 --- a/src/Ad5001/GameManager/tasks/SignReloadTask.php +++ b/src/Ad5001/GameManager/tasks/SignReloadTask.php @@ -46,13 +46,13 @@ class SignReloadTask extends PluginTask { $l3 = str_ireplace("{max}", $class->getMaxPlayers(), $l3); $l4 = str_ireplace("{players}", count($lvl->getPlayers()), $this->cfg->get("InGame4")); $l4 = str_ireplace("{max}", $class->getMaxPlayers(), $l4); - $t->setText($t->getText()[0], $t->getText()[1], $l3, $t4); + $t->setText($t->getText()[0], $t->getText()[1], $l3, $l4); } else { $l3 = str_ireplace("{players}", count($lvl->getPlayers()), $this->cfg->get("GameWait3")); $l3 = str_ireplace("{max}", $class->getMaxPlayers(), $l3); $l4 = str_ireplace("{players}", count($lvl->getPlayers()), $this->cfg->get("GameWait4")); $l4 = str_ireplace("{max}", $class->getMaxPlayers(), $l4); - $t->setText($t->getText()[0], $t->getText()[1], $l3, $t4); + $t->setText($t->getText()[0], $t->getText()[1], $l3, $l4); } } }