Reverted to 03d46020ec65043b9446fa865f3b8924221d3eef

This commit is contained in:
Shoghi Cervantes 2014-04-20 18:11:13 +02:00
parent 50c0bf424a
commit 1fd773486e
3 changed files with 5 additions and 7 deletions

View File

@ -500,14 +500,12 @@ class PlayerAPI{
"achievements" => array(),
);
@mkdir(DATA_PATH."players/".substr($iname, 0, 1).'/'.substr($iname, 1, 1), 0755, true);//Recursive
if(!file_exists(DATA_PATH."players/".(substr($iname, 0, 1).'/'.substr($iname, 1, 1).'/'.$iname).".yml")){
if(!file_exists(DATA_PATH."players/".$iname.".yml")){
console("[NOTICE] Player data not found for \"".$iname."\", creating new profile");
$data = new Config(DATA_PATH."players/".(substr($iname, 0, 1).'/'.substr($iname, 1, 1).'/'.$iname).".yml", CONFIG_YAML, $default);
$data = new Config(DATA_PATH."players/".$iname.".yml", CONFIG_YAML, $default);
$data->save();
}else{
$data = new Config(DATA_PATH."players/".(substr($iname, 0, 1).'/'.substr($iname, 1, 1).'/'.$iname).".yml", CONFIG_YAML, $default);
$data = new Config(DATA_PATH."players/".$iname.".yml", CONFIG_YAML, $default);
}
if(($data->get("gamemode") & 0x01) === 1){

View File

@ -729,4 +729,4 @@ rm -r -f bin/php5/misc >> "$DIR/install.log" 2>&1
date >> "$DIR/install.log" 2>&1
echo " done!"
echo "[PocketMine] You should start the server now using \"./start.sh.\""
echo "[PocketMine] If it doesn't work, please send the \"install.log\" file to the Bug Tracker."
echo "[PocketMine] If it doesn't work, please send the \"install.log\" file to the Bug Tracker."

View File

@ -210,4 +210,4 @@ then
if [ ! -f $COMPILEDIR/crosscompile/mac/bin/php5/bin/php ]; then
exit 1
fi
fi
fi