Jump to content
  • 0

Setting Server to Lock before restart


elite9092

Question

hey guys,

 

trying to get my server to lock 5 mins before a restart and be unlocked after restart,

 

UNLOCK!
!ulck : Unlocks the server.
This command is alias for #unlock.

LOCK!
!lck : Locks the server.
This command is alias for #lock

 

^ i think i have to do something with these but im not sure where or how.

 

Any and all help is appreciated

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

<!-- START: 12am Restart -->
    <job id="0">
        <time>23:30:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Server Restart in 30 minutes </cmd>    
        <cmdtype>0</cmdtype>
    </job>
    
    <job id="1">
        <time>23:45:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Server Restart in 15 minutes </cmd>    
        <cmdtype>0</cmdtype>
    </job>

<job id="2">
        <time>23:50:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Server Restart in 10 minutes </cmd>    
        <cmdtype>0</cmdtype>
    </job>    
<job id="3">
        <time>23:55:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>#lock</cmd>    
        <cmdtype>0</cmdtype>
    </job>

<job id="4">
        <time>23:55:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Server Restart in 5 minutes </cmd>    
        <cmdtype>0</cmdtype>
    </job>

<job id="5">
        <time>23:59:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>say -1 Server Restart in 1 minutes </cmd>    
        <cmdtype>0</cmdtype>
    </job>
    <!-- END: 12am Restart -->

  <!-- START: Unlock -->
        <job 1d="0">
                <time>00:05:00</time>
        <delay>000000</delay>
        <day>1,2,3,4,5,6,7</day>
        <loop>1</loop>
        <cmd>#unlock</cmd>    
        <cmdtype>0</cmdtype>
    </job>
        <!-- END: Unlock-->

 

 

that look right to you?

Link to comment
Share on other sites

  • 0

why would you need to unlock, server has restarted right?

I have it set to unlock on my server 2 minutes after the restart in case the restart doesn't happen for some reason. When I first set it to lock 5 minutes before restart, I had an instance where the server didn't restart, so it remained locked for a couple of hours and I didn't realize it. You can never be too careful when it comes to BEC.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...