1. We are planning scheduled maintenance on this website on Friday 5 March (tomorrow) at 4:00 am UTC. It is estimated that this maintenance will last 15 minutes. You can view this time in your local timezone here. Thanks.
    Dismiss Notice

KInvBackup - easy inventory backup 1.2.3

A lightweight player inventory backup plugin for your server

  1. Kamilkime
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    KInvBackup
    This plugin is very simple - it allows you to make a backup of a player's inventory. This backup can be created in many ways and then used to restore player's inventory whenever there's a need for doing this!

    ===== Configuration =====
    Configuration is very easy and if you want - you don't even have to change anything! But, one thing must be said here - if you change plugin to, for example, version 1.2 and if in this version config was changed - your old config will be saved as an oldConfig.yml file and config.yml file will be reset to default. Sorry, I didn't find any way to prevent this (but I hope I will!)
    Code (YAML):
    ###################################
    ########## CONFIGURATION ##########
    ###################################

    # DO NOT TOUCH THIS SECTION !!!
    configVersion
    : 5

    # Do you want to enable '/kinv info' command?
    # This command only shows the info about me (author) and shows my spigotmc account link
    # I would be very grateful if you would enable this command (but you can also disable it easily if you really want)
    enableInfoCommand
    : true

    # Do you want to have one backup per world instead of one backup per server?
    enablePerWorldBackup
    : false

    # When player leaves one of the worlds you define below his inventory will NOT be backuped
    # This option works only if backupOnWorldChange is enabled
    excludeWorlds
    :
    - 'survival_games_1'
    - 'kitpvp'

    # This option is used only if the plugin has to stop using perWorldBackups
    # When plugin has to switch to one-backup-only mode it has to change the layout of player's backup file
    # It has to stop using world names as sections and start using slot numbers as sections
    # But only ONE backup can be converted, other will be removed
    # The higher a world name is on this list, the bigger is a chance backup with that world name will be converted
    # If none of this world names are in the converted file - plugin takes a random backup and converts it to new format
    conversionWorldPriority
    :
    - 'world'
    - 'world_nether'
    - 'world_the_end'

    # If the plugin switches to perWorldBackups and there is a backup created in one-backup-only mode in the player's file - it has to be converted
    # This backup will be saved as it belongs to the world you enter below
    convertToWorld
    : 'world'

    # Do you want to not backup player's inventory if he has survival gamemode on?
    ignoreSurvival
    : false

    # Do you want to not backup player's inventory if he has creative gamemode on?
    ignoreCreative
    : true

    # Do you want to not backup player's inventory if he has adventure gamemode on?
    ignoreAdventure
    : false

    # Do you want to backup player inventories when they change world?
    # In my opinion this option is useful only if you have perWorldBackup enabled
    backupOnWorldChange
    : false

    # Do you want to backup player inventories on their join?
    backupOnJoin
    : true

    # Do you want to backup player inventories on their quit?
    backupOnQuit
    : true

    # Do you want to backup player inventories on their kick?
    backupOnKick
    : true

    # Do you want to backup player inventories on server enabling?
    backupOnServerEnabled
    : true

    # Do you want to backup player inventories on server disabling?
    backupOnServerDisabled
    : true

    # Do you want to enable autoBackup?
    autoBackupEnabled
    : true

    # How frequently do you want autoBackup to save inventories?
    # Interval must be given in seconds
    autoBackupInterval
    : 300

    # Do you want to delete backup after player's inventory is restored?
    clearBackupAfterUse
    : false

    ###################################
    ############# MESSAGES ############
    ###################################

    # Shown when player has no permission to use a command
    msgNoPermission
    : "&cNo permission!"

    # Shown when player uses a command with wrong arguments
    msgCorrectUsage
    : "&cCorrect usage: {COMMAND}"

    # Shown when console uses a player-only command
    msgPlayerOnlyCommand
    : "&cThis is a player-only command!"

    # Shown when someone wants to backup/restore inventory of the player that is not online
    msgNoSuchPlayer
    : "&cThis player is not online!"

    # Shown when someone wants to restore/show backuped inventory of the player, but there is no such backup
    msgNoSuchBackup
    : "&cThis player has no backuped inventory!"

    # Shown when someone wants to restore/show backuped inventory of the player, but there is no backup for the world the player is currently in
    msgNoBackupForThisWorld
    : "&cThis player has no backuped inventory for {WORLD}!"

    # Shown when player's inventory is successfully restored
    msgInventoryRestored
    : "&6{PLAYER}'s &ainventory has been successfully restored to the state from &6{DATE}&a!"

    # Shown when player reloads a config file
    msgConfigReloaded
    : "&aConfig file has been reloaded!"

    # Shown when player's inventory is successfully backuped
    msgBackupCreated
    : "&6{PLAYER}'s &ainventory has been succesfully backuped!"

    # Shown player has a gamemode which is ignored
    msgGamemodeIgnored
    : "&cYou cannot create a backup - player's gamemode is set to be ignored!"


    ===== Commands =====
    • /kinv - main plugin command
    • /kinv help - shows plugin help
    • /kinv backup <nick> - backups player's inventory
    • /kinv restore <nick> - restores player's inventory
    • /kinv show <nick> <worldName> - shows player's backuped inventory contents
    • /kinv reload - reloads config file
    • /kinv info - shows an info about the plugin
    • The /kinv command also has some alliases you can use: /kinvbackup, /kib, /kbackup
    » If the world name in the /kinv show command must contain spaces you can use %s% or %S% instead of spaces

    » For example, to show my backuped items in world 'Survival Games' you have to type: /kinv show Kamilkime Survival%S%Games

    » If the plugin has perWorldBackups disabled, in the /kinv show command you can write whatever you want as a worldName, in this case the argument is totally useless :)

    ===== Polish aliases =====
    • /kinv - główna komenda pluginu
    • /kinv pomoc - pokazuje pomoc pluginu
    • /kinv zapisz <nick> - tworzy kopię zapasową inventory gracza
    • /kinv przywroc <nick> - przywraca inventory gracza za pomocą kopii zapasowej
    • /kinv pokaz <nick> <nazwaSwiata> - pokazuje zawartość kopii zapasowej inventory gracza
    • /kinv reload - reloaduje config
    • /kinv info - drobne info o pluginie
    • Komenda /kinv ma też kilka aliasów: /kinvbackup, /kib, /kbackup
    » Jeśli nazwa świata w komendzie /kinv pokaz musi zawierać spacje, zamiast nich możesz użyć %s% lub %S%

    » Na przykład, żeby pokazać moje zapisane itemy ze świata 'Survival Games' musisz wpisać: /kinv pokaz Kamilkime Survival%S%Games

    » Jeżeli w configu opcja perWorldBackups jest wyłączona, w komendzie /kinv pokaz jako nazwę świata możesz podać cokolwiek, w tym przypadku jest ona całkowicie bezużyteczna :)

    ===== Permissions =====
    • kinv.* - permission containing all below permissions, defult for OPs
    • kinv.backup - permission for /kinv backup command
    • kinv.restore - permission for /kinv restore command
    • kinv.show - permission for /kinv show command
    • kinv.reload - permission for /kinv reload command
    ===== ToDo =====
    • Add MySQL/SQLite data saving
    • Add multi-backup feature
    ===== Source code =====

    Xopez, sialer, Bodziowskyy and 4 others like this.

Recent Reviews

  1. Bartek200219
    Bartek200219
    4/5,
    Version: 1.2.3
    Świetny plugin jednak przydała by się funkcja archiwalnych backupów np. z 3 dni wstecz
  2. Wyros
    Wyros
    5/5,
    Version: 1.2.3
    Nice plugin. Please can you update it to 1.14? The last update was 2 years ago :c.
  3. Misio12320
    Misio12320
    5/5,
    Version: 1.2.3
    Zajebisty plugin jeszcze go nie testowałem ale wygląda zajebiscie działa na 1.13 ... Nawet nie podejrzewałem żeby Polak takiego dobrego plugina stworzył :DDD
  4. Xopez
    Xopez
    5/5,
    Version: 1.2.3
    With Soigot 1.13 it still works fine without any errors :)
    So I am at least fine with it.
    1. Kamilkime
      Author's Response
      Really? It works? That's nice :D
  5. Kaczuc
    Kaczuc
    5/5,
    Version: 1.2.3
    Witam mam pytanie czy mozna jakos wymusic aby plugin pokazywal na chacie napis Ekwipunek graczy zostal zapisany ?
    1. Kamilkime
      Author's Response
      Jeśli chodzi ci o autozapis - nie, tylko w konsoli jest informacja, ale nie broadcastuje tego na cały serwer
  6. PanKlipcio
    PanKlipcio
    5/5,
    Version: 1.2.3
    A very nice plugin. I don't understand it: /kinv pomoc - pokazuje pomoc pluginu.
  7. sialer
    sialer
    5/5,
    Version: 1.2.3
    Very good plugin, I really like using it. Kamilkime is the best dev ever <333333333333333333
  8. frizzbee30
    frizzbee30
    5/5,
    Version: 1.2.1
    Fantastic plugin, easy to use, already solving issues for us, a must have with some great config options :D
  9. Bodziowskyy
    Bodziowskyy
    5/5,
    Version: 1.2.1
    Plugin genialny! Działa w 100% + prosty w obsłudze.
    Czekam na kolejne update'y.
    Great job! :D
    Przyda się ;v
  10. FxGLMaKlocka
    FxGLMaKlocka
    5/5,
    Version: 1.1.6
    Super plugin tego potrzebowalem na moj serwer EasyHC! A tak a propo Kukubaczeek to polak tez developer pobieral ten plugin tylko po to zeby ulepszyc swoj plugin (Tylko go nie udostepni ;c)
    1. Kamilkime
      Author's Response
      Wiem, że kukubaczek to Polak :P
      Mam nadzieję, że plugin się przyda i zadziała w 100% :D