dedicated server api update
This commit is contained in:
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1,2 +0,0 @@
|
||||
<?php
|
||||
unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1,2 +0,0 @@
|
||||
<?php
|
||||
unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -173,24 +173,13 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP
|
||||
}
|
||||
|
||||
/* Disable Standard Votes */
|
||||
$array["Command"] = VoteRatio::COMMAND_BAN;
|
||||
$array["Param"] = "";
|
||||
$array["Ratio"] = (float)-1;
|
||||
$ratioArray[] = $array;
|
||||
$ratioArray[] = new VoteRatio(VoteRatio::COMMAND_BAN, -1.);
|
||||
$ratioArray[] = new VoteRatio(VoteRatio::COMMAND_KICK, -1.);
|
||||
$ratioArray[] = new VoteRatio(VoteRatio::COMMAND_RESTART_MAP, -1.);
|
||||
$ratioArray[] = new VoteRatio(VoteRatio::COMMAND_TEAM_BALANCE, -1.);
|
||||
$ratioArray[] = new VoteRatio(VoteRatio::COMMAND_NEXT_MAP, -1.);
|
||||
|
||||
$array["Command"] = VoteRatio::COMMAND_KICK;
|
||||
$ratioArray[] = $array;
|
||||
|
||||
$array["Command"] = VoteRatio::COMMAND_RESTART_MAP;
|
||||
$ratioArray[] = $array;
|
||||
|
||||
$array["Command"] = VoteRatio::COMMAND_TEAM_BALANCE;
|
||||
$ratioArray[] = $array;
|
||||
|
||||
$array["Command"] = VoteRatio::COMMAND_NEXT_MAP;
|
||||
$ratioArray[] = $array;
|
||||
|
||||
$this->maniaControl->client->setCallVoteRatiosEx(false, $ratioArray);
|
||||
$this->maniaControl->client->setCallVoteRatios($ratioArray, false);
|
||||
|
||||
$this->constructMenu();
|
||||
return true;
|
||||
@ -386,20 +375,13 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP
|
||||
//Enable Standard Votes
|
||||
$defaultRatio = $this->maniaControl->client->getCallVoteRatio();
|
||||
|
||||
$array["Command"] = VoteRatio::COMMAND_BAN;
|
||||
$array["Param"] = "";
|
||||
$array["Ratio"] = (float)$defaultRatio;
|
||||
$ratioArray[] = $array;
|
||||
$array["Command"] = VoteRatio::COMMAND_KICK;
|
||||
$ratioArray[] = $array;
|
||||
$array["Command"] = VoteRatio::COMMAND_RESTART_MAP;
|
||||
$ratioArray[] = $array;
|
||||
$array["Command"] = VoteRatio::COMMAND_TEAM_BALANCE;
|
||||
$ratioArray[] = $array;
|
||||
$array["Command"] = VoteRatio::COMMAND_NEXT_MAP;
|
||||
$ratioArray[] = $array;
|
||||
$ratioArray[] = new VoteRatio(VoteRatio::COMMAND_BAN, $defaultRatio);
|
||||
$ratioArray[] = new VoteRatio(VoteRatio::COMMAND_KICK, $defaultRatio);
|
||||
$ratioArray[] = new VoteRatio(VoteRatio::COMMAND_RESTART_MAP, $defaultRatio);
|
||||
$ratioArray[] = new VoteRatio(VoteRatio::COMMAND_TEAM_BALANCE, $defaultRatio);
|
||||
$ratioArray[] = new VoteRatio(VoteRatio::COMMAND_NEXT_MAP, $defaultRatio);
|
||||
|
||||
$this->maniaControl->client->setCallVoteRatiosEx(false, $ratioArray);
|
||||
$this->maniaControl->client->setCallVoteRatios($ratioArray, false);
|
||||
|
||||
$this->destroyVote();
|
||||
$this->maniaControl->manialinkManager->hideManialink(self::MLID_ICON);
|
||||
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -276,6 +276,7 @@ class QueuePlugin implements CallbackListener, ManialinkPageAnswerListener, Time
|
||||
* @param Player $player
|
||||
*/
|
||||
public function handleManiaLinkAnswerAdd(array $chatCallback, Player $player) {
|
||||
$this->maniaControl->log('handleManiaLinkAnswerAdd by ' . $player->login);
|
||||
$this->addPlayerToQueue($player);
|
||||
}
|
||||
|
||||
@ -286,6 +287,7 @@ class QueuePlugin implements CallbackListener, ManialinkPageAnswerListener, Time
|
||||
* @param Player $player
|
||||
*/
|
||||
public function handleManiaLinkAnswerRemove(array $chatCallback, Player $player) {
|
||||
$this->maniaControl->log('handleManiaLinkAnswerRemove by ' . $player->login);
|
||||
$this->removePlayerFromQueue($player->login);
|
||||
$this->showJoinQueueWidget($player);
|
||||
$this->sendChatMessage('$<$fff' . $player->nickname . '$> has left the queue!');
|
||||
@ -561,4 +563,4 @@ class QueuePlugin implements CallbackListener, ManialinkPageAnswerListener, Time
|
||||
private function hideQueueWidget(Player $player) {
|
||||
$this->maniaControl->manialinkManager->hideManialink(self::ML_ID, $player);
|
||||
}
|
||||
}
|
||||
}
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
@ -1 +0,0 @@
|
||||
<?php unlink(__FILE__);
|
Reference in New Issue
Block a user