minor changes
This commit is contained in:
parent
02222680e2
commit
fcd4e577cf
@ -89,7 +89,7 @@ abstract class FileUtil {
|
|||||||
*/
|
*/
|
||||||
public static function getClearedFileName($fileName) {
|
public static function getClearedFileName($fileName) {
|
||||||
$fileName = Formatter::stripCodes($fileName);
|
$fileName = Formatter::stripCodes($fileName);
|
||||||
$fileName = str_replace(array('\\', '/', ':', '*', '?', '"', '<', '>', '|'), '_', $fileName);
|
$fileName = str_replace(array(DIRECTORY_SEPARATOR, '\\', '/', ':', '*', '?', '"', '<', '>', '|'), '_', $fileName);
|
||||||
$fileName = preg_replace('/[^[:print:]]/', '', $fileName);
|
$fileName = preg_replace('/[^[:print:]]/', '', $fileName);
|
||||||
return $fileName;
|
return $fileName;
|
||||||
}
|
}
|
||||||
|
@ -418,7 +418,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
|
|||||||
* @param Player $player
|
* @param Player $player
|
||||||
*/
|
*/
|
||||||
private function sendPayUsageExample(Player $player) {
|
private function sendPayUsageExample(Player $player) {
|
||||||
$message = "Usage Example: '/pay 100 login'";
|
$message = "Usage Example: '//pay 100 login'";
|
||||||
$this->maniaControl->chat->sendChat($message, $player->login);
|
$this->maniaControl->chat->sendChat($message, $player->login);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user