Added mg_name to settings panel
parent
e085542c9a
commit
c9eaca081d
|
@ -155,6 +155,15 @@ function settingsForm() {
|
|||
Server Desc: <input class="text" type="text" name="serverdesc"><br />
|
||||
Server Website: <input class="text" type="text" name="serverurl"><br />
|
||||
Server MOTD: <input class="text" type="text" name="motd"><br />
|
||||
Map Generation: <select name="mgname">
|
||||
<option value="v7">v7</option>
|
||||
<option value="v6">v6</option>
|
||||
<option value="v5">v5</option>
|
||||
<option value="valleys">valleys</option>
|
||||
<option value="carpathian">carpathian</option>
|
||||
<option value="flat">flat</option>
|
||||
<option value="fractal">fractal</option>
|
||||
</select>
|
||||
Default Privs: <input class="text" type="text" name="defaultprivs" value="shout, interact, home"><br />
|
||||
Spawnpoint (Format example: '32, 20, -140')<br /> <input class="text" type="text" name="staticspawnpoint"><br />
|
||||
Player Transfer Distance (Value in chunks, 0 = unlimited)<br />
|
||||
|
|
|
@ -309,6 +309,11 @@ else if(isset($_GET['do']))
|
|||
file_put_contents("mtm_db/worlds/$userid/minetest.conf", "default_privs = " . $_POST['defaultprivs'] . "\n", FILE_APPEND);
|
||||
}
|
||||
|
||||
// mapgen settings
|
||||
if(isset($_POST['mgname']) && $_POST['mgname']!="") {
|
||||
file_put_contents("mtm_db/worlds/$userid/minetest.conf", "mg_name = " . $_POST['mgname'] . "\n", FILE_APPEND);
|
||||
}
|
||||
|
||||
header("Location: index.php?do=manage");
|
||||
} else {
|
||||
echo "Shut down server before configuration...";
|
||||
|
|
Loading…
Reference in New Issue