added namespaces
This commit is contained in:
		
				
					committed by
					
						 Steffen Schröder
						Steffen Schröder
					
				
			
			
				
	
			
			
			
						parent
						
							e60d8ff972
						
					
				
				
					commit
					adfecf734e
				
			| @@ -2,7 +2,7 @@ | |||||||
|  |  | ||||||
| namespace ManiaControl\Maps; | namespace ManiaControl\Maps; | ||||||
|  |  | ||||||
| use CustomVotesPlugin; | use MCTeam\CustomVotesPlugin; | ||||||
| use FML\Controls\Control; | use FML\Controls\Control; | ||||||
| use FML\Controls\Frame; | use FML\Controls\Frame; | ||||||
| use FML\Controls\Gauge; | use FML\Controls\Gauge; | ||||||
| @@ -50,7 +50,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { | |||||||
| 	const MAX_MAPS_PER_PAGE = 15; | 	const MAX_MAPS_PER_PAGE = 15; | ||||||
| 	const MAX_PAGES_PER_CHUNK = 2; | 	const MAX_PAGES_PER_CHUNK = 2; | ||||||
| 	const DEFAULT_KARMA_PLUGIN = 'MCTeam\KarmaPlugin'; | 	const DEFAULT_KARMA_PLUGIN = 'MCTeam\KarmaPlugin'; | ||||||
| 	const DEFAULT_CUSTOM_VOTE_PLUGIN = 'CustomVotesPlugin'; | 	const DEFAULT_CUSTOM_VOTE_PLUGIN = 'MCTeam\CustomVotesPlugin'; | ||||||
| 	 | 	 | ||||||
| 	/* | 	/* | ||||||
| 	 * Private Properties | 	 * Private Properties | ||||||
|   | |||||||
| @@ -2,7 +2,7 @@ | |||||||
|  |  | ||||||
| namespace ManiaControl\Players; | namespace ManiaControl\Players; | ||||||
|  |  | ||||||
| use CustomVotesPlugin; | use MCTeam\CustomVotesPlugin; | ||||||
| use FML\Controls\Control; | use FML\Controls\Control; | ||||||
| use FML\Controls\Frame; | use FML\Controls\Frame; | ||||||
| use FML\Controls\Labels\Label_Button; | use FML\Controls\Labels\Label_Button; | ||||||
| @@ -56,7 +56,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener, Timer | |||||||
| 	const ACTION_REVOKE_RIGHTS        = 'PlayerList.RevokeRights'; | 	const ACTION_REVOKE_RIGHTS        = 'PlayerList.RevokeRights'; | ||||||
| 	const ACTION_OPEN_PLAYER_DETAILED = 'PlayerList.OpenPlayerDetailed'; | 	const ACTION_OPEN_PLAYER_DETAILED = 'PlayerList.OpenPlayerDetailed'; | ||||||
| 	const ACTION_SPECTATE_PLAYER      = 'PlayerList.SpectatePlayer'; | 	const ACTION_SPECTATE_PLAYER      = 'PlayerList.SpectatePlayer'; | ||||||
| 	const DEFAULT_CUSTOM_VOTE_PLUGIN  = 'CustomVotesPlugin'; | 	const DEFAULT_CUSTOM_VOTE_PLUGIN  = 'MCTeam\CustomVotesPlugin'; | ||||||
| 	const SHOWN_MAIN_WINDOW           = -1; | 	const SHOWN_MAIN_WINDOW           = -1; | ||||||
| 	const MAX_PLAYERS_PER_PAGE        = 15; | 	const MAX_PLAYERS_PER_PAGE        = 15; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,4 +1,5 @@ | |||||||
| <?php | <?php | ||||||
|  | namespace MCTeam; | ||||||
|  |  | ||||||
| use ManiaControl\Commands\CommandListener; | use ManiaControl\Commands\CommandListener; | ||||||
| use ManiaControl\ManiaControl; | use ManiaControl\ManiaControl; | ||||||
| @@ -9,9 +10,9 @@ use Maniaplanet\DedicatedServer\Xmlrpc\Exception; | |||||||
| /** | /** | ||||||
|  * ManiaControl Chat-Message Plugin |  * ManiaControl Chat-Message Plugin | ||||||
|  * |  * | ||||||
|  * @author kremsy |  * @author    kremsy | ||||||
|  * @copyright ManiaControl Copyright © 2014 ManiaControl Team |  * @copyright ManiaControl Copyright © 2014 ManiaControl Team | ||||||
|  * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 |  * @license   http://www.gnu.org/licenses/ GNU General Public License, Version 3 | ||||||
|  */ |  */ | ||||||
| class ChatMessagePlugin implements CommandListener, Plugin { | class ChatMessagePlugin implements CommandListener, Plugin { | ||||||
| 	/** | 	/** | ||||||
| @@ -389,8 +390,8 @@ class ChatMessagePlugin implements CommandListener, Plugin { | |||||||
| 	 * @return mixed | 	 * @return mixed | ||||||
| 	 */ | 	 */ | ||||||
| 	private function getTarget($login) { | 	private function getTarget($login) { | ||||||
|         /** @var Player $player */ | 		/** @var Player $player */ | ||||||
|         $player = null; | 		$player = null; | ||||||
| 		foreach($this->maniaControl->playerManager->getPlayers() as $player) { | 		foreach($this->maniaControl->playerManager->getPlayers() as $player) { | ||||||
| 			if ($login == $player->login || $login == $player->pid || $login == $player->nickname) { | 			if ($login == $player->login || $login == $player->pid || $login == $player->nickname) { | ||||||
| 				return $player->nickname; | 				return $player->nickname; | ||||||
|   | |||||||
| @@ -1,5 +1,7 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | namespace MCTeam; | ||||||
|  |  | ||||||
| use FML\Controls\Control; | use FML\Controls\Control; | ||||||
| use FML\Controls\Frame; | use FML\Controls\Frame; | ||||||
| use FML\Controls\Gauge; | use FML\Controls\Gauge; | ||||||
|   | |||||||
| @@ -1,4 +1,6 @@ | |||||||
| <?php | <?php | ||||||
|  | namespace MCTeam; | ||||||
|  |  | ||||||
| use FML\Controls\Control; | use FML\Controls\Control; | ||||||
| use FML\Controls\Frame; | use FML\Controls\Frame; | ||||||
| use FML\Controls\Label; | use FML\Controls\Label; | ||||||
|   | |||||||
| @@ -1,5 +1,7 @@ | |||||||
| <?php | <?php | ||||||
|  |  | ||||||
|  | namespace MCTeam; | ||||||
|  |  | ||||||
| use ManiaControl\Callbacks\CallbackListener; | use ManiaControl\Callbacks\CallbackListener; | ||||||
| use ManiaControl\Callbacks\Callbacks; | use ManiaControl\Callbacks\Callbacks; | ||||||
| use ManiaControl\Commands\CommandListener; | use ManiaControl\Commands\CommandListener; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user