Removed the accounts.yml from the ServerVersionManager
This commit is contained in:
parent
88a72fd115
commit
8e4dabe74e
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user