titleprefix fix
This commit is contained in:
committed by
Steffen Schröder
parent
49805f06b3
commit
dbdc318bba
@ -50,7 +50,7 @@ class Map {
|
||||
return;
|
||||
}
|
||||
$this->name = FORMATTER::stripDirtyCodes($mpMap->name);
|
||||
$this->rawName = $mpMap->name;
|
||||
$this->rawName = $mpMap->name;
|
||||
$this->uid = $mpMap->uId;
|
||||
$this->fileName = $mpMap->fileName;
|
||||
$this->authorLogin = $mpMap->author;
|
||||
@ -65,6 +65,24 @@ class Map {
|
||||
$this->authorNick = $this->authorLogin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get's the gameType of the Current Map
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getGame() {
|
||||
switch($this->environment) {
|
||||
case 'Storm':
|
||||
return "sm";
|
||||
case 'Canyon':
|
||||
case 'Stadium':
|
||||
case 'Valley':
|
||||
return "tm";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a map Update is available
|
||||
*
|
||||
|
Reference in New Issue
Block a user