summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2011-07-28 00:46:18 -0400
committerEvilSeph <evilseph@gmail.com>2011-07-28 00:58:37 -0400
commit6b9c7fa678c797fb701b1a28feeb36734abd0de3 (patch)
tree1df66590249df8ab04fd571e8100b3ed61337fc6 /src
parent5b7b46593cbdee284ad27a0360e5bd18b9b360d6 (diff)
downloadcraftbukkit-6b9c7fa678c797fb701b1a28feeb36734abd0de3.tar
craftbukkit-6b9c7fa678c797fb701b1a28feeb36734abd0de3.tar.gz
craftbukkit-6b9c7fa678c797fb701b1a28feeb36734abd0de3.tar.lz
craftbukkit-6b9c7fa678c797fb701b1a28feeb36734abd0de3.tar.xz
craftbukkit-6b9c7fa678c797fb701b1a28feeb36734abd0de3.zip
Added Version startup argument to Main. Thanks cyberdudedk!
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/Main.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java
index 4beb5b77..68b9abd2 100644
--- a/src/main/java/org/bukkit/craftbukkit/Main.java
+++ b/src/main/java/org/bukkit/craftbukkit/Main.java
@@ -93,6 +93,8 @@ public class Main {
.describedAs("Yml file");
acceptsAll(asList("nojline"), "Disables jline and emulates the vanilla console");
+
+ acceptsAll(asList("v", "version"), "Show the CraftBukkit Version");
}
};
@@ -110,6 +112,8 @@ public class Main {
} catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
+ } else if (options.has("v")) {
+ System.out.println(CraftServer.class.getPackage().getImplementationVersion());
} else {
try {
useJline = !"jline.UnsupportedTerminal".equals(System.getProperty("jline.terminal"));