dedicated server api update (reverted from commit 77a53b282c)
				
					
				
			This commit is contained in:
		
							
								
								
									
										1
									
								
								application/plugins/ChatMessagePlugin.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/ChatMessagePlugin.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/Chatlog.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/Chatlog.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										2
									
								
								application/plugins/CustomVotes.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								application/plugins/CustomVotes.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| <?php | ||||
| unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/Dedimania/Dedimania.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/Dedimania/Dedimania.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/Dedimania/DedimaniaData.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/Dedimania/DedimaniaData.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/Dedimania/DedimaniaPlayer.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/Dedimania/DedimaniaPlayer.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/Dedimania/DedimaniaPlugin.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/Dedimania/DedimaniaPlugin.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/Dedimania/RecordData.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/Dedimania/RecordData.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										2
									
								
								application/plugins/Donations.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								application/plugins/Donations.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| <?php | ||||
| unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/DynamicPointlimitPlugin.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/DynamicPointlimitPlugin.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/Endurance.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/Endurance.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/EndurancePlugin.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/EndurancePlugin.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/Karma.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/Karma.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/LocalRecords.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/LocalRecords.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
| @@ -173,13 +173,24 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP | ||||
| 		} | ||||
|  | ||||
| 		/* Disable Standard Votes */ | ||||
| 		$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_BAN; | ||||
| 		$array["Param"]   = ""; | ||||
| 		$array["Ratio"]   = (float)-1; | ||||
| 		$ratioArray[]     = $array; | ||||
|  | ||||
| 		$this->maniaControl->client->setCallVoteRatios($ratioArray, false); | ||||
| 		$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->constructMenu(); | ||||
| 		return true; | ||||
| @@ -375,13 +386,20 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP | ||||
| 		//Enable Standard Votes | ||||
| 		$defaultRatio = $this->maniaControl->client->getCallVoteRatio(); | ||||
|  | ||||
| 		$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); | ||||
| 		$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; | ||||
|  | ||||
| 		$this->maniaControl->client->setCallVoteRatios($ratioArray, false); | ||||
| 		$this->maniaControl->client->setCallVoteRatiosEx(false, $ratioArray); | ||||
|  | ||||
| 		$this->destroyVote(); | ||||
| 		$this->maniaControl->manialinkManager->hideManialink(self::MLID_ICON); | ||||
|   | ||||
							
								
								
									
										1
									
								
								application/plugins/MCTeam/Dedimania/Dedimania.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/MCTeam/Dedimania/Dedimania.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/Obstacle.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/Obstacle.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/QueuePlugin.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/QueuePlugin.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/ServerRanking.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/ServerRanking.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/TeamSpeakPlugin.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/TeamSpeakPlugin.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
| @@ -276,7 +276,6 @@ 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); | ||||
| 	} | ||||
|  | ||||
| @@ -287,7 +286,6 @@ 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!'); | ||||
| @@ -563,4 +561,4 @@ class QueuePlugin implements CallbackListener, ManialinkPageAnswerListener, Time | ||||
| 	private function hideQueueWidget(Player $player) { | ||||
| 		$this->maniaControl->manialinkManager->hideManialink(self::ML_ID, $player); | ||||
| 	} | ||||
| } | ||||
| } | ||||
|   | ||||
							
								
								
									
										1
									
								
								application/plugins/WidgetPlugin.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/WidgetPlugin.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
							
								
								
									
										1
									
								
								application/plugins/steeffeen/ChatlogPlugin.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								application/plugins/steeffeen/ChatlogPlugin.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| <?php unlink(__FILE__); | ||||
		Reference in New Issue
	
	Block a user