Skip to content

IBCodin/baskit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 

Repository files navigation

baskit

baskit is a Python wrapper for a bukkit server

It currently uses screen to manage the console.

Supports an interactive CLI mode as well as a command-line interface. The command-line interface is suitable for calling from cron.

For more information see the baskit page at bukget.org

When baskit is first run, it will generate a baskit.ini file in the current directory, as well as the 'normal' environment directories.

If you are running a dedicated server the /opt/minecraft directory is suggested.

Once you have created the configuration file, you can run baskit from any directory as long as the configuration file can be located. baskit will currently look in /etc/baskit.ini, ~/.baskit.ini and ./baskit.ini

Note that some of baskit's commands will attempt to update this file while running so it would be convenient if it had rights to do so.

Commands are currently implemented to support:

CommandDescription
`help [command]`Lists and explains commands and options
`start`Starts the server (if it is not already running)
`stop`Stops the sever (if it is running)
`status`Display the current server build and whether the server is ALIVE or DOWN
`update`Updates the server file (see help for more information)
`snapshot`save or restore server configuration (see help for more information)
`backup [world]`backup or restore one world (see help for more information)
`c (command)`Send command to the console (if the server is running)
`console`Attach to the server console screen.
You will see a reminder of the keys to use to exit the console.
(ctrl-a ctrl-d)
`players`List the currently connected players
`exit`exit the interactive CLI

Recently implemented support for Ram Disks added or modified the following commands:

CommandDescription
`start`Optionally mount ramdisk(s). Populate ramdisk(s) with world data. Start the server.
`stop`Stop the server. Sync world data. Optionally unmount ramdisk(s).
`merge`Will sync data from ramdisk(s) to persistent world folder(s). Suitable for use in cron tasks.
`crashfix`Used following a server stop not initiated by baskit. Will sync data to persistent world folder(s) and optionally unmount ramdisk(s).
`backup [world]`Will perform a merge and backup from the persistent world folder.

sudoers line to allow passwordless mount and unmount of ramdisks in the /opt/minecraft/env folder for members of the minecraft group. Modify as necessary for your target users and for your environment folder. Put the line towards the bottom of sudoers. Use visudo to edit the sudoers file.

%minecraft ALL= NOPASSWD: /bin/mount -t tmpfs none /opt/minecraft/env/*, /bin/umount -t tmpfs /opt/minecraft/env/*

About

Bukkit Minecraft Server Wrapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%