Add Charset argument for reading File lines in ServerManager, ideally to prevent compilation issues with other java versions.

This commit is contained in:
Ty Sayers 2015-05-17 14:50:22 -04:00
parent e8d5d50162
commit afb0b1cfdf

View File

@ -1,6 +1,7 @@
package mineplex.serverdata.servers;
import java.io.File;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.HashMap;
@ -90,7 +91,7 @@ public class ServerManager
if (configFile.exists())
{
List<String> lines = Files.readAllLines(configFile.toPath());
List<String> lines = Files.readAllLines(configFile.toPath(), Charset.defaultCharset());
ConnectionData master = deserializeConnection(lines.get(0));
List<ConnectionData> slaves = new ArrayList<ConnectionData>();