The plugin configuration file is now included in internal bug reports
This commit is contained in:
parent
a366018bdd
commit
2f44e8a631
@ -35,10 +35,20 @@ public class BugReport {
|
||||
playerUUID = "CONSOLE";
|
||||
}
|
||||
|
||||
try {
|
||||
// Get the contents of the configuration file.
|
||||
File configFile = new File("plugins" + File.separator + "Herobrine" + File.separator + "config.yml");
|
||||
FileInputStream configFileInputStream = new FileInputStream(configFile);
|
||||
byte[] configFileBytes = new byte[(int) configFile.length()];
|
||||
configFileInputStream.read(configFileBytes);
|
||||
configFileInputStream.close();
|
||||
String configFileString = new String(configFileBytes, "UTF-8");
|
||||
|
||||
report = "Server IP Address: " + serverIP + "\r\n" +
|
||||
"Submission UUID: " + playerUUID + "\r\n" +
|
||||
"Server Port: " + Bukkit.getServer().getPort() + "\r\n" +
|
||||
"Version: " + ConfigDB.pluginVersionNumber + "\r\n\r\n";
|
||||
"Version: " + ConfigDB.pluginVersionNumber + "\r\n\r\n" +
|
||||
"Plugin Configuration File:\r\n" + configFileString + " \r\n\r\n";
|
||||
|
||||
// Assemble the array of words in to a single message.
|
||||
for(int x = 1; x < messageWords.length; x++) {
|
||||
@ -97,6 +107,7 @@ public class BugReport {
|
||||
}
|
||||
}
|
||||
} catch (Exception e){}
|
||||
} catch (Exception e){}
|
||||
// The report failed because for some reason, the server could not be reached.
|
||||
return "0";
|
||||
}
|
||||
|
Reference in New Issue
Block a user