diff --git a/pom.xml b/pom.xml index 12bdff8..d14fa06 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ com.blalp sftautorestart -2.0.1 +2.0.2 jar SFTAutoRestart diff --git a/src/main/java/com/blalp/sftautorestart/sponge/SFTAutoRestart.java b/src/main/java/com/blalp/sftautorestart/sponge/SFTAutoRestart.java index c09db7e..2c0a9a4 100755 --- a/src/main/java/com/blalp/sftautorestart/sponge/SFTAutoRestart.java +++ b/src/main/java/com/blalp/sftautorestart/sponge/SFTAutoRestart.java @@ -32,7 +32,7 @@ import ninja.leaping.configurate.commented.CommentedConfigurationNode; import ninja.leaping.configurate.loader.ConfigurationLoader; -@Plugin(id = "sftautorestart", name = "SFTAutoRestart", version = "2.0.1", description = "Vote and Autorestart.") +@Plugin(id = "sftautorestart", name = "SFTAutoRestart", version = "2.0.2", description = "Vote and Autorestart.") public class SFTAutoRestart implements CommandExecutor { // thanks to // https://github.com/FuzzyWuzzie/SimpleRestart/blob/master/src/main/java/com/hamaluik/SimpleRestart/SimpleRestart.java @@ -70,7 +70,7 @@ public void onServerStart(GameStartedServerEvent e) { try { configRoot = configManager.load(); if(!defaultConfig.toFile().exists()){ - Sponge.getAssetManager().getAsset(this, "default.conf").get().copyToFile(new File(defaultConfig.toAbsolutePath().toString(),"sftautorestart.conf").toPath()); + Sponge.getAssetManager().getAsset(this, "default.conf").get().copyToFile(defaultConfig); } } catch (IOException exception) { exception.printStackTrace(); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index cd3cc40..7e29a11 100755 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: SFTAutoRestart main: com.blalp.sftautorestart.SFTAutoRestart -version: 2.0.1 +version: 2.0.2 commands: autorestart: