forked from GeyserMC/Geyser
Use Path instead of File for floodgate key file in config
...and fix related issues with the file not being found.
This commit is contained in:
parent
c4857c6a54
commit
240f41ff03
6 changed files with 21 additions and 13 deletions
|
@ -30,6 +30,8 @@ import net.md_5.bungee.config.Configuration;
|
|||
import org.geysermc.common.IGeyserConfiguration;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -101,8 +103,8 @@ public class GeyserBungeeConfiguration implements IGeyserConfiguration {
|
|||
}
|
||||
|
||||
@Override
|
||||
public File getFloodgateKeyFile() {
|
||||
return new File(dataFolder, config.getString("floodgate-key-file", "public-key.pem"));
|
||||
public Path getFloodgateKeyFile() {
|
||||
return Paths.get(dataFolder.toString(), config.getString("floodgate-key-file", "public-key.pem"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue