Skip to content

Commit 3a73c4b

Browse files
authored
Merge pull request #65 from mcserversoft/npm-update-server-settings
Update NPM packages and add server settings section
2 parents 9ee6905 + fa4e52d commit 3a73c4b

File tree

12 files changed

+1512
-19126
lines changed

12 files changed

+1512
-19126
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup Node
2020
uses: actions/setup-node@main
2121
with:
22-
node-version: '18'
22+
node-version: '20'
2323

2424
- name: Get yarn cache
2525
id: yarn-cache

docs/API/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ If you plan on writing code that leverages the API, you may want to use an IDE e
7171

7272
## API Endpoints {#-api-endpoints}
7373

74-
View all [implemented endpoints](/api/endpoints).
74+
View all [implemented endpoints](/API/endpoints).

docs/basic/create-server/Forge/create-forge-server-manually.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ There are 2 options on how to add a forge server to mcss.
1313
This guide will show you how to manually create and an import a forge server.
1414

1515
:::tip Looking for the modpack setup?
16-
You can find the appropriate guide for forge modpacks [here](/basic/create-server/forge/create-a-server-with-a-modpack)
16+
You can find the appropriate guide for forge modpacks [here](/basic/create-server/Forge/create-a-server-with-a-modpack)
1717
:::
1818

1919
## Download Forge {#-download-forge}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Server Settings",
3+
"position": 5
4+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
sidebar_position: 1
3+
title: Accessing server settings
4+
description: How to view and edit the settings of a server in MCSS.
5+
keywords: [import, server, files, existing]
6+
---
7+
8+
import MCserverSettings from '/static/img/docs/server-settings/minecraft-settings.jpg';
9+
import serverSettingsLocation from '/static/img/docs/server-settings/mcss-server-settings-location.jpg';
10+
11+
# How MCSS handles the server settings {#-mcss-handle-settings}
12+
13+
MCSS has two main server settings pages:
14+
- [One for the Minecraft-related settings](#-mcss-minecraft-settings);
15+
- [One for the server execution settings](#-mcss-server-execution-settings).
16+
17+
Both are accessible only in the main MCSS window (and not in the web panel).
18+
19+
## Minecraft-related settings {#-mcss-minecraft-settings}
20+
You can edit Minecraft settings using the ‘Settings’ pane in the dashboard.
21+
<img src={MCserverSettings} alt="Minecraft Server Settings" style={{width: 400}} />
22+
On this page, you’ll find settings usually found in the server.properties file.
23+
You can change settings like difficulty, default gamemode, view distance, MOTD, and more through the UI.
24+
25+
## Server execution settings {#-mcss-server-execution-settings}
26+
To open server execution settings, click the cogwheel icon or navigate to `Server` > `Edit Server` at the top.
27+
<img src={serverSettingsLocation} alt="Where you can find the server execution settings" style={{width: 800}} />
28+
This popup lets you change the following settings for the selected server:
29+
- [Server name and Description](#-mcss-settings-general)
30+
- [Server icon (but only the one that's in the MCSS UI)](#-mcss-settings-general)
31+
- [Assigned RAM (see below for details)](#-mcss-settings-general)
32+
- [Server port](#-mcss-settings-general)
33+
- [Autostart](#-mcss-settings-general)
34+
- [Startup line](#-mcss-settings-advanced)
35+
- [Java version](#-mcss-settings-advanced)
36+
- Keep Online Mode (Crash Handling)
37+
- Update the server
38+
39+
:::tip
40+
Settings on this page are saved only when you click the `Save` button.
41+
:::
42+
43+
:::caution
44+
These settings are generally not backed up. Some changes may prevent your server from starting or could cause data loss. Proceed with caution!
45+
:::
46+
47+
Below we'll cover all pages of this popup.
48+
49+
### General {#-mcss-settings-general}
50+
In this page of the server execution settings you can edit the name, description and more.
51+
The server icon editable in this section only applies to the MCSS app, not to the Minecraft Server List.
52+
The autostart setting allows for a server to be started when MCSS first starts.
53+
Any changes to the port or assigned RAM require a server restart to be applied.
54+
55+
:::caution
56+
Renaming the server folder requires a manual filesystem change, so it’s not recommended unless absolutely necessary.
57+
:::
58+
59+
:::tip
60+
Editing the assigned RAM only applies when the server uses the default Java Startup Line method.
61+
If you're unsure, review [the advanced page](#-mcss-settings-advanced) of the server settings.
62+
:::
63+
64+
### Advanced {#-mcss-settings-advanced}
65+
In the `Advanced` section, you can set a custom Java path for this server, change the startup Java line, or set the server to use a .bat file.
66+
To apply the assigned RAM in the `General` tab, select the `Java Startup Line` method and set the `-Xmx` flag to `[RAM]M`.
67+
When setting a .bat file as startup, MCSS will run the validator to check for common mistakes. Be sure to remove all `pause` statements from the file.
68+
Additional custom logic (such as automatic restarts) is **NOT** supported by MCSS, and therefore should be removed.
69+
70+
:::tip
71+
Wanting to run a modpack that requires the use of a custom .bat file?
72+
Follow the [modpack setup guide](/basic/create-server/Forge/create-a-server-with-a-modpack)!
73+
:::
74+
75+
:::caution
76+
Changing the Java version to one not supported by the server will prevent it from starting.
77+
Follow the [java version matrix](/advanced/java-version) to ensure compatibility, and the [java path update](/advanced/java-path-update) guide to find the correct java path for your version.
78+
:::
79+
80+
### Crash Handling {#-mcss-settings-crash}
81+
Here you can set the behavior MCSS should take when it detects that the server has crashed.
82+
With the default setting (`Nothing`), the server will not be restarted automatically after a crash or stop.
83+
The `elevated` setting automatically restarts the server *if it hasn't been shut down by a MCSS input* (via the web panel, by sending a `stop` command in the server console or by clicking on the `stop` or `kill` buttons). This is the safest setting.
84+
The `aggressive` setting will **always** restart the server, even if it was stopped by MCSS.
85+
:::danger
86+
The aggressive setting may cause issues with backups and scheduled tasks, resulting in incomplete or partial backups or data corruption.
87+
:::
88+
89+
### Update Server {#-mcss-settings-update}
90+
Here, you can upload a new .jar file to replace the current one. Stop the server before switching .jar files.
91+
:::caution
92+
This process is not recommended for modded versions, as they require updating external libraries separately.
93+
:::

docs/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ A process on your computer is already using the port your server is trying to us
2727

2828
Start by ensuring you do not already have a server running on this port. If that's the case
2929

30-
Try killing all java processes (refer to [regain-control](#how-do-i-regain-control-of-my-server-if-mcss-crashes)) and start your server again.
30+
Try killing all java processes (refer to [regain-control](#-faq-crash)) and start your server again.
3131

3232
If you added an IP to the 'server-ip' field in the server.properties file make sure to remove it.
3333
If you're running multiple servers make sure they're not using the same port.
@@ -105,7 +105,7 @@ MCSS runs on your computer. As long as it is online, the server is. So yes, if y
105105

106106
MCSS comes with a web panel to manage your servers remotely. You can find more info about it [here](/webpanel/getting-started).
107107
Please note that the panel is still under development so not all features from the app are included.
108-
There is also a REST API available for developers, you can learn more about it [here](/api/about).
108+
There is also a REST API available for developers, you can learn more about it [here](/API/about).
109109

110110
## Dashboard graphs are stuck to 0% CPU and 1MB of RAM {#-faq-dashboard-stats-stuck}
111111

docusaurus.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ const config = {
1515
url: 'https://mcserversoft.github.io',
1616
baseUrl: '/',
1717
onBrokenLinks: 'warn',
18-
onBrokenMarkdownLinks: 'warn',
18+
markdown: {
19+
hooks: {
20+
onBrokenMarkdownLinks: 'warn',
21+
},
22+
},
1923
favicon: '/favicon.ico',
2024
organizationName: 'mcserversoft',
2125
projectName: 'documentation',
@@ -219,7 +223,7 @@ const config = {
219223
},
220224
{
221225
label: 'Developer API',
222-
to: '/api/about',
226+
to: '/API/about',
223227
},
224228
{
225229
label: 'Screenshots',

0 commit comments

Comments
 (0)