#Finished !

This commit is contained in:
Ad5001 2016-08-08 12:28:15 +03:00
parent f2fed8228e
commit 03b48b7b0c
2 changed files with 5 additions and 2 deletions

View file

@ -18,4 +18,7 @@ class GameCommand extends Command implements PluginIdentifiableCommand {
public function execute(CommandSender $sender, $label, array $args) { public function execute(CommandSender $sender, $label, array $args) {
return $this->game->onCommand($sender, $this, $label, $args); return $this->game->onCommand($sender, $this, $label, $args);
} }
public function getPlugin() {
return $this->main;
}
} }

View file

@ -46,13 +46,13 @@ class SignReloadTask extends PluginTask {
$l3 = str_ireplace("{max}", $class->getMaxPlayers(), $l3); $l3 = str_ireplace("{max}", $class->getMaxPlayers(), $l3);
$l4 = str_ireplace("{players}", count($lvl->getPlayers()), $this->cfg->get("InGame4")); $l4 = str_ireplace("{players}", count($lvl->getPlayers()), $this->cfg->get("InGame4"));
$l4 = str_ireplace("{max}", $class->getMaxPlayers(), $l4); $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 { } else {
$l3 = str_ireplace("{players}", count($lvl->getPlayers()), $this->cfg->get("GameWait3")); $l3 = str_ireplace("{players}", count($lvl->getPlayers()), $this->cfg->get("GameWait3"));
$l3 = str_ireplace("{max}", $class->getMaxPlayers(), $l3); $l3 = str_ireplace("{max}", $class->getMaxPlayers(), $l3);
$l4 = str_ireplace("{players}", count($lvl->getPlayers()), $this->cfg->get("GameWait4")); $l4 = str_ireplace("{players}", count($lvl->getPlayers()), $this->cfg->get("GameWait4"));
$l4 = str_ireplace("{max}", $class->getMaxPlayers(), $l4); $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);
} }
} }
} }