From 03b48b7b0c0ff17dc350c916870b21bce511159d Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Mon, 8 Aug 2016 12:28:15 +0300 Subject: [PATCH] #Finished ! --- src/Ad5001/GameManager/GameCommand.php | 3 +++ src/Ad5001/GameManager/tasks/SignReloadTask.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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); } } }