Removed the accounts.yml from the ServerVersionManager

This commit is contained in:
Mathias Wagner 2024-02-15 16:35:29 +01:00
parent 88a72fd115
commit 8e4dabe74e
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -112,9 +112,8 @@ public class ServerVersionManager {
* Sets up the plugin
* @param uuid the uuid
* @param port the port
* @param token the token
*/
public void setupPlugin(String uuid, int port, String token) {
public void setupPlugin(String uuid, int port) {
File file = new File(serverFolder, uuid);
if (!file.exists()) {
LOG.error("The server does not exist");
@ -130,14 +129,6 @@ public class ServerVersionManager {
} catch (IOException e) {
LOG.error("An error occurred while setting up the plugin: " + e.getMessage());
}
File accounts = new File(pluginsFolder, "MinecraftDashboard/accounts.yml");
if (accounts.exists()) accounts.delete();
try {
FileUtils.writeStringToFile(accounts, "accounts:\n " + token, "UTF-8");
} catch (IOException e) {
LOG.error("An error occurred while setting up the plugin: " + e.getMessage());
}
}
/**