{"id":20228831,"url":"https://github.com/carm-outsource/ultradepository","last_synced_at":"2025-04-10T17:51:03.972Z","repository":{"id":74963695,"uuid":"438367088","full_name":"carm-outsource/UltraDepository","owner":"carm-outsource","description":"超级仓库插件，支持设定不同物品的存储仓库，基于EasyPlugin实现。","archived":false,"fork":false,"pushed_at":"2025-03-11T20:56:24.000Z","size":929,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T15:41:30.705Z","etag":null,"topics":["easyplugin","easysql","outsource","spigot-plugin"],"latest_commit_sha":null,"homepage":"https://carmjos.github.io/UltraDepository","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carm-outsource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-14T18:57:27.000Z","updated_at":"2025-03-11T20:56:27.000Z","dependencies_parsed_at":"2023-05-06T20:17:58.135Z","dependency_job_id":null,"html_url":"https://github.com/carm-outsource/UltraDepository","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carm-outsource%2FUltraDepository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carm-outsource%2FUltraDepository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carm-outsource%2FUltraDepository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carm-outsource%2FUltraDepository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carm-outsource","download_url":"https://codeload.github.com/carm-outsource/UltraDepository/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248262430,"owners_count":21074308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["easyplugin","easysql","outsource","spigot-plugin"],"created_at":"2024-11-14T07:32:56.916Z","updated_at":"2025-04-10T17:51:03.965Z","avatar_url":"https://github.com/carm-outsource.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"```text\n _    _ _ _             _____                       _ _                   \n| |  | | | |           |  __ \\                     (_) |                  \n| |  | | | |_ _ __ __ _| |  | | ___ _ __   ___  ___ _| |_ ___  _ __ _   _ \n| |  | | | __| '__/ _` | |  | |/ _ \\ '_ \\ / _ \\/ __| | __/ _ \\| '__| | | |\n| |__| | | |_| | | (_| | |__| |  __/ |_) | (_) \\__ \\ | || (_) | |  | |_| |\n \\____/|_|\\__|_|  \\__,_|_____/ \\___| .__/ \\___/|___/_|\\__\\___/|_|   \\__, |\n                                   | |                               __/ |\n                                   |_|                              |___/ \n```\n\n# UltraDepository\n\n[![version](https://img.shields.io/github/v/release/CarmJos/UltraDepository)](https://github.com/CarmJos/UltraDepository/releases)\n[![License](https://img.shields.io/github/license/CarmJos/UltraDepository)](https://opensource.org/licenses/GPL-3.0)\n[![workflow](https://github.com/CarmJos/UltraDepository/actions/workflows/maven.yml/badge.svg?branch=master)](https://github.com/CarmJos/UltraDepository/actions/workflows/maven.yml)\n![CodeSize](https://img.shields.io/github/languages/code-size/CarmJos/UltraDepository)\n![Support](https://img.shields.io/badge/Minecraft-Java%201.16--Latest-green)\n![](https://visitor-badge.glitch.me/badge?page_id=UltraDepository.readme)\n\n超级仓库插件，支持设定不同物品的存储仓库。\n\n本插件基于 Spigot(1.16.3) 实现，**理论上支持1.16后的全部版本**。\n\n本插件由 [墨豆Mordo](https://www.mordo.cn)、[子墨Zimrs](https://www.zimrs.cn) 资助本人开发，经过授权后开源。\n\n\u003e 本插件已发布于 [MCBBS](https://www.mcbbs.net/forum.php?mod=viewthread\u0026tid=1292631) 和 [SpigotMC]() 。\n\n## 功能介绍\n\n本插件允许配置多个不同功能的仓库，玩家通过 击杀生物/挖掘方块/捡起收集 获得的原版物品可以自动被放入仓库中。\n\n进入仓库后的物品玩家可以选择拿出或直接按量出售，且每日的出售数量上限和每件物品的价格可以自定义。\n\n插件支持针对不同的权限配置仓库的容量，由此可以制作付费享用的”作物仓库“、”药剂师仓库“、”伐木仓库“...\n\n综上，该插件不但提供了一种功能特权，对其合理配置之后也将大大为玩家带来便利。\n\n## 效果预览\n\n\u003cdetails\u003e\n\u003csummary\u003e收集物品\u003c/summary\u003e\n\n![collect](.documentation/images/collect-message.jpg)\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e仓库界面 (可自定义配置)\u003c/summary\u003e\n\n![item-gui](.documentation/images/item-in-gui.png)\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e出售界面\u003c/summary\u003e\n\n![sell-gui](.documentation/images/sell-gui.png)\n\n![sell-message](.documentation/images/sell-message.png)\n\u003c/details\u003e\n\n## 插件依赖\n\n- **[必须]** 插件本体基于 [Spigot-API](https://hub.spigotmc.org/stash/projects/SPIGOT) 、 [BukkitAPI](http://bukkit.org/) 实现。\n- **[自带]** 插件功能基于 [EasyPlugin](https://github.com/CarmJos/EasyPlugin) 实现。\n- **[自带]** 数据部分基于 [EasySQL](https://github.com/CarmJos/EasySQL) 实现。\n    - 本插件连接池使用 [BeeCP](https://github.com/Chris2018998/BeeCP) ，更轻量、快速。\n- **[推荐]** 变量部分基于 [PlaceholderAPI](https://www.spigotmc.org/resources/6245/) 实现。\n- **[推荐]** 经济部分基于 [VaultAPI](https://github.com/MilkBowl/VaultAPI) 实现。\n\n详细依赖列表可见 [Dependencies](https://github.com/CarmJos/UltraDepository/network/dependencies) 。\n\n## 特殊优势\n\n- 详细的变量与指令！\n- 支持多种存储方式！\n- 可自定义程度高，配置任何想要的仓库！\n- 仓库容量权限配置，可给予特殊用户更大的仓库容量！\n- 仓库自动收集物品，提供API操作玩家数据！\n- ...\n\n## 插件指令\n\n指令主指令为 /UltraDepository (/ud | /Depository)\n\n\u003cdetails\u003e\n\u003csummary\u003e展开查看所有玩家指令\u003c/summary\u003e\n\n```text\n# open [仓库ID]\n@ 玩家指令 (UltraDepository.use)\n- 打开对应仓库的界面。\n\n# sell \u003c仓库ID\u003e \u003c物品ID\u003e \u003c数量\u003e\n@ 玩家指令 (UltraDepository.Command.Sell)\n- 售出对应数量的对应物品。\n- 该指令受到玩家每日售出数量的限制。\n\n# sellAll [仓库ID] [物品ID]\n@ 玩家指令 (UltraDepository.Command.SellAll)\n- 售出所有相关物品。\n- 该指令受到玩家每日售出数量的限制。\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e展开查看所有后台指令\u003c/summary\u003e\n\n以下指令**只有后台**才可以使用，可用于搭配变量自制玩家管理GUI。\n\n```text\n# info \u003c玩家\u003e [仓库ID] [物品ID]\n- 得到玩家的相关物品信息。\n\n# add \u003c玩家\u003e \u003c仓库ID\u003e \u003c物品ID\u003e \u003c数量\u003e\n- 为玩家添加对应仓库中对于物品的数量。\n\n# remove \u003c玩家\u003e \u003c仓库ID\u003e \u003c物品ID\u003e [数量]\n- 为玩家减少对应仓库中对于物品的数量。\n- 若不填写数量，则清空对应仓库的对应物品。\n\n# sell \u003c玩家\u003e [仓库ID] [物品ID] [数量]\n- 为玩家售出相关物品。\n- 若不填写数量，则售出所有对应仓库的对应物品。\n- 若不填写物品，则售出对应仓库内所有物品。\n- 若不填写仓库，则售出所有仓库内所有物品。\n- 该指令受到玩家每日售出数量的限制。\n```\n\n\u003c/details\u003e\n\n## 插件变量 ([PlaceholderAPI](https://www.spigotmc.org/resources/6245/))\n\n变量部分基于 [PlaceholderAPI](https://www.spigotmc.org/resources/6245/) 实现，如需使用变量请安装其插件。\n\n\u003cdetails\u003e\n\u003csummary\u003e展开查看所有变量\u003c/summary\u003e\n\n```text\n# %UltraDepository_amount_\u003c仓库ID\u003e_\u003c物品ID\u003e%\n- 得到对应仓库内对应物品的数量\n\n# %UltraDepository_price_\u003c仓库ID\u003e_\u003c物品ID\u003e%\n- 得到对应仓库内对应物品的价格\n\n# %UltraDepository_sold_\u003c仓库ID\u003e_\u003c物品ID\u003e%\n- 得到对应仓库内对应物品的今日售出数量\n\n# %UltraDepository_limit_\u003c仓库ID\u003e_\u003c物品ID\u003e%\n- 得到对应仓库内对应物品的每日售出限制\n\n# %UltraDepository_remain_\u003c仓库ID\u003e_\u003c物品ID\u003e%\n- 得到对应仓库内对应物品的剩余可售出数量\n- $剩余可售出数量 = $每日售出限制 - $今日售出数量\n\n# %UltraDepository_capacity_\u003c仓库ID\u003e%\n- 得到对应仓库的容量\n\n# %UltraDepository_used_\u003c仓库ID\u003e%\n- 得到已使用的仓库容量\n\n# %UltraDepository_usable_\u003c仓库ID\u003e%\n- 得到剩余可使用的仓库容量\n\n```\n\n\u003c/details\u003e\n\n## 插件权限\n\n\u003cdetails\u003e\n\u003csummary\u003e展开查看所有权限\u003c/summary\u003e\n\n```text\n# UltraDepository.use\n- 超级仓库的基本使用权限 (默认所有人都有)\n\n# UltraDepository.Command.Sell\n- 玩家使用Sell指令的权限\n\n# UltraDepository.Command.SellAll\n- 玩家使用SellAll指令的权限\n\n# UltraDepository.auto\n- 超级仓库的自动收集权限\n\n# UltraDepository.auto.enable\n- 用于判断是否启用了自动收集功能\n- 若玩家有\"UltraDepository.auto\"权限，且玩家有该权限，则会开始为玩家自动收集物品。\n- 若玩家缺失该权限或“UltraDepository.auto”权限，则自动收集物品功能不会启用。\n- 您可以自己使用GUI创建一个按钮，后通过给玩家添加/删除该权限决定玩家是否开启自动收集。\n\n# UltraDepository.silent\n- 拥有该权限将不再接收到放入背包的提示。\n- 您可以自己使用GUI创建一个按钮，后通过给玩家添加/删除该权限决定玩家是否开启收集提示。\n\n# UltraDepository.admin\n- \"超级仓库的管理权限\"\n```\n\n\u003c/details\u003e\n\n## 配置文件\n\n### 插件配置文件 ([config.yml](src/main/resources/config.yml))\n\n详见源文件。\n\n### 消息配置文件 ([messages.yml](src/main/java/cc/carm/plugin/ultradepository/configuration/PluginMessages.java))\n\n详见代码文件中默认值，相关文件将在首次运行时创建。\n\n### 仓库配置文件 ([depositories/\u003c仓库ID\u003e.yml](src/main/resources/depositories/.example-depository.yml))\n\n所有仓库配置均为单独的配置文件，存放于 `插件配置目录/depositories` 下，便于管理。\n\n文件名即仓库的ID，**强烈推荐使用纯英文**。以`.`开头的仓库配置不会被加载。部分符号可能会影响正常读取，请避免使用。\n\n随本项目预设了几个常用的仓库类型，可以 [在这里](.examples/depositories) 直接下载您需要的仓库配置加以修改后使用。\n\n您也可以 [点击这里](src/main/resources/depositories/.example-depository.yml) 查看一份*详细的仓库配置示例*，以制作您自己的仓库。\n\n## 开发\n\n详细开发介绍请 [点击这里](.documentation/README.md) , JavaDoc(最新Release) 请 [点击这里](https://carmjos.github.io/UltraDepository) 。\n\n## 使用统计\n\n[![bStats](https://bstats.org/signatures/bukkit/UltraDepository.svg)](https://bstats.org/plugin/bukkit/UltraDepository/13777)\n\n## 支持与捐赠\n\n若您觉得本插件做的不错，您可以捐赠支持我！\n\n\u003cimg height=25% width=25% src=\"https://raw.githubusercontent.com/CarmJos/CarmJos/main/img/donate-code.jpg\"  alt=\"\"/\u003e\n\n## 开源协议\n\n本项目源码采用 [GNU General Public License v3.0](https://opensource.org/licenses/GPL-3.0) 开源协议。\n\n\u003cdetails\u003e\n\u003csummary\u003e关于 GPL 协议\u003c/summary\u003e\n\n\u003e GNU General Public Licence (GPL) 有可能是开源界最常用的许可模式。GPL 保证了所有开发者的权利，同时为使用者提供了足够的复制，分发，修改的权利：\n\u003e\n\u003e #### 可自由复制\n\u003e 你可以将软件复制到你的电脑，你客户的电脑，或者任何地方。复制份数没有任何限制。\n\u003e #### 可自由分发\n\u003e 在你的网站提供下载，拷贝到U盘送人，或者将源代码打印出来从窗户扔出去（环保起见，请别这样做）。\n\u003e #### 可以用来盈利\n\u003e 你可以在分发软件的时候收费，但你必须在收费前向你的客户提供该软件的 GNU GPL 许可协议，以便让他们知道，他们可以从别的渠道免费得到这份软件，以及你收费的理由。\n\u003e #### 可自由修改\n\u003e 如果你想添加或删除某个功能，没问题，如果你想在别的项目中使用部分代码，也没问题，唯一的要求是，使用了这段代码的项目也必须使用 GPL 协议。\n\u003e\n\u003e 需要注意的是，分发的时候，需要明确提供源代码和二进制文件，另外，用于某些程序的某些协议有一些问题和限制，你可以看一下 @PierreJoye 写的 Practical Guide to GPL Compliance 一文。使用 GPL 协议，你必须在源代码代码中包含相应信息，以及协议本身。\n\u003e\n\u003e *以上文字来自 [五种开源协议GPL,LGPL,BSD,MIT,Apache](https://www.oschina.net/question/54100_9455) 。*\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarm-outsource%2Fultradepository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarm-outsource%2Fultradepository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarm-outsource%2Fultradepository/lists"}