1
0
mirror of https://github.com/timvisee/lazymc.git synced 2025-07-28 18:52:00 -07:00

Rename sleep_on_start to wake_on_start

This commit is contained in:
timvisee
2021-11-08 18:10:36 +01:00
parent 9874c9dd30
commit db0552f2e5
3 changed files with 5 additions and 5 deletions

@@ -19,8 +19,8 @@ command = "java -Xmx1G -Xms1G -jar server.jar --nogui"
# Internal IP and port of server started by lazymc to proxy to.
address = "127.0.0.1:25566"
# Start sleeping when starting lazymc.
sleep_on_start = true
# Immediately wake server when starting lazymc.
wake_on_start = false
[time]
# Sleep after number of seconds.

@@ -100,8 +100,8 @@ pub struct Server {
#[serde(alias = "address_ingress")]
pub address: SocketAddr,
/// Immediately start sleeping when starting lazymc.
pub sleep_on_start: bool,
/// Immediately wake server when starting lazymc.
pub wake_on_start: bool,
}
/// Time configuration.

@@ -42,7 +42,7 @@ pub async fn service(config: Arc<Config>) -> Result<(), ()> {
tokio::spawn(service::signal::service(server_state.clone()));
// Initiate server start
if !config.server.sleep_on_start {
if config.server.wake_on_start {
server::start_server(config.clone(), server_state.clone());
}