GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
Installer Class Reference

Public Member Functions

 __construct ()
 
 run ()
 
 getDefaultLang ()
 

Data Fields

const DEFAULT_NAME = "Minecraft: PE Server"
 
const DEFAULT_PORT = 19132
 
const DEFAULT_MEMORY = 512
 
const DEFAULT_PLAYERS = 20
 
const DEFAULT_GAMEMODE = 0
 
const DEFAULT_LEVEL_NAME = "world"
 
const DEFAULT_LEVEL_TYPE = "DEFAULT"
 
const LEVEL_TYPES
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Installer constructor.

55  {
56 
57  }

Member Function Documentation

◆ getDefaultLang()

getDefaultLang ( )
103  {
104  return $this->defaultLang;
105  }

◆ run()

run ( )
Returns
bool
62  {
63  echo "[*] GenisysPro set-up wizard\n";
64  echo "[*] Please select a language:\n";
65  foreach(InstallerLang::$languages as $short => $native){
66  echo " $native => $short\n";
67  }
68  do{
69  echo "[?] Language (eng): ";
70  $lang = strtolower($this->getInput("eng"));
71  if(!isset(InstallerLang::$languages[$lang])){
72  echo "[!] Couldn't find the language\n";
73  $lang = false;
74  }
75  $this->defaultLang = $lang;
76  }while($lang == false);
77  $this->lang = new InstallerLang($lang);
78 
79 
80  echo "[*] " . $this->lang->get("language_has_been_selected") . "\n";
81 
82  $this->relayLangSetting();
83 
84  if(!$this->showLicense()){
85  return false;
86  }
87 
88  echo "[?] " . $this->lang->get("skip_installer") . " (y/N): ";
89  if(strtolower($this->getInput()) === "y"){
90  return true;
91  }
92  echo "\n";
93  $this->welcome();
94  $this->generateBaseConfig();
95  $this->generateUserFiles();
96 
97  $this->networkFunctions();
98 
99  $this->endWizard();
100  return true;
101  }

Field Documentation

◆ DEFAULT_GAMEMODE

const DEFAULT_GAMEMODE = 0

◆ DEFAULT_LEVEL_NAME

const DEFAULT_LEVEL_NAME = "world"

◆ DEFAULT_LEVEL_TYPE

const DEFAULT_LEVEL_TYPE = "DEFAULT"

◆ DEFAULT_MEMORY

const DEFAULT_MEMORY = 512

◆ DEFAULT_NAME

const DEFAULT_NAME = "Minecraft: PE Server"

◆ DEFAULT_PLAYERS

const DEFAULT_PLAYERS = 20

◆ DEFAULT_PORT

const DEFAULT_PORT = 19132

◆ LEVEL_TYPES

const LEVEL_TYPES
Initial value:
= [
"DEFAULT",
"FLAT",
"NORMAL",
"NORMAL2",
"HELL",
"VOID"
]

The documentation for this class was generated from the following file: