mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
SPIGOT-4758: --server-port argument does not work
This commit is contained in:
parent
28adbcff5b
commit
a9ed334643
1 changed files with 2 additions and 2 deletions
|
@ -20,9 +20,9 @@
|
|||
+ 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))) {
|
||||
+ return (T) this.options.valueOf(name);
|
||||
+ return String.valueOf(this.options.valueOf(name));
|
||||
+ }
|
||||
+
|
||||
+ return value;
|
||||
|
|
Loading…
Add table
Reference in a new issue