Getting bukkit version as number

Discussion in 'Plugin Development' started by xPaw, Mar 3, 2011.

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

    xPaw

    How to do that? Im quite new to java
     
  2. Offline

    Sammy

    You already have the version and want to make it a number?
    if so its:
    Integer.parseInt("String");
     
  3. Offline

    xPaw

    I wanted to get bukkit build version
     
  4. Offline

    Plague

    there is a getVersion() method somewhere, javadocs are down, but I saw it on the forum I think.
     
  5. Offline

    xZise

    But there you get the complete line. If you type “version” in your console, the second part after “version” in green, is the result of “getVersion”.

    Code:
    >version
    21:43:13 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-482-gecc50ad-b478jnks (MC: 1.3)
    21:43:13 [INFO] This server is also sporting some funky dev build of Bukkit!
    Fabian
     
  6. Offline

    EvilSeph

    You should not be using the build version within your code. The build version is ONLY there so that plugin developers have an easy and clean way to inform their users (through their release post) as to what build they should expect the plugin to work with.
     
  7. Offline

    xPaw

    It's for my "query" plugin which is used in admin panel, and i wanted to print current server version and newest available. See what i mean?
     
Thread Status:
Not open for further replies.

Share This Page