From 8e4dabe74ef491739eed011a85752d62842bd820 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Thu, 15 Feb 2024 16:35:29 +0100 Subject: [PATCH] Removed the accounts.yml from the ServerVersionManager --- .../de/gnmyt/mcdash/api/ServerVersionManager.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/de/gnmyt/mcdash/api/ServerVersionManager.java b/src/main/java/de/gnmyt/mcdash/api/ServerVersionManager.java index 1ad627d..94a2d95 100644 --- a/src/main/java/de/gnmyt/mcdash/api/ServerVersionManager.java +++ b/src/main/java/de/gnmyt/mcdash/api/ServerVersionManager.java @@ -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()); - } } /**