improved variable names
This commit is contained in:
@ -625,6 +625,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
|
||||
$votesPlugin->defineVote('switchmap', "Goto " . $map->name, true, $message);
|
||||
|
||||
$votesPlugin->startVote($player, 'switchmap', function ($result) use (&$votesPlugin, &$map) {
|
||||
// TODO: $result isn't used -> bug? does it skip even if vote is not successful?
|
||||
$this->maniaControl->chat->sendInformation('$sVote Successful -> Map switched!');
|
||||
$votesPlugin->undefineVote('switchmap');
|
||||
|
||||
|
@ -167,10 +167,10 @@ class MapQueue implements CallbackListener, CommandListener {
|
||||
}
|
||||
|
||||
$message = '$fa0Upcoming maps in the Map-Queue:';
|
||||
$i = 1;
|
||||
$index = 1;
|
||||
foreach ($this->queuedMaps as $queuedMap) {
|
||||
$message .= ' $<$fff' . $i . '$>. [$<$fff' . Formatter::stripCodes($queuedMap[1]->name) . '$>]';
|
||||
$i++;
|
||||
$message .= ' $<$fff' . $index . '$>. [$<$fff' . Formatter::stripCodes($queuedMap[1]->name) . '$>]';
|
||||
$index++;
|
||||
}
|
||||
|
||||
$this->maniaControl->chat->sendInformation($message, $player->login);
|
||||
|
Reference in New Issue
Block a user