873
收录服务器
1105
注册
28 660
玩家
KInvBackup 简易物品栏备份
适用于您的服务器的轻量级播放器库存备份插件
作 者 Kamilkime
发布时间 2015年11月29日
支持核心 Spigot
原生版本
支持版本 1.7,1.8,1.9,1.10,1.11,1.12
点此下载

💾 KInvBackup

KInvBackup 是一款简单实用的 Minecraft 插件,它允许你备份玩家的背包。备份可以通过多种方式创建,并在需要时恢复玩家的背包。

⚙️ 配置

配置非常简单,如果你愿意,甚至不需要更改任何内容!但是,有一点必须说明:如果你将插件更新到新版本(例如 1.2),并且该版本的配置发生更改,则旧的配置将保存为 oldConfig.yml 文件,而 config.yml 文件将重置为默认值。

<code>###################################<br />########## CONFIGURATION ##########<br />###################################<br /><br /># DO NOT TOUCH THIS SECTION !!!<br />configVersion: 5<br /><br /># Do you want to enable '/kinv info' command?<br /># This command only shows the info about me (author) and shows my spigotmc account link<br /># I would be very grateful if you would enable this command (but you can also disable it easily if you really want)<br />enableInfoCommand: true<br /><br /># Do you want to have one backup per world instead of one backup per server?<br />enablePerWorldBackup: false<br /><br /># When player leaves one of the worlds you define below his inventory will NOT be backuped<br /># This option works only if backupOnWorldChange is enabled<br />excludeWorlds:<br />- 'survival_games_1'<br />- 'kitpvp'<br /><br /># This option is used only if the plugin has to stop using perWorldBackups<br /># When plugin has to switch to one-backup-only mode it has to change the layout of player's backup file<br /># It has to stop using world names as sections and start using slot numbers as sections<br /># But only ONE backup can be converted, other will be removed<br /># The higher a world name is on this list, the bigger is a chance backup with that world name will be converted<br /># If none of this world names are in the converted file - plugin takes a random backup and converts it to new format<br />conversionWorldPriority:<br />- 'world'<br />- 'world_nether'<br />- 'world_the_end'<br /><br /># 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<br /># This backup will be saved as it belongs to the world you enter below<br />convertToWorld: 'world'<br /><br /># Do you want to not backup player's inventory if he has survival gamemode on?<br />ignoreSurvival: false<br /><br /># Do you want to not backup player's inventory if he has creative gamemode on?<br />ignoreCreative: true<br /><br /># Do you want to not backup player's inventory if he has adventure gamemode on?<br />ignoreAdventure: false<br /><br /># Do you want to backup player inventories when they change world?<br /># In my opinion this option is useful only if you have perWorldBackup enabled<br />backupOnWorldChange: false<br /><br /># Do you want to backup player inventories on their join?<br />backupOnJoin: true<br /><br /># Do you want to backup player inventories on their quit?<br />backupOnQuit: true<br /><br /># Do you want to backup player inventories on their kick?<br />backupOnKick: true<br /><br /># Do you want to backup player inventories on server enabling?<br />backupOnServerEnabled: true<br /><br /># Do you want to backup player inventories on server disabling?<br />backupOnServerDisabled: true<br /><br /># Do you want to enable autoBackup?<br />autoBackupEnabled: true<br /><br /># How frequently do you want autoBackup to save inventories?<br /># Interval must be given in seconds<br />autoBackupInterval: 300<br /><br /># Do you want to delete backup after player's inventory is restored?<br />clearBackupAfterUse: false<br /><br />###################################<br />############# MESSAGES ############<br />###################################<br /><br /># Shown when player has no permission to use a command<br />msgNoPermission: "&cNo permission!"<br /><br /># Shown when player uses a command with wrong arguments<br />msgCorrectUsage: "&cCorrect usage: {COMMAND}"<br /><br /># Shown when console uses a player-only command<br />msgPlayerOnlyCommand: "&cThis is a player-only command!"<br /><br /># Shown when someone wants to backup/restore inventory of the player that is not online<br />msgNoSuchPlayer: "&cThis player is not online!"<br /><br /># Shown when someone wants to restore/show backuped inventory of the player, but there is no such backup<br />msgNoSuchBackup: "&cThis player has no backuped inventory!"<br /><br /># 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<br />msgNoBackupForThisWorld: "&cThis player has no backuped inventory for {WORLD}!"<br /><br /># Shown when player's inventory is successfully restored<br />msgInventoryRestored: "&6{PLAYER}'s &ainventory has been successfully restored to the state from &6{DATE}&a!"<br /><br /># Shown when player reloads a config file<br />msgConfigReloaded: "&aConfig file has been reloaded!"<br /><br /># Shown when player's inventory is successfully backuped<br />msgBackupCreated: "&6{PLAYER}'s &ainventory has been succesfully backuped!"<br /><br /># Shown player has a gamemode which is ignored<br />msgGamemodeIgnored: "&cYou cannot create a backup - player's gamemode is set to be ignored!"</code>

⌨️ 命令

  • /kinv - 主插件命令
  • /kinv help - 显示插件帮助
  • /kinv backup <nick> - 备份玩家的背包
  • /kinv restore <nick> - 恢复玩家的背包
  • /kinv show <nick> <worldName> - 显示玩家备份的背包内容
  • /kinv reload - 重新加载配置文件
  • /kinv info - 显示关于插件的信息

/kinv 命令也有一些别名可以使用:/kinvbackup, /kib, /kbackup

如果 /kinv show 命令中的世界名称包含空格,可以使用 %s%%S% 代替空格。

例如,要显示我在 Survival Games 世界中备份的物品,你必须输入:/kinv show Kamilkime Survival%S%Games

如果插件禁用了 perWorldBackups,则可以在 /kinv show 命令中输入任何世界名称,在这种情况下,该参数完全无用。

🛡️ 权限

  • kinv.* - 包含以下所有权限,OP 默认拥有
  • kinv.backup - /kinv backup 命令的权限
  • kinv.restore - /kinv restore 命令的权限
  • kinv.show - /kinv show 命令的权限
  • kinv.reload - /kinv reload 命令的权限

🚧 待办事项

  • 添加 MySQL/SQLite 数据保存
  • 添加多重备份功能

💻 源码

GitHub 链接: https://github.com/Kamilkime/KInvBackup