leelawd93 / MMCReboot

A server restart timer and voting system.
15
Download
autorestart {
    # Enable / Disable automatic restarts after the designated interval time.
    enabled=true
    # How long in hours should the auto restart timer be set for?
    interval=6
}
restart {
    # The command to run if 'use-command' has been enabled
    command="/changeme"
    # If enabled, This will run the configured command instead of restarting the server.
    use-command=false
}
timer {
    # warning times before reboot in minutes (0.5 = 30 seconds)
    broadcast=[
        10.0,
        5.0,
        4.0,
        3.0,
        2.0,
        1.0,
        0.5
    ]
    # The required amount of players online to start a vote 
    min-players=5
    # Time before another vote to restart can begin. (In minutes)  
    re-vote=10
    # How long should it be before players are allowed to start a vote after the server has restarted (In minutes) 
    start-vote=60
    # Time until the restart after a vote has passed in seconds (default 300 = 5 minutes)
    vote-passed=300
    # % of online players to vote yes before a restart is triggered.
    vote-percent=60
}
tps {
    # How long after the server starts until the TPS check initiates. (In minutes)
    check-delay=15
    # The minimum TPS to initiate a restart timer
    minimum=10
    # The reason to broadcast if 'use-reason' is enabled
    reason-message="Server TPS is below the minimum."
    # If set to true, When the restart timer reaches 0, The TPS will be checked again 
    # If the TPS is above the minimum, the restart is canceled
    restart-cancel=false
    # The broadcast message sent to everyone if the restart was canceled
    restart-cancel-message="&f[&6Restart&f] &bThe server will not restart. The TPS is now above the minimum"
    # Time until the restart after a TPS check has failed, in seconds (default 300 = 5 minutes)
    timer=300
    # If enabled, the server will initiate a restart timer if the TPS is below the minimum set.
    use=false
    # If enabled, there will be a reason broadcast alongside the countdown for the restart.
    use-reason=true
}
voting {
    # Enable or Disable the ability for players to vote for a server restart
    enabled=true
}

Category: Admin Tools

Published on Dec 31, 2016

6111 views

15 stars

2,495 total downloads

Members