[REQUEST] Bukkit Version / Build Args

Discussion in 'Bukkit Discussion' started by cyberdude, Jun 25, 2011.

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

    cyberdude

    I'm requesting a way for external applications to start the craftbukkit jar with an argument that prints (to stdout) the current Craftbukkit build version without starting the server. Basically something like this (If I remember my java correctly):

    Code:
    public static void main(string args[])
    {
        if(args.length>0)
        {
            if(args == "bukkitversion")
            {
                 System.out.println(getVersion());
                 System.exit(0);
            }
        }
    }
    Edit:
    I did this myself, and will try to push it to CraftBukkit later it today, wel'll see if it gets accepted.
     
Thread Status:
Not open for further replies.

Share This Page