Improved Formatter for Dirty Codes

This commit is contained in:
Steffen Schröder
2013-12-30 14:09:58 +01:00
parent ee3c260563
commit fcef62b20a
2 changed files with 63 additions and 211 deletions

View File

@ -43,7 +43,7 @@ class Player {
}
$this->pid = $rpcInfos['PlayerId'];
$this->login = $rpcInfos['Login'];
$this->nickname = Formatter::stripCodesWithoutColors($rpcInfos['NickName']); //TODO don't remove $s, $i
$this->nickname = Formatter::stripDirtyCodes($rpcInfos['NickName']);
$this->path = $rpcInfos['Path'];
$this->language = $rpcInfos['Language'];
$this->avatar = $rpcInfos['Avatar']['FileName'];