finished first version of customvote plugin
This commit is contained in:
		
				
					committed by
					
						
						Steffen Schröder
					
				
			
			
				
	
			
			
			
						parent
						
							1acddeb4e1
						
					
				
				
					commit
					b8758138b3
				
			@@ -23,6 +23,8 @@ class ServerCommands implements CallbackListener, CommandListener, ManialinkPage
 | 
			
		||||
	 */
 | 
			
		||||
	const ACTION_SET_PAUSE   = 'ServerCommands.SetPause';
 | 
			
		||||
	const ACTION_CANCEL_VOTE = 'ServerCommands.CancelVote';
 | 
			
		||||
	const CB_VOTE_CANCELED   = 'ServerCommands.VoteCanceled';
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Private properties
 | 
			
		||||
	 */
 | 
			
		||||
@@ -90,6 +92,9 @@ class ServerCommands implements CallbackListener, CommandListener, ManialinkPage
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
		$this->maniaControl->chat->sendInformation('$<' . $player->nickname . '$> canceled the Vote!');
 | 
			
		||||
 | 
			
		||||
		// Trigger callback
 | 
			
		||||
		$this->maniaControl->callbackManager->triggerCallback(self::CB_VOTE_CANCELED, array(self::CB_VOTE_CANCELED, $player));
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user