Coder Social home page Coder Social logo

vincss / mcsleepingserverstarter Goto Github PK

View Code? Open in Web Editor NEW
228.0 7.0 42.0 1.07 MB

Put your minecraft server to rest, while SleepingServerStarter is watching !

Home Page: https://www.spigotmc.org/threads/put-your-server-to-rest-with-sleepingserverstarter.108828/

TypeScript 87.67% Handlebars 9.91% Dockerfile 1.49% JavaScript 0.26% Shell 0.67%

mcsleepingserverstarter's Introduction

💤 Welcome to SleepingServerStarter 💤

Put your minecraft server to rest, while SleepingServerStarter is watching! Save power, save the world!

Tutorial Video | Based on minecraft-protocol | Based on JSPrismarine | Original idea

✅ Compatible versions

🧰 Features

  • Listen on the same port as your minecraft server.
    • Option to connect from BedRock (Portable version of Minecraft)
    • Web-gui, to turn on or off your server from anywhere
  • When someone connects, immediately launch your minecraft server.
    • You can also type 'quit' in your console to start minecraft's server.

Works better with EmptyServerStopper, a plugin that automatically stops your server after a definied amount of time

📀 Install

There are multiple ways to run SleepingServerStarter:

📦 Download the binaries (easiest)

  1. Download binaries corresponding to your OS
  2. Place the executable in the same folder as your server file (spigot.jar, paper.jar, etc...)
  3. Make sure your server is stopped
  4. Run the executable
    • On Linux, try chmod +x mcsleepingserverstarter-linux-x64 if you can't run the executable

📜 Manually install and compile

  1. Requires NodeJS v16+
  2. Clone the repo or download the project as Zip
  3. Unzip or clone it in the same folder as your minecraft server
  4. Launch npm ci
  5. Start the project with npm start

🐋 Docker

SleepingServerStarter is available as a Docker image: ghcr.io/vincss/mcsleepingserverstarter

It supports both x64 and arm64 host system architectures.

For detailed examples and instructions for setup via Docker, see the wiki page here.

🐡 PufferPanel

If you're using PufferPanel, you can import this template as JSON to use Paper Spigot with Sleeping Server Starter via PufferPanel

🐦 Pterodactyl

If you're using Pterodactyl, you can import this egg as JSON to use Paper Spigot with Sleeping Server Starter OR you can also import this egg as JSON to use Vanilla Minecraft with Sleeping Server Starter on Pterodactyl

Pterodactyl can be installed via Unofficial pterodactyl-installer

⚙️ Settings

Note: If running from binaries, the settings file will be created after the first execution in the same folder as the executable

Setting Description Default value
serverName The name of your server.
You can specify colour codes by using the § prefix (Does not work on Bedrock)
"SleepingServer, waiting for his prince..."
serverMOTD The MOTD to display for Minecraft Servers.
You can specify colour codes just as you can for serverName. Defaults to serverName if not set. (Still does not work on Bedrock)
Same as serverName
serverPort The port of your Java Edition server (0 to disable) 25565
bedrockPort The port of your Bedrock Edition server (0 to disable) 19132
loginMessage Message shown when the server is off and someone is trying to connect "...Waking server up, come back in a minute..."
serverOnlineMode Check if players has premium accounts true
maxPlayers Maximum amount of players 20
useNativeFiles Use Minecraft server.properties to overwrite serverPort, maxPlayers, serverOnlineMode, useWhitelistFile, and useBlacklistFiles properties false
webPort Port for the Web-Gui 0
webStopOnStart Stop the web-server when minecraft starts false
webServeDynmap true or an absolute path to enable it, by default it will serve './plugins/dynmap/web/'. You can specify an absolute path to serve instead or an url to redirect to. How use with dynamp false
webSubPath Set the path to the Web-GUI if serving from behind a reverse proxy ""
webAllowRestart Add a button in the web-ui to restart the minecraft server proxy false
startMinecraft Start the Minecraft Server (false to disable) true
minecraftCommand The command used to start the server "java -jar paper.jar nogui"
minecraftAutostart Automatically start the real server instead of the sleeping one false
restartDelay Customise the delay between when the minecraft server stops and the sleeping server restarts ( to ensure conection are closed ) ( in milliseconds ) 5000
preventStop Prevent the user to stop the server (trought web-server or cli). false
minecraftWorkingDirectory Set a custom Working Directory for the server EDIT ONLY IF YOU KNOW WHAT YOU'RE DOING (should be the path to the server's directory, absolute path is best) ""
version Force compatibility with a specific Minecraft. If set to false, it should handle any compatible version ""
favIconPath Path to a PNG file to use as the server icon.
If this is set to server-icon.png then it will use the same icon as the server.
""
favIcon Use a custom server-icon 64x64 png converted using https://www.base64-image.de/ (needs to be encoded in base64) ""
discordWebhookUrl Setup a Discord WebHook to your channel "REPLACE_ME"
blackListedAddress Prevent connections from those addresses to wake up the server ["127.0.0.1"]
whiteListedNames Only allow people with their name on the white list to wake the server up ["vincss"]
useWhitelistFile Use Minecraft whitelist.json instead of the whiteListedNames property. Checks both username and UUID false
useBlacklistFiles Use Minecraft banned-ips.json and banned-players.json to prevent players from waking up the server. Can be used together with blackListedAddress property false
hideIpInLogs Hide the ip from the remote player in the logs false
hideOnConnectionLogs Hide 'A Prince has taken a quick peek' the logs false
useLegacyLogin use legacy "login" method from minecraft-protocol false

Note: if you need to shutdown the program, simply input a ctrl + c, the program will shut down normally afterwards


Use WebServer for dynmap

Links :

🕸 Bungeecord

While SleepingServerStarter is made to run on a single server, it can be integrated to a Bungeecord network. But please note that you'll need to install and configure SleepingServerStarter on every servers you want to be affected by the program.

Installing SleepingServerStarter only on your proxy server will NOT work

For each server you're installing SleepingServerStarter on :

  • the serverPort should be the port of the server you're installing the program on, not the proxy's port
  • make sure serverOnlineMode is set to false to avoid any problems with Bungee when switching between servers

We know this can be a little bit time consuming, but this solution is working great

In action :

When trying to join a sleeping server, you get this kind of message by Bungee
Basically, it keeps kicking the player with loginMessage as reason, telling the player the server is being started

👤 Author

@vincss

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page

🙌 Show your support

Give a ⭐️ if you like the project!

Donate

📜 ChangeLog

  • 1.9.1 - 1.20.2 :
    • add useLegacyLogin parameter, to use old login internally
  • 1.9.0 - 1.20.1 :
    • add useWhitelistFile parameter to switch to whitelist.json instead of whiteListedNames (thanks to spanasiuk)
    • add useBlacklistFiles parameter to use banned-ips.json and banned-players.json (thanks to spanasiuk)
    • add useNativeFiles parameter to use server.properties for getting serverPort, maxPlayers, serverOnlineMode, useWhitelistFile, and useBlacklistFiles properties (thanks to spanasiuk)
    • change stdio streams on Windows when web-gui is used.
  • 1.8.0 - 1.20.1 :
    • add webAllowRestart parameter
    • add minecraftAutostart parameter
    • add restartDelay parameter
  • 1.7.1 - 1.20.1 :
    • Run mcsleeperstarter as a non-root user within the docker container
  • 1.7.0 - 1.20.1 :
    • [Feature] Added serverMOTD setting ( thanks to gavinhsmith )
    • [UX] Made the Sleep button disappear while server is online when "preventStop" is true ( thanks to gavinhsmith )
  • 1.6.0 - 1.20.1 :
    • add hideOnConnectionLogs parameter
    • update minecraft-protocol: 1.43.2 ( minecraft 1.20.1 )
  • 1.5.13 - 1.20.1 :
    • add environement variable DISABLE_FILE_LOGS to disable file logs
  • 1.5.12 - 1.20.1 :
    • update minecraft-protocol: 1.43.0 ( minecraft 1.20.1 )
  • 1.5.11 - 1.19.4 :
    • update minecraft-protocol: 1.42.0 ( minecraft 1.19.4 )
  • 1.5.10 - 1.19.3 :
    • webServeDynmap setting can be set to an url
  • 1.5.9 - 1.19.3 :
    • backup config file before setting to default
  • 1.5.8 - 1.19.3 :
    • reload settings on restart
  • 1.5.7 - 1.19.3 :
    • restart on 'uncaughtException'
  • 1.5.6 - 1.19.3 :
    • do not exit on 'uncaughtException'
  • 1.5.5 - 1.19.3 :
    • add hideIpInLogs parameter
  • 1.5.4 - 1.19.3 :
    • add version number in start/stop minecraft
  • 1.5.3 - 1.19.3 :
    • docker: copy only needed binary
  • 1.5.2 - 1.19.3 :
    • docker: base image eclipse-temurin:17-jre-jammy
  • 1.5.1 - 1.19.3 :
    • add docker generation (@markmetcalfe)
    • fix minecraftDirectory not being used as base path when serving dynmap via web GUI ( @markmetcalfe)
  • 1.5.0 - 1.19.3 :
    • add setting webSubPath
    • add more architectures builds
    • add setting favIconPath to use a png as icon.
    • handle motd in serverName
    • Thanks to markmetcalfe for thoses improvements
    • update minecraft-protocol: 1.41.2
  • 1.4.1 - 1.19.3 :
    • update minecraft-protocol: 1.41.1
    • disable bedrock by default
    • add whiteListedNames
  • 1.4.0 - 1.19.3 :
    • set option 'version' to false by default (it should handle any compatible version).
  • 1.3.1 - 1.19.3 :
    • update minecraft-protocol: 1.41.0
  • 1.3.0 - 1.19.3 :
    • add blackListedAddress parameters
    • add dynmap
    • add preventStop
    • update minecraft-protocol: 1.40.3
  • 1.2.6 - 1.19.3 :
    • update third-parties
  • 1.2.5 - 1.19.3 :
    • update minecraft-protocol for MC 1.19.3
  • 1.2.4 - 1.19.2 :
    • update minecraft-protocol for MC 1.19.2 (no 1.19.3 yet)
  • 1.2.3 - 1.19 :
    • update to Node18
  • 1.2.2 - 1.19 :
    • add arm64 builds (Raspberry Pi)
  • 1.2.1 - 1.19 :
    • update node-minecraft-protocol for MC 1.19 (no 1.19.1 & 1.19.2 yet)
  • 1.2.0 - 1.18.2 :
    • Add settings webStopOnStart
    • Change settings startMinecraft to boolean
  • 1.1.5 - 1.18.2 :
    • Add more logs when it fails to retreive settings
    • update node-minecraft-protocol ^1.34.0
  • 1.1.4 - 1.18.2 :
    • update node-minecraft-protocol ^1.32.0
  • 1.1.3 - 1.18.1 :
    • Fixed concurent wake up : ./issues/68
    • update node-minecraft-protocol ^1.30.0
  • 1.1.2 - 1.18.1 :
    • Compress binaries ( GZip )
  • 1.1.1 - 1.18.1 :
    • update node-minecraft-protocol ^1.29.0 -> 1.18.1
  • 1.1.0 - 1.17.1 :
    • Feature Add Discord Notification
    • Update dependencies (node16, npm8, typescript,...)
  • 1.0.4 - 1.17.1 :
    • update node-minecraft-protocol ^1.26.1
  • 1.0.3 - 1.16.5 :
    • update security
  • 1.0.2 - 1.16.5 :
    • add maxPlayers in settings
  • 1.0.1 - 1.16.5 :
    • Include version in log.
  • 1.0.0 - 1.16.5 :
    • Feature Add web-gui
  • 1.16.4 :
    • Add bedrock support.
  • ...

mcsleepingserverstarter's People

Contributors

boredkevin avatar deltatron7543 avatar dependabot[bot] avatar emerickh avatar filiphsps avatar gavinhsmith avatar iwa avatar markmetcalfe avatar pablohess avatar spanasiuk avatar vincss avatar william64644 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mcsleepingserverstarter's Issues

Problem with more servers

Hi, i have a problem when i try to put more than one server to sleep, on 'npm start' it says failed to bind a port but the plugin is wrong, i checked the ports. When i want to have more than one server i must start the first one then the second one and then the third one so he can start. But once the server shutsdown. It no longer wakes up and it says this again.

2021-05-23 17:19:27 info: ----------- Minecraft stopped -----------
2021-05-23 17:19:27 info: ...Time to kill me if you want...
2021-05-23 17:19:37 info: ...Too late !...
2021-05-23 17:19:37 info: [McJava] Waiting for a Prince to come. [25560] Or someone to type quit.
2021-05-23 17:19:37 info: [McJava] Ready for battle
2021-05-23 17:19:37 warn: Caught uncaughtException: {"errno":-98,"code":"EADDRINUSE","syscall":"bind","address":"0.0.0.0","port":19132}
2021-05-23 17:19:37 info: A server is already using the port 25560. Kill it and restart the app.
2021-05-23 17:19:37 error: Something bad happened
2021-05-23 17:19:37 info: ...Exiting...

Error when trying to start the script

I getting this error when trying to run the script with npm start:
60BCD1C4-D007-4B99-970A-99DA7114BCDC

Node.js Version: 16.13.1
Server OS: Ubuntu 20.04.03 LTS
Gameserver: Spigot 1.18

color code support

I might just be stupid here, but can you add color code support. I don't know how to use color codes

My original idea was like this:
PKKgt3 1

1.17 Support

Currently it's not working correctly with Minecraft version 1.17, I just cloned the repo to make sure I had every file updated.

When closing my spigot server the process gets stuck at the end and after pressing Ctrl+C this shows up:
image

I've been using your project a lot and for while now so thank you for all the work you've put into it <3

sleepingserver crashes after Minecraft server goes to sleep.

For a while I'm running 4 servers and working wonderfully.
Every so often when a server shuts down and tries to go to sleep sleeperstarter crashes and takes that cmd instance with it.

This also means it just ignores pause command and its almost impossible to see what the cause was.

I've been trying for awhile to figure out what it could be.
Also every server has different rcon/query and server ports.

bat startup script:
@ECHO OFF timeout /t 20 :start npm start pause goto start pause

info: A Prince has taken a quick peek. [handshaking_1.16.5]

The log says "info: A Prince has taken a quick peek. [handshaking_1.16.5]" when people try to connect through Bungeecord. My problem is if there are anyway to make the server start when "info: A Prince has taken a quick peek. [handshaking_1.16.5]" happens instead of doing nothing.

Change Sleeping-State Server Icon?

I'm happy to report it works great on 1.16.5!
However I'm not sure if I'm being dense or this is actually an issue but, on 1.16.5, the sleeping-state server icon doesn't update when I change server-icon.png in the server root. Is it pointed to somewhere else? I'm not too educated on the subject.
It might be because I have the Windows .exe pointed to from a Windows Service, but I'm not sure that has any effect on this.
I'll try to uninstall the service and re-install to see if changing the server-icon worked. I'll report back the results, of course.
Any comments are appreciated!

Can't listen to port using sudo

I can't allocate any port under 1024.

YES, I KNOW THAT YOU CAN'T DO THAT WITHOUT ROOT PERMISSIONS

But even when running sudo npm start to run the script as root will deny access.

Any way to properly run the npm script as root?
Screenshot 2021-03-01 085554

My friend cant wake up the server

i now have a problem why when it sleep i join can open but why my server sleep it not work for my friend it just 'cant correct to the server'
pls help me fix and thanks

TypeScript error

On v1.0.4 with TS 4.4.3, on Arch Linux, npm start produces:

    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:

sleepingSettings.ts:46:50 - error TS2571: Object is of type 'unknown'.

46         logger.error('Failed to write setting.', error.message);
                                                    ~~~~~
sleepingSettings.ts:57:64 - error TS2571: Object is of type 'unknown'.

57         logger.error('Failed to load setting, using default.', error.message);

Fix:
add this line in tsconfig.json:
"useUnknownInCatchVariables": false,
And npm start launches as normal.

Great program btw!

Edit: Sources
https://stackoverflow.com/a/69445095
https://stackoverflow.com/a/69431651

simply cannot run on 1.17

I did what the tutorial ask to do. I follow every instruction but for some reason it doesnt work. I create a new server from the ground up and it simply doesn't work. When I tried to "npm start" the server, the port isn't listening and it is closed but when i try to open the server the traditional way, it works and the port is opened. I don't know what i did wrong here.
cmd_chBCg0bsaf
javaw_5SVoXEy8UW
javaw_n4uCuKOfTI

NPM Install Error

Issue:

While I was installing Sleeping Server Starter, it gave me an error when npm install finished. This might've prevented npm start from working as it gives me an error everytime I run the command.

Screenshot:

IMG_20210306_212606

Log:

install.log

[Suggestion] Features for proxy networks

I would like to keep my proxy and hub online at all times, then players will connect to servers using mcsleepingserverstarter from the hub. However, due to the way Bungeecord works, the fact mcsleepingserverstarter kicks the player when connecting breaks this. What I would like is a plugin for the proxy that allows you to continue playing on the network while you wait for the server to start (e.g: You click an NPC, get a message in the chat letting you know the server is offline and starting so to wait, the server starts then you get moved into the server)

One issue I see with this is it could make a network more vulnerable to DDOS attacks since a person could repeatedly join and leave each of the servers so they keep having to turn on and off, so preferably there would be something that detects this kind of behaviour and shuts down the nodes being attacked or, if it's just a DOS attack, blacklists the IP.

Can´t turn on the server

When i try to start the server it starts, but when anoter one with non bought minecraft tries to open the server it pops this message imagen****

quit command starts server

When starting programm, and wanting to stop it, the quit command does stop the programm but starts the server.
Then if trying to stop the server, the programm starts up again.

Unable to change/specify Minecraft server 'version'

Hello!

Loving this software.

There's one bug I've encountered that I'm unsure how to solve.

My Spigot server is running 1.16.1. However, when the server is off (and mcsleepingserverstarter is watching for port knocks) the server's version reports as 1.16. Since my players are naturally running 1.16.1, this causes their client to show the server as being outdated/incompatible, as previewed:

20200719T211617

When attempting to connect to the server anyway (despite the cosmetic error), mcsleepingserverstarter initializes the Spigot server as expected. Once the server has come back online, and I refresh the in-game server list, the game version of course shows "1.16.1" as expected.

When adding the line version: "1.16.1" to sleepingSettings.yml, the console does report the setting as being picked up:

2020-07-19P21.00.42.034 - info: .........................
2020-07-19P21.00.42.035 - info: ... A new story begin ...
2020-07-19P21.00.42.074 - info: .........................
2020-07-19P21.00.42.074 - info: Retrieved settings: serverName=foo, serverPort=25566, loginMessage=Server is waking up! Please reconnect in 10 seconds., serverOnlineMode=true, webPort=0, webDir=plugins/dynmap/web, startMinecraft=1, minecraftCommand=./wake.sh, version=1.16.1

...however in-game, the server version still reads as "1.16".

I've also attempted to directly edit the value in sleepingSettings.js, but the outcome is unchanged.

It appears that the setting is being recognized, but then dropped somewhere down the line. Problem is, I can't see where that would be. Was the value "1.16" accidentally hardcoded somewhere?

Thanks!

MOTD (Server name) Color codes

Good job on the script!

An issue I encountered is that when using the Linux binary the serverName: in the .yml file gets escaped by backslashes, so color codes that would be used in the server.properties file, like "\u00A7d", get displayed directly when a person pings the server. They should be broadcasted as is without escaping so that the client renders the colors and formats. I don't know if this is an easy change to make given the protocol you use.

No wakeup message in 1.17

when starting the server, the "waking server up, come back in a minute" is not showing up.
Instead it just says: "Connection Lost" -> But it starts anyway and I wrote some pretty neat bash and python scripts with a shelly plug wich starts the whole server (my pc in fact..)

Raspberry pi with server starter and Bungeecord, and pc with servers.

Problem occurs in Java and Bedrock
The "Sleeping Server, Waiting for a prince to come" is still there in java.. (not in Bedrock..)
In Bedrock the Server shows offline, but starts anyway if someone is trying to connect..

So no problem in functionality on 1.17 jjust the messages dont work properly

sleeping server starter not working on linux

i installed nodejs and npm with sudo apt install then i went into the server folderi typed npm install then updaate and it showe a arror i used the download code as zip method and dragged the files in the server folder and it just showed an arror when i did it

please help

Be able to edit Discord webhook message

Hello, I would like to be able to edit the webhook message in the settings instead to have to edit the whole code.
Here what I edited to be exactly to my liking on "sleepingDiscord.ts":

    onPlayerLogging = async (playerName: string) => {
        const content = `{
            "content": null,
            "embeds": [
              {
                "description": "${playerName} a réveillé le serveur Minecraft, démarrage en cours...",
                "color": 65280
              }
            ],
            "username": "Minecraft"
        }`;
        await this.sendMessage(content, true);

    }

    onServerStop = async () => {
        const content = `{
            "content": null,
            "embeds": [
              {
                "description": "Le serveur est vide, arrêt en cours...",
                "color": 16711680
              }
            ],
            "username": "Minecraft"
        }`;
        await this.sendMessage(content, false);
    }
}

The avatar is already defined on the webhook settings inside of Discord, same for the username but I edited here to not break the code.
I changed the color, and instead of "title" I used "description" because I don't want the message to be bold.
I'm using a plugin to send message when the server is started, here the result:
image
Translation:

  • Player waked-up the server, starting...
  • Server started

I did the same for shutting down the server, but it's doing doublons so I want to be able to disable onServerStop, I tried to remove the code block but npm start won't start saying onServerStop is missing.
I hope you see the idea what we should be able to edit directly in "sleepingSettings.yml".

Thank you!

"Can't connect to server", incorrect chunk size | 1.16.5 support

2021-02-11 16:26:23.978 - info: A Prince has taken a quick peek. [handshaking_1.16.1]
Chunk size is 55 but only 3 was read ; partial packet : {"name":"legacy_server_list_ping","params":{"payload":1}}; buffer :fe0101fa000b004d0043007c00500069006e00670048005f0073007400197f0009006c006f00630061006c0068006f00730074000063dd

image
image

Port forwarding / Chunk size read/unread issues

Hi. I've been building a MC server for a while now and I've found this video https://youtu.be/WqvQISpr6-s on an auto start and stop MC server which references ur work on the mcsleepingseverstarter which works great with the server I'm building. I followed the tutorials in the video, i even downloaded ur .exe file in the github to run my server. it works great!!!! except for one minor issue. The issue is when i began to port forward my server . my router began to start sending "large chunk sizes...." (i dunno what the proper terminology is called...sorry) to the MC sleeping server starter.... causing it to show some errors and crashsing my server after a few pings....the weird part is....if i were to not use the auto start and stop MC server function and ran my server 24/7 like other general MC server.... its fine.... so i assume that my port forwarding setup is only affecting the MC sleeping server function. any help would be greatly appreciated.

image link of the problem (https://media.discordapp.net/attachments/788922845534748768/852167439634137098/Screenshot_5.png)
image

I'm very new to port forwarding....I've previously used radmin (https://www.radmin-vpn.com/) to simulate LAN connectivity for people to play on my server. i hope you can help. i would be happy to send you my router specs and setup as well but i'll wait for a reply in discord (Err̔̏̊or#3500)

Is this thing on??

Heyo, i know i didn't respond in my last few tickets and its been some time, but is this being planned on updating to the new versions?? Attempts to use for 1.15.2 have been foiled thanks again.

SSS Exits

Little Problem with it i dont know if its something i did wrong or what but it has been a consistent problem

I get the error(s) noted below and one with something about econnect it only happens when the server is stopped

2016-01-09 07:21:24.273 - info: ----------- Minecraft stopped -----------
2016-01-09 07:21:24.275 - info: ...Time to kill me if you want...
2016-01-09 07:21:24.278 - info: ...Too late !...
2016-01-09 07:21:24.505 - info: Waiting for a Prince to come. [25565] Or someone to hit a key.
2016-01-09 07:21:24.506 - info: ...Too late !...
2016-01-09 07:21:24.722 - info: Waiting for a Prince to come. [25565] Or someone to hit a key.
2016-01-09 07:21:24.724 - info: Caught exception: Error: listen EADDRINUSE 0.0.0.0:25565
2016-01-09 07:21:24.726 - info: ...Exiting..

maxPlayers not configurable

Would be great if the maxPlayers would be configurable. Actually it's default 20.

       motd: this.settings.serverName,
       maxPlayers : this.settings.maxPlayers,
       port: this.settings.serverPort,

Asking because I can't find anyone with my question/issue

Does this work with LinuxGSM? If so, how would one configure it? My only guess is that you'd put the "minecraftCommand" as the same command you would type in the terminal to start it, which for most I think is ./mcserver start, I use PaperMC so it would be ./pmcserver start, but I'm not sure if this will work, so I thought I'd ask

Many Princes are taking peeks (Server keeps `handshaking_1.16.5`)

There is a problem with the server in sleeping mode where it continuously prints out A Prince has taken a quick peek. [handshaking_1.16.5]

I am using the commit 31bb50f (as far as I'm aware, I forgot to keep track), this is my config

# sleepingSettings.yml
serverName: Server Sleeping. Join to wake!
serverPort: 25566
bedrockPort:
loginMessage: The server is waking up. Please try again in a bit!
serverOnlineMode: false
webPort:
webDir:
startMinecraft: 1
minecraftCommand: java -jar paper-1.16.5-592.jar nogui

This is happening with the two instances of this that I have running at a time, the other config isn't much different

# sleepingSettings.yml
serverName: Server Sleeping. Join to wake!
serverPort: 25567
bedrockPort:
loginMessage: The server is waking up. Please try again in a bit!
serverOnlineMode: false
webPort: 8100
webDir:
startMinecraft: 1
minecraftCommand: java -jar paper-1.16.5-572.jar nogui

None of the ports used are forwarded since I am using BungeeCord and using the sleeping servers to take a load off of the host computer when the servers don't have any players
If I need to provide more info please tell me.

[Idea suggestion] Fake players for bungeecord tablists

I have started to integrate this with bungeecord and it works well surprisingly well. The only problem is that in a custom tab list there is no way to see if a server is offline. Could it be set as a config option to create a fake player to say that the server is offline for bungeecord users?

Can't use aliases in Linux

I setup the cmd macro java11 to the location of my openjdk installation for windows but when I do it in Linux with the alias java11="java" setup in ~/.profile, ~/.bashrc, and ~/.zshrc it doesn't work

Chunksize is 22 but only 1 was read

I have chunksize is 22 but only 1 was read when i have a handshaking if it’s happen multiple times without player connection it’s say caught uncaught exception and it’s crash

Console commands

Is there a way to input console commands when using this program?

SSS Exits again

Hi sorry to bug you again but SSS exited with this error
2016-01-11 06:29:43.761 - info: Caught exception: Error: read ECONNRESET

Bedrock shows large amount of online players and refuses connection

When I have the server sleeping, if someone tries to connect via bedrock edition through LAN, the amount of online players shows an extremely large number that clips into the green circle next to it, and when you try to connect, the client says “This server is too popular, wait a bit for it to free up some space”. This renders starting the server via LAN bedrock impossible. I am unable to get some example screenshots for more info right now, but I will try and get some as soon as possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.