Skip to content

Commit

Permalink
2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
blalp committed Feb 4, 2021
1 parent 52288f1 commit 1766065
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>com.blalp</groupId>
<artifactId>sftautorestart</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
<packaging>jar</packaging>

<name>SFTAutoRestart</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: SFTAutoRestart
main: com.blalp.sftautorestart.SFTAutoRestart
version: 2.0.1
version: 2.0.2

commands:
autorestart:
Expand Down

0 comments on commit 1766065

Please sign in to comment.