COWMODSКаталог модов

Floyd-Backpack

A simple backpack plugin for Paper server

Автор: codeNoob22812721обновлён 19 июл. 2026 г.
ХранениеУтилиты

Описание

Floyd-Backpack

Overview

Floyd-Backpack is a PaperMC server backpack plugin that provides each player with an independent 54-slot storage space. The plugin is developed based on the Floyd-Core framework and supports data persistence, internationalization, quick backpack access via tool items, and secondary confirmation to prevent accidental operations.

Features

  • 54-Slot Backpack: Each player has independent double-chest capacity storage space, isolated by UUID
  • Backpack Tool: Players automatically receive a tool item (Eye of Ender) when joining or respawning; right-click to open the backpack; to prevent accidental operations, the tool item cannot be stored in the backpack
  • Data Persistence: Automatically saves when players quit, and batch persists to JSON files when the server shuts down
  • Clear Function: One-click backpack clearing with secondary confirmation mechanism and configurable timeout
  • Internationalization: Built-in English and Simplified Chinese, switchable via configuration file; backpack title updates dynamically with language
  • Hot Reload: Supports reloading configuration without restarting the server
  • Thread Safety: Backpack data uses ReentrantLock to ensure thread safety

Commands

CommandAliasPermissionDescription
/backpack/bpfloydbackpack.openOpen personal backpack (default action)
/backpack open-floydbackpack.openOpen personal backpack
/backpack clear-floydbackpack.clearClear backpack (requires secondary confirmation)
/backpack clear confirm-floydbackpack.clearConfirm backpack clearing
/backpack clear cancel-floydbackpack.clearCancel clearing
/backpack reload-floydbackpack.reloadReload configuration
/backpack help-floydbackpack.helpDisplay help information

Console cannot execute backpack-related commands.

Usage Examples

# Open backpack
/bp

# Or full command
/backpack

# Clear backpack (triggers secondary confirmation)
/bp clear

# Confirm clearing (irreversible operation)
/bp clear confirm

# Cancel clearing
/bp clear cancel

# Reload configuration
/bp reload

# View help
/bp help

Clear Operation Flow

  1. Enter /bp clear, the system displays confirmation message and countdown
  2. Enter /bp clear confirm to confirm clearing (irreversible)
  3. Enter /bp clear cancel to cancel the operation
  4. If not confirmed within timeout, the operation automatically expires

Permissions

Permission NodeDefault ValueDescription
floydbackpack.opentrue (everyone)Allows players to open backpack
floydbackpack.clearop (administrators)Allows players to clear backpack
floydbackpack.reloadop (administrators)Allows reloading configuration
floydbackpack.helptrue (everyone)Display help information

Backpack Tool

When players join the server or respawn, if there is no tool item in their inventory, they will automatically receive an Eye of Ender as the backpack tool.

  • Acquisition Method: Automatically issued when players join/respawn
  • Usage Method: Right-click while holding the tool item to open the backpack
  • Lock Protection: The tool item cannot be placed into the backpack interface through clicking, dragging, Shift-moving, or hotkeys, preventing accidental storage
  • Recognition Mechanism: Identified via PersistentDataContainer tags, supporting multi-language environments; also maintains backward-compatible recognition based on item type and enchantments
  • Alternative Method: Can also use /bp command to open the backpack

Configuration

Configuration file location: plugins/FloydBackpack/config.yml.

Complete Configuration Items

logging:
  file:
    enable: true       # Whether to enable file logging
  level: INFO          # Log level

command:
  backpack:
    clear:
      enable: true         # Whether to enable backpack clear command
      need-confirm: true   # Whether secondary confirmation is required before clearing
      confirm-interval: 30000  # Secondary confirmation timeout (milliseconds)

i18n:
  locale: en           # Language setting, options: en / zh_cn

Configuration Item Descriptions

PathTypeDefault ValueDescription
logging.file.enablebooleantrueWhether to output logs to file
logging.levelstringINFOLog output level
command.backpack.clear.enablebooleantrueWhether to enable /bp clear command
command.backpack.clear.need-confirmbooleantrueWhether secondary confirmation is required before clearing backpack
command.backpack.clear.confirm-intervallong30000Timeout for secondary confirmation (milliseconds)
i18n.localestringenLanguage locale setting

Hot Reload

After modifying the configuration file, there is no need to restart the server. Execute the following command to apply changes:

/bp reload

Internationalization

The plugin includes two built-in language files:

LanguageFilenameConfig Value
Englishlanguage/en.ymlen
Simplified Chineselanguage/zh_cn.ymlzh_cn

Execute /bp reload after switching languages to take effect. The backpack interface title will dynamically update with the language setting. Old interfaces that are already open will be rebuilt with the new language title on next operation, without losing item contents.

Custom Language Files

To add languages not built-in (such as Japanese), you can manually create language files:

  1. Create a new YAML file in the plugins/FloydBackpack/language/ directory (create the directory manually if it doesn't exist)
  2. Refer to the structure of built-in language files and translate all message keys. For example, create a Japanese file language/ja.yml:
command:
  backpack:
    console-not-allowed: "§cコンソールからこのコマンドを実行できません。"
    reload:
      start: "§a設定を再読み込み中..."
      success: "§a再読み込みが完了しました ({0}ms)。"
      failure: "§c再読み込みに失敗しました。コンソールを確認してください。"
    help:
      line1: "§b[Floyd-Backpack] §a§lヘルプ"
      line2: "§6§n>> コマンド"
      line3: "§3/bp open §e- §7バックパックを開く"
      line4: "§3/bp clear §e- §7バックパックを空にする"
      line5: "§3/bp reload §e- §7設定を再読み込み"
      line6: "§e詳細: §f§nhttps://github.com/codeNoob2281/Floyd-Backpack"
    clear:
      feature-disabled: "§cバックパックを空にする機能は無効です。"
      pending-operation-exists: "§e保留中の確認操作があります。続行してください。"
      confirm-delete: "§6バックパックを空にしてもよろしいですか?この操作は元に戻せません。"
      confirm-timeout: "§9残り {0} 秒以内に確認してください。"
      no-active-operation: "§e有効な確認操作がありません。"
      operation-cancelled: "§eバックパックを空にする操作はキャンセルされました。"
      cleared: "§aバックパックを空にしました。§c{0}§a 個のアイテムを削除。"
      tip-confirm: "§6確認するには §c/bp clear confirm §6を入力"
      tip-cancel: "§6キャンセルするには §c/bp clear cancel §6を入力"
      operation-expired: "§e[Floyd-Backpack] §6前回の操作は期限切れです。"
chest-ui:
  backpack-title: "§6{0}のバックパック"
backpack-tool:
  item-name: "§b[Floyd-Backpack]§6 右クリックでバックパックを開く"
  lore-line1: "§aこのアイテムを持って右クリックでバックパックを開く"
  lore-line2: "§aまたは /bp コマンドを使用"
  1. Modify the language configuration in config.yml:
i18n:
  locale: ja
  1. Execute /bp reload to make the new language effective

Language files must maintain the same YAML structure and key names as built-in files, otherwise the plugin may fail to load correctly. If the plugin cannot automatically read external language files, place the file in the source code src/main/resources/language/ directory and rebuild.

Data Storage

Player backpack data storage location:

plugins/FloydBackpack/backpack/<player-UUID>.json
  • Each player's backpack data is saved independently with UUID naming
  • Save Timing: Automatically saved when players quit the server; batch saves all online player data when the server shuts down
  • Loading Method: Loaded from disk when opening the backpack for the first time, subsequent operations use memory cache
  • Fault Tolerance: If JSON data is corrupted, it is automatically backed up as .bak.<timestamp> file, and a new empty backpack is created for the player
  • Thread Safety: Each backpack instance holds a ReentrantLock, ensuring data safety in multi-threaded environments

Usage Notes

  1. Clearing the backpack is an irreversible operation; with secondary confirmation enabled, be sure to confirm before executing
  2. Console cannot execute any backpack commands
  3. Floyd-Core is embedded in the plugin as a Maven dependency, no additional installation required
  4. Backpack tool items cannot be stored in the backpack interface; this prevents accidental storage that would make it impossible to open the backpack
  5. After switching languages, execute /bp reload to make the new language settings effective
  6. It is recommended to regularly backup the data files in the plugins/FloydBackpack/backpack/ directory

Галерея

Последние версии

Все версии →
release

Floyd-Backpack 1.1.0

1.1.0
19 июл. 2026 г.113Minecraft: 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2, 26.2paper, purpur, spigot
Скачать
Что нового
# Floyd-Backpack v1.1.0 Release Notes --- ### 🎉 背包升级系统 这是本次版本的核心功能!背包升级系统让玩家可以逐步提升背包容量和功能。 - 支持多等级的升级配置(ConfigMe ListProperty) - Shift+左键触发升级,并显示消耗预览 - 升级确认界面,右键绿色占位符确认操作 - 占位符名称支持 i18n 运行时刷新 - 自适应 Geyser 玩家点击方式(右键/Shift+左键) ### 🔒 数据安全增强 - 定时自动保存机制(防崩溃丢数据) - 关闭背包时标记数据 dirty 并持久化 - 新增 `saveall` 命令(OP)立即触发全量保存 ### 🛠️ 其他改进 - 更新 floyd-core 依赖至 1.0.6 - 代码评审优化 - 完善 gitignore 配置 --- ### 🎉 Backpack Upgrade System This is the core feature of this release! The backpack upgrade system allows players to progressively expand their backpack capacity and capabilities. - Multi-level upgrade configuration (ConfigMe ListProperty) - Shift+Left Click to trigger upgrade, showing resource consumption preview - Upgrade confirmation GUI — right-click the green placeholder to confirm - Placeholder names support i18n hot-reload - Adaptive click interaction for Geyser players (Right Click / Shift+Left Click) ### 🔒 Data Safety Improvements - Periodic auto-save mechanism (prevents data loss on crash) - Mark data as dirty on backpack close and persist immediately - New `saveall` command (OP only) triggers full data save instantly ### 🛠️ Other Improvements - Updated floyd-core dependency to 1.0.6 - Code review optimizations - Refined gitignore configuration
release

Floyd-Backpack 1.0.4

1.0.4
23 мая 2026 г.83Minecraft: 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2bukkit, paper, purpur, spigot
Скачать
Что нового
# v1.0.4 ## 变更内容 ### Features - 兼容 Minecraft 1.20.6 版本 - 添加版本查询命令并优化帮助信息 - 移除背包工具物品描述中的斜体格式 ### Refactors - 优化路径构建和插件元数据访问 ### Documentation - 更新 Minecraft 版本兼容性信息 - 添加插件使用指南英文文档 - 新增 CHANGELOG.md ### Chores - 更新 floyd-core 依赖至 1.0.5 - 更新项目版本号为 1.0.4
release

Floyd-Backpack 1.0.3

1.0.3
16 мая 2026 г.29Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2bukkit, paper, purpur, spigot
Скачать
Что нового
## 1.0.3 版本更新内容 ### 🚀Feature - 新增国际化支持(英文/简体中文) - 日志打印内容优化 - 子命令处理重构 ### 🐛Bug Fix - 修复物品拖拽时的工具物品拦截逻辑 ### 📝chore 无 ## Version 1.0.3 Update Contents ### 🚀Feature - Added internationalization support (English/Simplified Chinese) - Optimized log printing content - Reconstructed sub-command processing ### 🐛Bug Fix Fix the logic for intercepting tool items when dragging items. ### 📝chore None
release

Floyd-Backpack 1.0.2

1.0.2
26 апр. 2026 г.44Minecraft: 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 26.1, 26.1.1, 26.1.2paper, purpur, spigot
Скачать