Commit Graph

384 Commits

Author SHA1 Message Date
Marcus Whybrow
44bab2fcec Bumped version to 0.7.2. 2012-07-24 14:54:40 +01:00
Marcus Whybrow
cbb8d2f616 Added three missing server username lazy loads. 2012-07-24 14:19:37 +01:00
Marcus Whybrow
381b627bb6 Bumped version to 0.7.1. 2012-07-22 08:08:15 +01:00
Marcus Whybrow
7e89f4dd12 Fixes #54. Loads server username inside the server_set_jar function. 2012-07-22 08:05:20 +01:00
Marcus Whybrow
a3dc7c6865 Bumped version to 0.7.0. 2012-07-20 10:16:30 +01:00
Marcus Whybrow
fe8687f546 Added tests for offline server commands up to <server> jar. 2012-07-20 10:14:51 +01:00
Marcus Whybrow
d48bd7c577 Created dirty properties functions which force variables to be loaded again. 2012-07-20 10:14:05 +01:00
Marcus Whybrow
54fdd5bb9b Prevent log roll error when log had not been created. 2012-07-20 10:13:31 +01:00
Marcus Whybrow
7a8a91992c Added output for worlds list command, when there are no worlds. 2012-07-20 09:17:25 +01:00
Marcus Whybrow
4185db1e59 Fixed world id bug when whorl name was not found.
The ID would accidentally be left as -1, which would cause problems
when loading world properties.
2012-07-20 08:15:42 +01:00
Marcus Whybrow
a5d0fc80b1 Added extra server_property calls needed. 2012-07-20 07:51:01 +01:00
Marcus Whybrow
7d1926b90f Added <server> config <setting> command which retrieves the value of a single setting. 2012-07-20 07:47:40 +01:00
Marcus Whybrow
6616805a41 Added multi-user support to the kick command. 2012-07-20 07:15:50 +01:00
Marcus Whybrow
6c1707d3e5 Added multi-user support to the gamemode command. 2012-07-20 07:12:24 +01:00
Marcus Whybrow
7463ff4149 Added multi-user and offline support to operator add and remove commands. 2012-07-20 07:07:15 +01:00
Marcus Whybrow
1e030d41a2 Added offline support for ip address blacklist commands.
Also made adding and removing names more strict: exact line matches are
now required. Before deleting the player "crafty" would also delete the
line "craftysaurus" which would be unintended.
2012-07-20 06:47:02 +01:00
Marcus Whybrow
3b2d857991 Added offline support for blacklist add and remove commands. 2012-07-20 06:27:29 +01:00
Marcus Whybrow
c16396a98b Fixed blacklist list command. Can now see correct paths. 2012-07-20 06:26:56 +01:00
Marcus Whybrow
96087b1bf9 Added multi-user support to whitelist add and remove commands. 2012-07-20 06:13:12 +01:00
Marcus Whybrow
022e0158a1 Fixed whitelist commands when offline. Could not access whitelist file. 2012-07-20 05:31:45 +01:00
Marcus Whybrow
adf5b7b897 Moved console and config commands to the server management commands section. 2012-07-20 05:24:37 +01:00
Marcus Whybrow
83f547e79a Added protection against rolling server logs when the log is empty. 2012-07-20 05:19:50 +01:00
Marcus Whybrow
06dea648f2 Removed abusive Notch comment. :D 2012-07-20 05:14:12 +01:00
Marcus Whybrow
9664c094e0 Fixed deactivating/activating a world changing file permissions to root. 2012-07-20 05:10:48 +01:00
Marcus Whybrow
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
Marcus Whybrow
fe64cf0207 Added synchronisation from RAM to disk before removing RAM version of a world. 2012-07-20 04:59:30 +01:00
Marcus Whybrow
4122bba733 Fixed syntax error in world_to_disk: prevented loading server_property USERNAME. 2012-07-20 04:58:59 +01:00
Marcus Whybrow
c707df5be0 Fixed world_property RAMDISK_PATH bug, which did not set it. 2012-07-20 04:58:00 +01:00
Marcus Whybrow
9e97671af4 Fixed world offset and total variables not getting set correctly. 2012-07-20 04:45:31 +01:00
Marcus Whybrow
9cb6bf365c Updated cash completion to use lazy property loading. 2012-07-20 04:31:10 +01:00
Marcus Whybrow
46f9b8204a Made initial allocation a little tidier. 2012-07-20 04:30:49 +01:00
Marcus Whybrow
8f2c1ae16e Improved world list command to be more readable. 2012-07-20 03:20:07 +01:00
Marcus Whybrow
a8ecf4615d Fixed correct name for WORLDS_FLAG_INRAM server configuration. 2012-07-20 03:19:43 +01:00
Marcus Whybrow
223dcfe714 Removed the old config loading code. It is now replaced with lazy loading. 2012-07-20 03:09:21 +01:00
Marcus Whybrow
24714b1dea Replaced while loops with for loops in world list and backup functions. 2012-07-20 03:08:40 +01:00
Marcus Whybrow
85c66fc0ab Fixed, in wold memory allocation, an incorrect variable name. 2012-07-20 03:05:35 +01:00
Marcus Whybrow
6333774d6f Made more robust checking if manager_property has loaded. 2012-07-20 03:04:52 +01:00
Marcus Whybrow
83a304c5c7 Removed debug statement in world_property. 2012-07-20 03:03:56 +01:00
Marcus Whybrow
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
Marcus Whybrow
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
Marcus Whybrow
7ac5827948 Found another function to remove subshell from. 2012-07-18 05:43:23 +01:00
Marcus Whybrow
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
Marcus Whybrow
5f539d5dbf Improved comments and MSM script layout.
Added introductory comments for MSM and bash completion files.
2012-07-18 04:31:10 +01:00
Marcus Whybrow
2554b67d52 Added /etc/profile.d/msm.sh support. 2012-07-18 04:30:31 +01:00
Marcus Whybrow
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
Marcus Whybrow
7ab754b980 Bumped version to 0.6.4. 2012-07-17 23:40:39 +01:00
Marcus Whybrow
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
Marcus Whybrow
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
Marcus Whybrow
e5196da659 Added support section to the readme. 2012-07-15 19:16:38 +01:00
Marcus Whybrow
4fc519cb11 Bumped version to 0.6.3. 2012-07-15 18:32:18 +01:00