Coder Social home page Coder Social logo

mineserver's Introduction

License

GPL3 Licensed.

Configuration:

Mineserver uses a file called config stored in the same directory as the script for configuration. These should be defined by the user before the first run. The file is interpreted by sourcing it in bash via source config and therefore should be valid bash.

#Location of all servers, should be an absolute path to avoid confusion.
SERVERS=
#The server jar name. Used to start the server and identify directories that contain servers.
SERVER_JAR=minecraft_server.jar
#Location of the servers backup, should be an absolute path to avoid confusion.
BACKUP_DIR=
#Flags for the java virtual machine
JVM_FLAGS=-Xms1024M -Xmx1024M 
#Flags for the minecraft server
MC_FLAGS=nogui

SERVERS should point to the directory where Minecraft servers are stored.
SERVER_JAR is the name of the minecraft server jar file.
BACKUP_DIR should specify the directory where backup archives will be stored.
JVM_FLAGS and MC_FLAGS are command line arguments to be passed to the java virtual machine and the minecraft server respectively. USAGE:

The script will execute all the flags provided in the command line sequentially.

program options server_name

options:

-h help

-R remove server

-r restore server

-b backup server

-s start server (creates one if missing)

-S summary of last log (joins, unique joins, kicks, bans, chat replies)

-l list servers

-u update server

Example: ./Server -sb our_sever This will run the server and then back it up when it is stopped.

mineserver's People

Contributors

korko avatar

Stargazers

 avatar

Watchers

Groza Cristian avatar James Cloos avatar

Forkers

useruser3

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.