diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index 02294e57b..22aa49f11 100644 --- a/src/API/PlayerAPI.php +++ b/src/API/PlayerAPI.php @@ -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){ diff --git a/src/build/compile.sh b/src/build/compile.sh index 28e07105d..7781effc8 100755 --- a/src/build/compile.sh +++ b/src/build/compile.sh @@ -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." \ No newline at end of file +echo "[PocketMine] If it doesn't work, please send the \"install.log\" file to the Bug Tracker." diff --git a/src/build/jenkins.sh b/src/build/jenkins.sh index 70e2de966..0c1126c99 100644 --- a/src/build/jenkins.sh +++ b/src/build/jenkins.sh @@ -210,4 +210,4 @@ then if [ ! -f $COMPILEDIR/crosscompile/mac/bin/php5/bin/php ]; then exit 1 fi -fi \ No newline at end of file +fi