#Finished !
This commit is contained in:
parent
f2fed8228e
commit
03b48b7b0c
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue