Commit Graph

494 Commits

Author SHA1 Message Date
Marcus Whybrow
65c55de586 Add update command + new command element <flags> 2012-08-08 17:36:42 +01:00
Marcus Whybrow
de8f405b25 Add VERSIONING_STORAGE_PATH setting 2012-08-08 15:22:23 +01:00
Marcus Whybrow
5f1861a681 Add variables for locating other MSM files 2012-08-08 15:21:59 +01:00
Marcus Whybrow
19e0f84c71 Bump version to 0.7.5 2012-08-08 01:33:04 +01:00
Marcus Whybrow
a749f8e866 Fix #69, tab completion quitting session 2012-08-08 01:30:56 +01:00
Marcus Whybrow
8af7d32eec Remove commented code from bash completion 2012-08-08 01:26:18 +01:00
Marcus Whybrow
1974d9812e Bumped version to 0.7.4. 2012-08-02 10:41:42 +01:00
Marcus Whybrow
92c9395423 Fix #64, prevent tab completion crash when server name all is used 2012-08-02 10:31:15 +01:00
Marcus Whybrow
dd30caaa1d Bumped version to 0.7.3. 2012-07-24 22:17:35 +01:00
Marcus Whybrow
00b39ec017 Fixed global start and stop commands from failing.
Added lazy loading of necessary server properties.
2012-07-24 22:15:24 +01:00
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