removed 'application' folder to have everything in the root directory
This commit is contained in:
36
plugins/MCTeam/Dedimania/DedimaniaPlayer.php
Normal file
36
plugins/MCTeam/Dedimania/DedimaniaPlayer.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace MCTeam\Dedimania;
|
||||
|
||||
/**
|
||||
* ManiaControl Dedimania Plugin Player Data Structure
|
||||
*
|
||||
* @author ManiaControl Team <mail@maniacontrol.com>
|
||||
* @copyright 2014 ManiaControl Team
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
class DedimaniaPlayer {
|
||||
/*
|
||||
* Public properties
|
||||
*/
|
||||
public $login = '';
|
||||
public $maxRank = -1;
|
||||
public $banned = false;
|
||||
public $optionsEnabled = false;
|
||||
public $options = '';
|
||||
|
||||
/**
|
||||
* Construct a new Dedimania Player Model
|
||||
*
|
||||
* @param mixed $player
|
||||
*/
|
||||
public function __construct($player) {
|
||||
$this->login = $player['Login'];
|
||||
$this->maxRank = $player['MaxRank'];
|
||||
if (isset($player['Banned'])) {
|
||||
$this->banned = $player['Banned'];
|
||||
$this->optionsEnabled = $player['OptionsEnabled'];
|
||||
$this->options = $player['Options'];
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user