GSPs and CLI-freaks!

Discussion in 'Bukkit News' started by Dinnerbone, Jan 4, 2011.

Thread Status:
Not open for further replies.
     
  1. Offline

    Dinnerbone Bukkit Team Member Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Good news! Craftbukkit (the runnable version of Bukkit, a wraper around minecraft_server.jar) now takes command line arguments!

    -?, --help
    Show the help

    -P, --plugins <File: Plugin directory>
    Plugin directory to use (default: plugins)

    -c, --config <File: Properties file>
    Properties file to use (default: server.properties)

    -h, --host, --server-ip <Hostname or IP>
    Host to listen on

    -o, --online-mode <Boolean: Authentication>
    Whether to use online authentication

    -p, --port, --server-port <Integer: Port>
    Port to listen on

    -s, --max-players, --size <Integer: Server size>
    Maximum amount of players

    -w, --world <World dir>
    World directory

    Example:
    Code:
    java -jar Craftbukkit.jar -p 1234 -s 50 -c customer/alpha/config.cfg -w customer/alpha/world -P customer/alpha/plugins

    Any thoughts or feedback? :)
  2.  
  3. Offline

    TheAnyInbox

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Great! Now i can make scripts that print options!
    TheHox likes this.
  4. Offline

    Hidendra

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Looks great, will certainly make certain things a ton easier (esp for MC hosts)
  5. Offline

    Derek Peterson

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I love you for this!
  6. Offline

    cman85_ con

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    hey0>this.
  7. Offline

    Selbram

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Please clarify this statement.
  8. Offline

    cman85_ con

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ........ Hey0, you know that server mod thingy? Is greater than..... This, this Bukkit mod thingy.
  9. Offline

    Selbram

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Are you making this statement to cause conflict or are you not aware of what is currently happening regarding hMod and the Bukkit project?
  10. Offline

    Kenny987654321

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Looks good, and very simple. I like easy to use, and plus it will allow extra functionality in the long run. I am glad to see that it we will be able to manage the wrapper (some of it) through command line rather than exiting completely.
  11. Offline

    Deehem

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Looking good so far! :)
  12. Offline

    rctcool0

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Funny that you say that. This is obviously in early development, so of course it doesn't have the same functionality as hmod. Bukkit is a complete code rewrite for a server mod, made by some devs from hMod, so in the future, you can almost assuredly expect a final product that may surpass hMod in functionality and speed. But right now, its still a guessing game. Right now, yes, hMod is better because its had lots of development, and Bukkit is still quite new. It really depends on what happens to hMod in the next week or so.
  13. Offline

    4am

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes and Yes. Can we further wrap this into a bash script (or .bat file for Windows servers) which launches the server process like a daemon and allows control commands to be sent from the shell, like apachectl?
  14. Offline

    Tythus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    looking good
  15. Offline

    DJ411

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    hopefully a full tutorial can be made when the final release is out!
  16. Offline

    D-Kalck

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Very good news, I was waiting for this for a long time !
  17. Offline

    TowelieDOH

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    awesome!
    This is really cool.
  18. Offline

    Raphfrk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    With the maven install, could you create a .bat and .sh file for starting the java.

    Presumably, it will create

    craftbukkit-0.0.1-SNAPSHOT.jar
    craftbukkit-0.0.2-SNAPSHOT.jar

    and so on in the same target directory.

    This script could point to the latest jar.

    Also, when starting in windows by clicking on an executible .jar file, the console doesn't actually pop up, so you can't enter console commands.
  19. Offline

    root

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    A good first step :)
  20. Offline

    Jimpi

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    maven ftw.

    cheers
  21. Offline

    brotherbillo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Awesome! One thing I would change is the -P and the -p options. Its better to make command line options idiot proof, and it cuts down on support issues. Perhaps making the port number option -pn instead?
  22. Offline

    digitalbarrito

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    is there any way to get this working version of Bukkit? or no is it just an internal release for devs?
  23. Offline

    cman85_ con

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    ............i like that comment. I agree.
    --- merged: Jan 4, 2011 11:48 PM ---
    ............i like that comment. I agree.
  24. Offline

    Adambean

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Excellent -- this will make things VERY easy.

    Another idea to take this further could be to specify a configuration path, such as -C dir.

    Example:
    Code:
    java -jar Craftbukkit.jar -p 1234 -s 50 -C profiles/customerID/serverID -w worldsilly
    This could then set the base path for configuration files, plug-ins folder, and world folder in the customer's server ID folder without having to repeat the path in multiple switches.

    Edit: or perhaps -b for base dir.
  25. Offline

    NikolaiH

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This thread should help you get the latest Bukkit build up and running! And it is Newb Friendly too :D
  26. Offline

    marcel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Do the command line options work for the current version? Mine seems to ignore all settings.
  27. Offline

    Dinnerbone Bukkit Team Member Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It is. Can you please tell me what options you were using, and what the outcome was?
  28. Offline

    marcel

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It seems to ignore every option except --help. Then it shows the help text ;)

    java -jar craftbukkit-0.0.1-SNAPSHOT.jar -c bukkit.properties -p 27000 -s 5 -w myworld

    2011-01-13 17:49:49 [INFO] Starting minecraft server version Beta 1.1_02
    2011-01-13 17:49:49 [INFO] Loading properties
    2011-01-13 17:49:49 [INFO] Starting Minecraft server on xxx.xxx.xxx.xxx:25565
    2011-01-13 17:49:49 [INFO] Preparing level "world"
    2011-01-13 17:49:49 [INFO] Preparing start region
    Preparing spawn area: 0%
    Preparing spawn area: 4%
    Preparing spawn area: 9%
    Preparing spawn area: 14%
    Preparing spawn area: 19%
    Preparing spawn area: 23%
    Preparing spawn area: 28%
    Preparing spawn area: 33%
    Preparing spawn area: 38%
    Preparing spawn area: 42%
    Preparing spawn area: 47%
    Preparing spawn area: 52%
    Preparing spawn area: 57%
    Preparing spawn area: 61%
    Preparing spawn area: 66%
    Preparing spawn area: 71%
    Preparing spawn area: 76%
    Preparing spawn area: 80%
    Preparing spawn area: 85%
    Preparing spawn area: 90%
    Preparing spawn area: 95%
    2011-01-13 17:49:50 [INFO] Done! For help, type "help" or "?"
    stop
    2011-01-13 17:49:52 [INFO] CONSOLE: Stopping the server..
    2011-01-13 17:49:52 [INFO] Stopping server
    2011-01-13 17:49:52 [INFO] Saving chunks
  29. Offline

    Dinnerbone Bukkit Team Member Administrator

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hm. The update is on now so I'll have to investigate post-porting
  30. Offline

    -FN-

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Really sorry so sound like such a moron here...

    I'm one of the many hMod server admins in limbo, hoping for the Bukkit release announcement, but based on the conversations here, did I miss it? Or is it just the wrapper that's released? If so, where is it because I must've missed it...

    I'm considering going back to a simple vanilla server for now, but would love to be trying out hMod's logical successor.
  31. Offline

    NikolaiH

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Look into "CraftBukkit" which is, for now, the server software.
Thread Status:
Not open for further replies.

Share This Page