1c7

AutoWorldBackup - Updated #1

1c7
Oct 30th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. # Auto World Backup | AWB by the VenixMC Plugin Team.
  2. #
  3. # For this plugin: https://venixmc.com/awb/"
  4. #
  5. # For more plugins: https://venixmc.com/plugins/"
  6.  
  7. every 10 minute:
  8. if {awb::world} is set:
  9. execute console command "/mv delete backupworld_%{awb::world}%"
  10. wait 3 ticks
  11. execute console command "/mvconfirm"
  12. wait 3 ticks
  13. execute console command "/mvclone %{awb::world}% backupworld_%{awb::world}%"
  14. wait 3 ticks
  15. broadcast "&a&lSUCCESS &fThe world &6%{awb::world}%&f has been backed-up. (backupworld_%{awb::world}%)"
  16. else:
  17. loop all players:
  18. if loop-player has the permission "awb.use":
  19. 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
  20.  
  21. command /awb [<text>] [<text>]:
  22. permission: awb.use
  23. permission message: &cYou do not have the permission awb.use
  24. trigger:
  25. if arg 1 is not set:
  26. send "&8&l&m-------&6&l HELP &8&l&m-------"
  27. send "&aAWB (AutoWorldBackup) will automaticly backup the"
  28. send "&amain world you set to back by &b/awb setworld <WORLD>"
  29. if arg 1 is "help" or "info":
  30. send "&8&l&m-------&6&l HELP &8&l&m-------"
  31. send "&aAWB (AutoWorldBackup) will automaticly backup the"
  32. send "&amain world you set to back by &b/awb setworld <WORLD>"
  33. if arg 1 is "setworld":
  34. if arg 2 is set:
  35. set {awb::world} to "%player's world%"
  36. send "&a&lSUCCESS &fThe world &6%arg-2%&f will now backup every 10 minutes. (cloneworld_%arg-2%)"
  37.  
  38. # Raw Code: https://pastebin.com/raw/ZHeZxNKw
Advertisement
Add Comment
Please, Sign In to add comment