Skip to content

Commit

Permalink
1.11.3 - MC 1.21.x / Bedrock 1.21.40 :
Browse files Browse the repository at this point in the history
  - update minecraft-protocol: 1.54.0
  - #293
  - #291
  • Loading branch information
vwi committed Jan 24, 2025
1 parent cdf8a60 commit 0bb3718
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 42 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ Give a ⭐️ if you like the project!
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/vincss)

## 📜 ChangeLog
- 1.11.3 - MC 1.21.x / Bedrock 1.21.40 :
- update minecraft-protocol: 1.54.0
- https://github.com/vincss/mcsleepingserverstarter/pull/293
- https://github.com/vincss/mcsleepingserverstarter/pull/291
- 1.11.2 - MC 1.21.x / Bedrock 1.21.40 :
- Add alpine arm64 binary
- 1.11.1 - MC 1.21.x / Bedrock 1.21.40 :
Expand Down
19 changes: 0 additions & 19 deletions config.yaml

This file was deleted.

12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mcsleepingserverstarter",
"version": "1.11.2",
"version": "1.11.3",
"description": "Sleeps until someone connects",
"main": "build/sleepingServerStarter.js",
"bin": "build/sleepingServerStarter.js",
Expand All @@ -24,7 +24,7 @@
"express": "^4.21.1",
"express-handlebars": "^7.0.4",
"js-yaml": "^4.1.0",
"minecraft-protocol": "^1.53.0",
"minecraft-protocol": "^1.54.0",
"prismarine-chat": "^1.8.0",
"properties-reader": "^2.3.0",
"winston": "^3.8.2"
Expand Down
44 changes: 30 additions & 14 deletions sleepingSettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,57 +4,70 @@
# The name of your server.
# You can specify (https://motd.gg) by using the `§` prefix.
serverName: "SleepingServer, waiting for his prince..."

# The server name to display in Minecraft, defaults to serverName if not set
# serverMOTD: "SleepingServer, waiting for his prince... [MOTD]"

# Use Minecraft `server.properties` to overwrite
# `serverPort`, `maxPlayers`, `serverOnlineMode`, `useWhitelistFile`,
# and `useBlacklistFiles` properties
useNativeFiles: false
#useNativeFiles: false

# The port of your Java Edition server (0 to disable)
serverPort: 25565

# The port of your Bedrock Edition server (0 to disable or add `#`)
bedrockPort: 19132
#bedrockPort: 19132

# Message shown when the server is off and someone is trying to connect
loginMessage: "...Waking server up, come back in a minute..."

# Like in the server.properties, to check the licence of player or not.
serverOnlineMode: false

# Use legacy "login" method
# https://github.com/PrismarineJS/node-minecraft-protocol/issues/1279#issuecomment-1878866611
# useLegacyLogin: false
#useLegacyLogin: false

# Maximum amount of players
maxPlayers: 20

# Web page port
# webPort: 8080
#webPort: 8080

# Stop the web-server when minecraft starts
# webStopOnStart: true
#webStopOnStart: true

# You can specify an absolute path to serve instead or an url to redirect to.
# true or false to enable, by default it will serve ./plugins/dynmap/web/
# https://github.com/vincss/mcsleepingserverstarter/wiki/Use-internal-SSS-WebServer-for-dynmap
# webServeDynmap: false
#webServeDynmap: false

# Add a button in the web-ui to restart the minecraft server proxy
# webAllowRestart: false
#webAllowRestart: false

# Start the Minecraft Server
startMinecraft: true

# Server start command
# paper.jar or whatever flavor you like
minecraftCommand: "java -jar paper.jar --nogui"

# Set a custom Working Directory for the server (path to minecraft server folder)
# Edit this setting only if you know what you are doing!
# If you don't know what, don't to edit it.
# minecraftWorkingDirectory: ""
#minecraftWorkingDirectory: ""

# Automatically start the real server instead of the sleeping one
minecraftAutostart: false
#minecraftAutostart: false

# Customise the delay between when the minecraft server stops
# and the sleeping server restarts (to ensure conection are closed)
# in milliseconds
restartDelay: 5000

# Prevent the user to stop the server (trought web-server or cli).
preventStop: false
#preventStop: false

# Discord WebHook
# https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
Expand All @@ -67,14 +80,16 @@ preventStop: false

# Only allow these player name on the white list to wake the server up
# example ["vincss"]
# whiteListedNames: [""]
#whiteListedNames: [""]

# Use Minecraft `whitelist.json` instead of the `whiteListedNames` property.
# Checks both username and UUID
useWhitelistFile: false

# Prevent connections from those addresses to wake up the server
# example ["149.102.143.151", "132.145.71.44", "45.128.232.206", "193.35.18."]
# blackListedAddress: [""]
#blackListedAddress: [""]

# Use Minecraft `banned-ips.json` and `banned-players.json` to prevent players from waking up the server.
# Can be used together with `blackListedAddress` property
useBlacklistFiles: false
Expand All @@ -91,7 +106,8 @@ useBlacklistFiles: false
# version: false

# Hide the ip from the remote player in the logs
hideIpInLogs: true
#hideIpInLogs: true

# Hide pinging logs
hideOnConnectionLogs: true
#hideOnConnectionLogs: true

2 changes: 1 addition & 1 deletion src/sleepingSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const DefaultSettings: Settings = {
useLegacyLogin: true,

startMinecraft: true, // false to disable
minecraftCommand: "java -jar paper.jar nogui",
minecraftCommand: "java -jar paper.jar --nogui",
restartDelay: 5000,
version: false,
useWhitelistFile: false,
Expand Down

0 comments on commit 0bb3718

Please sign in to comment.