Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add necesse template #287

Open
wants to merge 2 commits into
base: v2.6
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions necesse/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Necesse Server Template

This template is for [Necesse](https://necessegame.com/) server creation for PufferPanel.

## Requirements

- PufferPanel version steamdl support.
- Necesse comes pre-bundled with Java.
- Installing a different Java version instead of pre-bundled may break future builds.

## Additional Information

1. We are removing the `server.cfg` file on every run in order to force the server to use the variables we configured. Otherwise we will need to manually delete the file every time we change the configurations.
2. I am using `Xms512m` for JVM args in order to fix startup error when JVM args is empty.
1. Based on my experience running the server so far, `Xms512m` should be the bare minimum.
122 changes: 122 additions & 0 deletions necesse/necesse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"name": "necesse",
"display": "Necesse",
"type": "srcds",
"install": [
{
"appId": "1169370",
"type": "steamgamedl"
},
{
"commands": [
"chmod +x jre/bin/java",
"rm ./cfg/server.cfg"
],
"type": "command"
}
],
"run": {
"stop": "/stop",
"command": "./jre/bin/java ${jvmargs} -jar Server.jar -nogui -localdir -port ${port} -world ${world} -slots ${slots} -owner \"${owner}\" -motd \"${motd}\" -password \"${password}\" -pausewhenempty ${pausewhenempty} -giveclientspower ${giveclientspower} -logging ${logging} -zipsaves ${zipsaves}",
"workingDirectory": "",
"pre": [
{
"commands": [
"rm ./cfg/server.cfg"
],
"type": "command"
}
],
"post": [],
"environmentVars": {}
},
"data": {
"giveclientspower": {
"type": "string",
"desc": "If the server should check client actions, a kind of anti-cheat. When this setting is on it will give a much smoother experience for clients. (0 off, 1 on)",
"display": "Give Clients Power",
"value": "1",
"userEdit": true
},
"jvmargs": {
"type": "string",
"desc": "Any extra arguments to supply to the JVM",
"display": "JVM Args",
"value": "-Xms512m",
"userEdit": true
},
"logging": {
"type": "integer",
"desc": "Generate a log file for each session. (0 off, 1 on)",
"display": "Logging",
"value": "0",
"userEdit": true
},
"motd": {
"type": "string",
"desc": "Message to player when when connected to server",
"display": "MOTD",
"value": "Welcome to Necesse!",
"userEdit": true
},
"owner": {
"type": "string",
"desc": "Player's name to set owner permission. All players with this name will have owner permission!",
"display": "Owner",
"value": "",
"userEdit": true
},
"password": {
"type": "string",
"desc": "Password players must enter in order to connect to the server. Players can save this password directly in game, so this can be more complex.",
"display": "Server Password",
"value": "",
"userEdit": true
},
"pausewhenempty": {
"type": "integer",
"desc": "Pauses the world when there are no players in server. (0 off, 1 on)",
"display": "Pause When Empty",
"value": "1",
"userEdit": true
},
"port": {
"type": "integer",
"desc": "Port to host at",
"display": "Port",
"value": "14159",
"userEdit": true
},
"slots": {
"type": "integer",
"display": "Player Slots",
"required": true,
"value": "10",
"userEdit": true
},
"world": {
"type": "string",
"desc": "World name",
"display": "World",
"required": true,
"value": "world",
"userEdit": true
},
"zipsaves": {
"type": "integer",
"desc": "Whether saves should be compressed. (0 off, 1 on)",
"display": "Zip Saves",
"value": "1",
"userEdit": true
}
},
"environment": {
"type": "standard"
},
"supportedEnvironments": [
{
"type": "standard"
}
],
"requirements": {}
}
Loading