Skip to content

FlyUltra/TheWorldRestorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TheWorldRestorer

badge badge badge badge

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

Table of contents

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'
}

Example

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

License

TheWorldRestorer is licensed under the permissive license. Please see LICENSE.txt for more information.