added namespaces

This commit is contained in:
kremsy
2014-04-29 22:06:58 +02:00
committed by Steffen Schröder
parent e60d8ff972
commit adfecf734e
6 changed files with 15 additions and 8 deletions

View File

@ -1,4 +1,5 @@
<?php
namespace MCTeam;
use ManiaControl\Commands\CommandListener;
use ManiaControl\ManiaControl;
@ -9,9 +10,9 @@ use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
/**
* ManiaControl Chat-Message Plugin
*
* @author kremsy
* @author kremsy
* @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 {
/**
@ -389,8 +390,8 @@ class ChatMessagePlugin implements CommandListener, Plugin {
* @return mixed
*/
private function getTarget($login) {
/** @var Player $player */
$player = null;
/** @var Player $player */
$player = null;
foreach($this->maniaControl->playerManager->getPlayers() as $player) {
if ($login == $player->login || $login == $player->pid || $login == $player->nickname) {
return $player->nickname;

View File

@ -1,5 +1,7 @@
<?php
namespace MCTeam;
use FML\Controls\Control;
use FML\Controls\Frame;
use FML\Controls\Gauge;

View File

@ -1,4 +1,6 @@
<?php
namespace MCTeam;
use FML\Controls\Control;
use FML\Controls\Frame;
use FML\Controls\Label;

View File

@ -1,5 +1,7 @@
<?php
namespace MCTeam;
use ManiaControl\Callbacks\CallbackListener;
use ManiaControl\Callbacks\Callbacks;
use ManiaControl\Commands\CommandListener;