Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Auto World Backup | AWB by the VenixMC Plugin Team.
- #
- # For this plugin: https://venixmc.com/awb/"
- #
- # For more plugins: https://venixmc.com/plugins/"
- every 10 minute:
- if {awb::world} is set:
- execute console command "/mv delete backupworld_%{awb::world}%"
- wait 3 ticks
- execute console command "/mvconfirm"
- wait 3 ticks
- execute console command "/mvclone %{awb::world}% backupworld_%{awb::world}%"
- wait 3 ticks
- broadcast "&a&lSUCCESS &fThe world &6%{awb::world}%&f has been backed-up. (backupworld_%{awb::world}%)"
- else:
- loop all players:
- if loop-player has the permission "awb.use":
- send "&4&lERROR &fAWB has tried to create a backup of the main world, but a world has not been set. Please use &6/awb setworld <WORLD>&f." to loop-player
- command /awb [<text>] [<text>]:
- permission: awb.use
- permission message: &cYou do not have the permission awb.use
- trigger:
- if arg 1 is not set:
- send "&8&l&m-------&6&l HELP &8&l&m-------"
- send "&aAWB (AutoWorldBackup) will automaticly backup the"
- send "&amain world you set to back by &b/awb setworld <WORLD>"
- if arg 1 is "help" or "info":
- send "&8&l&m-------&6&l HELP &8&l&m-------"
- send "&aAWB (AutoWorldBackup) will automaticly backup the"
- send "&amain world you set to back by &b/awb setworld <WORLD>"
- if arg 1 is "setworld":
- if arg 2 is set:
- set {awb::world} to "%player's world%"
- send "&a&lSUCCESS &fThe world &6%arg-2%&f will now backup every 10 minutes. (cloneworld_%arg-2%)"
- # Raw Code: https://pastebin.com/raw/ZHeZxNKw
Advertisement
Add Comment
Please, Sign In to add comment