mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 13:07:06 +01:00
Added Version startup argument to Main. Thanks cyberdudedk!
This commit is contained in:
parent
5b7b46593c
commit
6b9c7fa678
1 changed files with 4 additions and 0 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue