mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 03:35:33 +00:00
Reverted to 03d46020ec65043b9446fa865f3b8924221d3eef
This commit is contained in:
parent
50c0bf424a
commit
1fd773486e
@ -500,14 +500,12 @@ class PlayerAPI{
|
|||||||
"achievements" => array(),
|
"achievements" => array(),
|
||||||
);
|
);
|
||||||
|
|
||||||
@mkdir(DATA_PATH."players/".substr($iname, 0, 1).'/'.substr($iname, 1, 1), 0755, true);//Recursive
|
if(!file_exists(DATA_PATH."players/".$iname.".yml")){
|
||||||
|
|
||||||
if(!file_exists(DATA_PATH."players/".(substr($iname, 0, 1).'/'.substr($iname, 1, 1).'/'.$iname).".yml")){
|
|
||||||
console("[NOTICE] Player data not found for \"".$iname."\", creating new profile");
|
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();
|
$data->save();
|
||||||
}else{
|
}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){
|
if(($data->get("gamemode") & 0x01) === 1){
|
||||||
|
@ -729,4 +729,4 @@ rm -r -f bin/php5/misc >> "$DIR/install.log" 2>&1
|
|||||||
date >> "$DIR/install.log" 2>&1
|
date >> "$DIR/install.log" 2>&1
|
||||||
echo " done!"
|
echo " done!"
|
||||||
echo "[PocketMine] You should start the server now using \"./start.sh.\""
|
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."
|
||||||
|
@ -210,4 +210,4 @@ then
|
|||||||
if [ ! -f $COMPILEDIR/crosscompile/mac/bin/php5/bin/php ]; then
|
if [ ! -f $COMPILEDIR/crosscompile/mac/bin/php5/bin/php ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user