Commit Graph

92 Commits

Author SHA1 Message Date
Jason M. Wood
44e75a4301 Add a list command to get a list of active worlds 2013-12-02 19:27:52 -07:00
Jason M. Wood
67014bd1e0 Move the permission check to a subroutine 2013-12-02 19:26:56 -07:00
Jason M. Wood
a65a3147e8 Remove the duplicate enable-query check 2013-12-01 13:13:52 -07:00
Jason M. Wood
1c8b4b15fb Make sure the key/value are lower case when returning server.properties values 2013-12-01 13:12:01 -07:00
Jason M. Wood
5a3e8f2f61 Only use the Query protocol if it is enabled 2013-12-01 12:29:39 -07:00
Jason M. Wood
043365c3e4 Add socat as a dependency of the script 2013-12-01 10:57:09 -07:00
Jason M. Wood
8bd9479fcc Use socat rather than netcat for Query 2013-12-01 10:52:06 -07:00
Jason M. Wood
fda2fdf79c Hopefully finish the query fix (aka fix a bug I just introduced) 2013-11-14 14:47:04 -07:00
Jason M. Wood
ea6e95e056 Attempt at fixing the query bug 2013-11-14 14:44:57 -07:00
Shamus03
ca2608e0ff Changed to new log format
Server.log moved to logs/latest.log in the most recent version.
2013-11-09 18:09:19 -06:00
Jason M. Wood
5bdd28de9f The client location changed in Minecraft 1.6, but the script never got updated. This fixes overviewer. 2013-11-03 20:02:41 -07:00
Jason M. Wood
17333144f2 Add a default value parameter to the getPropertiesValue method. 2013-11-01 18:05:42 -06:00
Jason M. Wood
8aa2488495 Rename {get|set}WorldPropertiesValue to {get|set}PropertiesValue 2013-11-01 18:02:51 -06:00
Jason M. Wood
cbcbe7861c Cleanup the dead screen when a server is force stopped. 2013-11-01 17:18:29 -06:00
Jason M. Wood
a0d4f76547 Run force-stop even if the script thinks the server is not running. 2013-11-01 17:08:07 -06:00
Jason M. Wood
a0945c30e0 Make sure the PID is greater than 0 when detecting if a world server is running. 2013-11-01 16:58:04 -06:00
Jason M. Wood
ac0a842ae8 Rename the MCVERSION variable to CURRENT_VERSION 2013-11-01 12:12:20 -06:00
Jason M. Wood
5575758280 Spell out the word command in the usage statement. 2013-11-01 11:19:32 -06:00
Jason M. Wood
fafafe160e Cleanup the command line output of the new create/delete and disable/enable functions. 2013-10-30 12:44:27 -06:00
Jason M. Wood
60d69dbc44 Only create the default world if start is called and no world is found. 2013-10-30 11:50:06 -06:00
Jason M. Wood
7b9c0e6145 Make the Usage statement easier to read. 2013-10-20 19:38:03 -06:00
Jason M. Wood
0c9e494c2d Merge pull request #9 from sandain/master
drop the checkOptionalArgument method, it was buggy.
2013-10-19 19:45:28 -07:00
Jason M. Wood
4a504b62d6 drop the checkOptionalArgument method, it was buggy. 2013-10-19 20:38:54 -06:00
Jason M. Wood
e7118d9e8f Merge pull request #8 from sandain/master
Merge master into world-admin
2013-10-19 19:16:33 -07:00
Jason M. Wood
14971e8d03 Update the CraftBukkit download link 2013-10-19 20:07:46 -06:00
Jason M. Wood
5c49673671 Add more info to the create world option note 2013-10-19 17:47:01 -06:00
Jason M. Wood
1075d813b0 Create a default world if no worlds were found. 2013-10-19 17:04:05 -06:00
Jason M. Wood
fddbc57a62 Fix the delete and disable queryStatus calls 2013-10-19 12:58:47 -06:00
Jason M. Wood
edc8670c9c Merge branch 'master' into world-admin 2013-10-19 12:50:50 -06:00
Jason M. Wood
69774ca333 Start the world server with the enable command. 2013-10-19 12:37:00 -06:00
Jason M. Wood
4b05f22855 Fix the queryStatus call so that a 0 is generated on a query error 2013-10-19 12:24:09 -06:00
Jason M. Wood
723a207164 Add a note about the disable/enable command line arguments 2013-10-19 12:01:56 -06:00
Jason M. Wood
72ed2b1463 Fix the world not found logic of the delete and disable methods 2013-10-19 11:59:01 -06:00
Jason M. Wood
4a18448ec9 Add a method to enable a world 2013-10-19 11:57:04 -06:00
Jason M. Wood
93911d6e7c Add a method to disable a world server 2013-10-19 11:47:23 -06:00
Jason M. Wood
4850ce8d54 Announce when a server is being deleted. 2013-10-19 11:39:44 -06:00
Jason M. Wood
9e152baa1d Update the command line options to add the create/delete commands. 2013-10-19 11:21:26 -06:00
Jason M. Wood
ae850eb5b1 Add a method to delete a world. 2013-10-19 11:15:16 -06:00
Jason M. Wood
0a73c81178 Use the setWorldPropertiesValue method 2013-10-19 11:03:59 -06:00
Jason M. Wood
21a2328e2a Add a method to create a new world. 2013-10-19 10:57:29 -06:00
Jason M. Wood
c9c0f2d9d3 Fix commit d569441519 2013-10-17 16:15:42 -06:00
Jason M. Wood
6f2a255687 Change setPropertiesValue to setWorldPropertiesValue to match getWorldPropertiesValue 2013-10-17 16:08:37 -06:00
Jason M. Wood
d569441519 Merge getPropertiesValue and getWorldPropertiesValue 2013-10-17 16:06:35 -06:00
Joshua
b19541c5bf This bad comment was bugging me 2013-10-07 21:04:37 -06:00
Jason M. Wood
2521e595e2 Drop the remaining unused worlds.conf code 2013-10-05 18:48:00 -06:00
Jason M. Wood
2acb8cfa9c Don't create at default server.properties file in start(), assume that one exists. 2013-10-05 18:44:32 -06:00
Jason M. Wood
edb29b40e3 Merge pull request #7 from sandain/worlds.conf
Find the list of worlds by grabbing a directory listing rather than read...
2013-10-05 17:41:16 -07:00
Jason M. Wood
cece0c8f92 Use the getWorldPropertiesValue method to get the server-port 2013-10-05 18:34:31 -06:00
Jason M. Wood
af271450ea Find the list of worlds by grabbing a directory listing rather than reading the worlds.conf file 2013-10-05 18:30:57 -06:00
Jason M. Wood
9a4d981baa escape the $ of the perl default variable so that it doesn't get interpreted by the shell
Fixes the bug noticed by Aragno.
2013-10-05 17:16:39 -06:00