mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
SPIGOT-4758: --server-port argument does not work
By: md_5 <git@md-5.net>
This commit is contained in:
parent
660fe1b0df
commit
519f0e1153
1 changed files with 2 additions and 2 deletions
|
@ -20,9 +20,9 @@
|
||||||
+ this.options = options;
|
+ this.options = options;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ private <T> T getOverride(String name, T value) {
|
+ private String getOverride(String name, String value) {
|
||||||
+ if ((this.options != null) && (this.options.has(name))) {
|
+ if ((this.options != null) && (this.options.has(name))) {
|
||||||
+ return (T) this.options.valueOf(name);
|
+ return String.valueOf(this.options.valueOf(name));
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ return value;
|
+ return value;
|
||||||
|
|
Loading…
Reference in a new issue