mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Show an error if no language files found during setup, mitigates #380
This commit is contained in:
@ -45,8 +45,14 @@ class SetupWizard{
|
||||
|
||||
public function run(){
|
||||
echo "[*] PocketMine-MP set-up wizard\n";
|
||||
echo "[*] Please select a language:\n";
|
||||
|
||||
$langs = BaseLang::getLanguageList();
|
||||
if(empty($langs)){
|
||||
echo "[!] No language files found, please use provided builds or clone the repository recursively." . PHP_EOL;
|
||||
return false;
|
||||
}
|
||||
|
||||
echo "[*] Please select a language:\n";
|
||||
foreach($langs as $short => $native){
|
||||
echo " $native => $short\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user