mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-05 06:32:17 -07:00
Added Version startup argument to Main. Thanks cyberdudedk!
This commit is contained in:
@@ -93,6 +93,8 @@ public class Main {
|
|||||||
.describedAs("Yml file");
|
.describedAs("Yml file");
|
||||||
|
|
||||||
acceptsAll(asList("nojline"), "Disables jline and emulates the vanilla console");
|
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) {
|
} catch (IOException ex) {
|
||||||
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
|
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
|
||||||
}
|
}
|
||||||
|
} else if (options.has("v")) {
|
||||||
|
System.out.println(CraftServer.class.getPackage().getImplementationVersion());
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
useJline = !"jline.UnsupportedTerminal".equals(System.getProperty("jline.terminal"));
|
useJline = !"jline.UnsupportedTerminal".equals(System.getProperty("jline.terminal"));
|
||||||
|
Reference in New Issue
Block a user