Code Monkey home page Code Monkey logo

mccrestart-bukkit's Introduction

MCCRestart Download

Topic on Bukkit forum.

About

MCCRestart is a tool to schedule server restarts. It saves player and chunk data before each restarts at specified times or delays and gives a warning message to each players before restart. You can also give a reason for the restart. (see commands section)
If a problem occurs during restarts, post the mccrestart.log in a new issue.

In your config.yml file you can specify a batch file for the launch parameter. Example :

@echo off

set memory=512

if /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xms%memory%M -Xmx%memory%M -jar "%~dp0craftbukkit.jar"
if /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xms%memory%M -Xmx%memory%M -jar "%~dp0craftbukkit.jar"

If the Permissions plugin is not detected, only OPs can use restart and mccrestart commands.

Features

  • Restarts server at specified time (24-hour format)
  • Or at delayed time (24-hour format)
  • Add a manual restart with a delay and/or a reason for.
  • Cancel a manual restart.
  • Warning message to players before restart.
  • Saves player and chunk data.
  • Multi-world compatible.
  • Add delay between stop and restart server.
  • Use config.yml and messages.yml to configure the plugin.
  • Don't modify the paramaters {n} in each YAML files.
  • Automatically creates config.yml and messages.yml in the plugin folder.

OS Compatibility

  • Windows XP, Vista, 7 (x86 and x64 editions)

Commands

  • /mccrestart help - List MCCRestart commands
  • /mccrestart reload - Reload the plugin configuration
  • /mccrestart next - Give the next time to restart
  • /restart - Restart the server immediately
  • /restart 59:59 - Restart after a delay (minutes:seconds)
  • /restart 59:59 reason - Restart after a delay with a reason
  • /restart cancel - Cancel a manual restart

Permission-nodes

  • mccrestart.use

config.yml example

config:
    # Enable/disable plugin
    enable: 'true'
 
    # Active/deactivate restart at times or delay (true or false)
    autorestart: 'true'
 
    # Args to launch the server (must be placed in your root server folder)
    launcher: 'java -Xms512M -Xmx512M -jar craftbukkit.jar'
    # If you want to launch a batch file (must be placed in your root server folder)
    #launcher: 'run.bat'
 
    # How many seconds before restart to show warning message to players. Separate seconds with a comma.
    warn: '30,10'
 
    # Scheduled times when the server is restarting. Use 24-hour time and separate times with a comma.
    times: '12:00:00,23:00:00'
 
    # Delay time between each restart. Use 24-hour time.
    delay: '02:00:00'
 
    # Choose type of restart (times or delay)
    type: 'delay'
 
    # Delay between stop and restart server if you have a lot of plugins (use minutes:secondes)
    stoptime: '00:10'

messages.yml example

messages:
    warn: 'The server is being restarted...'
    warnTime: 'The server restarts in {0} seconds...'
    restart: 'The server is restarting...'
    disabled: 'MCCRestart is disabled'
    reload: 'MCCRestart reloaded'
    next: 'Next restart scheduled at {0}'
    reason: 'Reason: {0}'
    cancel: 'Manual restart cancelled'
    norestart: 'No restart is scheduled'

Issues

Please submit a complete bug report with :

  • OS where the server is deployed.
  • Bukkit version.
  • Submit the mccrestart.log if there and the server.log.

TODO

  • Add OSX/Linux compatibility

License

MIT. See LICENSE for more details.

mccrestart-bukkit's People

Contributors

crazy-max avatar

Watchers

 avatar  avatar  avatar

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.