mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 04:32:11 -07:00
SPIGOT-4758: --server-port argument does not work
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user