Plugin for restoring the world (API)
API will make backup folder in your plugin And in that folder you store your backups When you start need your backup you only call one method for it
Maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.FlyUltra</groupId>
<artifactId>TheWorldRestorer</artifactId>
<version>VERSION</version>
<scope>provided</scope>
</dependency>
</dependencies>
Gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.FlyUltra:TheWorldRestorer:VERSION'
}
WorldRestorer worldR = new WorldRestorer(JavaPlugin plugin, String world); // new instance for the class with that world
worldR.backupWorld(); // This save the world to backUp folder
worldR.restoreWorld(); // This returns the world from backUp
worldR.deleteWorld(File worldFolder); // This delete the world with folder
TheWorldRestorer is licensed under the permissive license. Please see LICENSE.txt
for more information.