ModsJava
LightBackup +API
Java mod listed for Minecraft 1.7–1.12. Downloads from the MC Java Mods app on Android.
⬇ Download on Spigot
Spoiler: API Examples
Events:
Methodes:
Code (Text):
//Gets called whenever a backup is completed.
@EventHandler
public void onBackupComplete(BackupCompleteEvent e) {
File backup = new File(e.getSavedPath());
}
//Gets called whenever a backup is started.
@EventHandler
public void onBackupStart(BackupStartEvent e) {
File backup = new File(e.getSavedPath());
}
//Gets called whenever a backup fails.
@EventHandler
public void onBackupFail(BackupFailEvent e) {
File backup = new File(e.getSavedPath());
}
@EventHandler
public void onBackupComplete(BackupCompleteEvent e) {
File backup = new File(e.getSavedPath());
}
//Gets called whenever a backup is started.
@EventHandler
public void onBackupStart(BackupStartEvent e) {
File backup = new File(e.getSavedPath());
}
//Gets called whenever a backup fails.
@EventHandler
public void onBackupFail(BackupFailEvent e) {
File backup = new File(e.getSavedPath());
}
Code (Text):
private void lightBackupAPI() {
//Gets an instance of the LightBackupAPI.
LightBackupAPI api = LightBackupAPI.getInstance();
//Gets the config.yml file of the LightBackup plugin folder.
FileConfiguration configuration = api.getFileConfiguration();
//Creates a backup according to the config.yml file of the LightBackup plugin folder.
api.createBackup();
}
//Gets an instance of the LightBackupAPI.
LightBackupAPI api = LightBackupAPI.getInstance();
//Gets the config.yml file of the LightBackup plugin folder.
FileConfiguration configuration = api.getFileConfiguration();
//Creates a backup according to the config.yml file of the LightBackup plugin folder.
api.createBackup();
}
Spoiler: Yaml Files
Plugin.yml
Config.yml
SavePath: 'plugins/LightBackup/backups/'
BackupPrefix: 'Backup_'
# https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
DateFormat: ddMMMMyyyy-HHmmss
IgnoredPaths:
- 'plugins'
- 'spigot-1.12.2.jar'
- 'start.cmd'
Code (Text):
name: LightBackup
version: 1.0 BETA
main: nl.tabuu.lightbackup.LightBackup
description: Lightweight backup plugin.
authors: [Tabuu]
website: https://www.tabuu.nl
commands:
lightbackup:
usage: /lightbackup
description: Help message.
aliases: [lb]
lightbackup help:
usage: /lightbackup help
description: Help message.
lightbackup createbackup:
usage: /lightbackup createbackup
description: Creates a backup.
lightbackup list:
usage: /lightbackup list
description: Shows a list of all the backups.
permissions:
lightbackup.createbackup:
description: Allows players to use the '/lightbackup create' command.
default: op
lightbackup.notify:
description: Notifies player about the status of a backup.
default: op
lightbackup.list:
description: Allows players to use the '/lightbackup list' command.
default: op
version: 1.0 BETA
main: nl.tabuu.lightbackup.LightBackup
description: Lightweight backup plugin.
authors: [Tabuu]
website: https://www.tabuu.nl
commands:
lightbackup:
usage: /lightbackup
description: Help message.
aliases: [lb]
lightbackup help:
usage: /lightbackup help
description: Help message.
lightbackup createbackup:
usage: /lightbackup createbackup
description: Creates a backup.
lightbackup list:
usage: /lightbackup list
description: Shows a list of all the backups.
permissions:
lightbackup.createbackup:
description: Allows players to use the '/lightbackup create' command.
default: op
lightbackup.notify:
description: Notifies player about the status of a backup.
default: op
lightbackup.list:
description: Allows players to use the '/lightbackup list' command.
default: op
Code (Text):
SavePath: 'plugins/LightBackup/backups/'
BackupPrefix: 'Backup_'
# https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
DateFormat: ddMMMMyyyy-HHmmss
IgnoredPaths:
- 'plugins'
- 'spigot-1.12.2.jar'
- 'start.cmd'
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.8, 1.9
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
LightBackup +API is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 154 times (via Spigot). Download it and open it directly in the game.
![[IMG]](http://proxy.spigotmc.org/a825a2fb5ea7d57b709b33a4e434db8b6f0fccf2?url=https%3A%2F%2Fi.imgur.com%2FD27m6u2.png)
![[IMG]](http://proxy.spigotmc.org/100fd460998d83f44d835cbdac063bf391a7c572?url=https%3A%2F%2Fi.imgur.com%2FcdirvGi.png)
![[IMG]](http://proxy.spigotmc.org/65ff444245cd97879e51339619234bca3dc81a3f?url=https%3A%2F%2Fi.imgur.com%2FQdz4yY6.png)
![[IMG]](http://proxy.spigotmc.org/9e72b00aec26a1649a4bd6e23d8183ef47dd7172?url=https%3A%2F%2Fi.imgur.com%2FBD445iH.png)