Commit Graph

313 Commits

Author SHA1 Message Date
83f547e79a Added protection against rolling server logs when the log is empty. 2012-07-20 05:19:50 +01:00
06dea648f2 Removed abusive Notch comment. :D 2012-07-20 05:14:12 +01:00
9664c094e0 Fixed deactivating/activating a world changing file permissions to root. 2012-07-20 05:10:48 +01:00
ee5589bac0 Prevented save commands being sent to a stopped server in <server> worlds to disk.
Before this fix, if the server was stopped the command would output
'Server "name" is not running.' multiple times.
2012-07-20 05:01:20 +01:00
fe64cf0207 Added synchronisation from RAM to disk before removing RAM version of a world. 2012-07-20 04:59:30 +01:00
4122bba733 Fixed syntax error in world_to_disk: prevented loading server_property USERNAME. 2012-07-20 04:58:59 +01:00
c707df5be0 Fixed world_property RAMDISK_PATH bug, which did not set it. 2012-07-20 04:58:00 +01:00
9e97671af4 Fixed world offset and total variables not getting set correctly. 2012-07-20 04:45:31 +01:00
9cb6bf365c Updated cash completion to use lazy property loading. 2012-07-20 04:31:10 +01:00
46f9b8204a Made initial allocation a little tidier. 2012-07-20 04:30:49 +01:00
8f2c1ae16e Improved world list command to be more readable. 2012-07-20 03:20:07 +01:00
a8ecf4615d Fixed correct name for WORLDS_FLAG_INRAM server configuration. 2012-07-20 03:19:43 +01:00
223dcfe714 Removed the old config loading code. It is now replaced with lazy loading. 2012-07-20 03:09:21 +01:00
24714b1dea Replaced while loops with for loops in world list and backup functions. 2012-07-20 03:08:40 +01:00
85c66fc0ab Fixed, in wold memory allocation, an incorrect variable name. 2012-07-20 03:05:35 +01:00
6333774d6f Made more robust checking if manager_property has loaded. 2012-07-20 03:04:52 +01:00
83a304c5c7 Removed debug statement in world_property. 2012-07-20 03:03:56 +01:00
60a6af24c2 Introduced lazy config loading. Faster in general.
Instead of allocating all memory up front for every possible command
option this new approach just expects certain variable names. If those
variables are used in a function the manager_property, server_property
or world_property command ensures that the variable has been loaded
from config files.

This approach uses sed to retrieve a single line from a config file
when necessary, instead of reading every line at startup.
2012-07-20 02:41:37 +01:00
c46db621e0 Stopped loading all config files all the time.
Now server confs are only loaded when a command needs it.
2012-07-18 07:42:26 +01:00
7ac5827948 Found another function to remove subshell from. 2012-07-18 05:43:23 +01:00
7bbca19dbc Removed subshells where possible (speed increase.)
Can only do this for my own functions. So not much of a change really.
2012-07-18 05:36:31 +01:00
5f539d5dbf Improved comments and MSM script layout.
Added introductory comments for MSM and bash completion files.
2012-07-18 04:31:10 +01:00
2554b67d52 Added /etc/profile.d/msm.sh support. 2012-07-18 04:30:31 +01:00
b8d2fc3e4a Bash completion now loads settings via MSM script.
The crux of the matter is this: If a setting was omitted in
/etc/msm.conf bash completion would fail requiring it to be there.
However MSM would not complain as it had a default value to use. Bash
completion can now access this same default value.
2012-07-18 04:08:12 +01:00
7ab754b980 Bumped version to 0.6.4. 0.6.4 2012-07-17 23:40:39 +01:00
914cc03cae Closes #25. Improved server starting output.
Now issues a message when the jar file is not found. Also prints out a
dot for each new log line found when starting. This makes it easy to
spot a server which is hanging.
2012-07-17 23:36:32 +01:00
b795b9b887 Fixed bug preventing say command from accepting only 1 argument.
Had to accept two or more arguments due to a regex mistake.
2012-07-17 23:34:09 +01:00
e5196da659 Added support section to the readme. 2012-07-15 19:16:38 +01:00
4fc519cb11 Bumped version to 0.6.3. 0.6.3 2012-07-15 18:32:18 +01:00
b280bebf37 Added active/inactive and running/stopped statuses to the server list command.
Thanks to the suggestion from "oldman,j" via MSM's UserVoice.
2012-07-15 18:29:04 +01:00
1d38b80eb6 Bumped version to 0.6.2. 0.6.2 2012-07-15 17:27:06 +01:00
b05d3a3db0 Fixes #49. Active file is now created when starting a server. 2012-07-15 17:23:38 +01:00
3760a18053 Fixed grammar of recent readme change. 2012-07-15 01:22:31 +01:00
bcd5ab33af Updated readme with links to new docs. 2012-07-15 01:20:19 +01:00
036a389055 Bumped version to 0.6.1. 0.6.1 2012-07-13 21:50:52 +01:00
3bb1c6a909 Fixed tests to use new setting names. 2012-07-13 21:49:40 +01:00
7f687f4f9a Spelling mistake fixed in readme. 2012-07-13 20:33:05 +01:00
24ba072608 Improved getting started section in readme. 2012-07-13 20:29:58 +01:00
69c5f6dfa2 Added cash completion changes to changelog. 2012-07-13 20:23:04 +01:00
0715fc47ec Bumped version to 0.6.0. 0.6.0 2012-07-13 20:21:23 +01:00
ffa5c2de54 Updated default username setting name. 2012-07-13 20:16:25 +01:00
02d415beaa Removed debug statement. 2012-07-13 20:09:32 +01:00
1b874838cf Refactored setting registration. Allows for default values. Added msm config command.
Settings are now registered using the register_setting and
register_server_setting functions. Settings registered via the first
function can be overridden in /etc/msm.conf, and settings registered
via the second function may also be overridden in server.properties.

Additionally, global variables are now better protected from confusion
with stronger namespacing.

Several settings have changed there names, these can be seen in the
diff for `msm.conf`. The same name changes also take effect in all
`server.properties files.

`msm <server> config` now displays a list of all setting when arguments
are omitted.

`msm config` is a new command which lists all setting values.
2012-07-13 19:56:57 +01:00
b4f42d01e9 Prevented inactive worlds from being backed up. 2012-07-13 19:45:33 +01:00
da468788d0 Bumped version to 0.5.2. 0.5.2 2012-07-13 16:54:11 +01:00
98bb17999d Fixes #47. Can now put any world (not just first) into ram. 2012-07-13 16:51:38 +01:00
f94c13dcf0 Bumped version to 0.5.1. 0.5.1 2012-07-11 07:44:20 +01:00
26d34e71ea Added help text for the server config command. 2012-07-11 07:42:45 +01:00
58abbad116 Bumped version to 0.5.0. Fixes #44. 0.5.0 2012-07-11 07:34:48 +01:00
110e56ca20 config command always goes ahead, but reminds user to restart if server is running. 2012-07-11 07:27:55 +01:00