SmartSort
通过点击或命令整理你的物品栏和存储容器。物品按类型分组,相同类型的物品会自动堆叠。你的快捷栏和主物品栏保持独立。
版本 2.0.0 基于 Minecraft 26.2、Paper API 和 Java 25 构建。
如果 SmartSort 对你的服务器有帮助,请考虑留下评论或支持开发。请点击那个 HEART!:) 感谢使用我的插件!
v2.0.0 更新内容
更新至 Minecraft 26.2、Paper API 和 Java 25。
更新聊天消息和更新通知以使用 Adventure。
为 /smartsort 命令添加了 Tab 补全功能。
为新增物品添加了排序分类,包括长矛、战锤、风弹、铜制装备以及马匹和狼的护甲。
更新检查器现在仅建议针对你服务器 Minecraft 版本发布的新版本。
排序仅限于支持的存储容器。熔炉、铁砧、酿造台、马匹物品栏以及其他插件的菜单被排除在外。
修复了 allowed-containers 设置。
修复了堆叠逻辑,使具有不同附魔、名称或自定义数据的物品保持分离。
如果排序失败,添加物品栏恢复功能。
点击空的护甲槽、副手栏或合成槽不再触发排序。
修复了单玩家排序速率限制。
修复了 use-permissions: false 的设置,当禁用权限检查时允许所有玩家进行排序。
修复了拥有 smartsort.inventory.sort 权限的玩家执行 /smartsort inv 和 /smartsort hotbar 的问题。
添加了 nothing-to-sort 和 players-only 消息。这些消息会自动添加到现有配置中。
如何排序
在生存模式或冒险模式下,按住 Shift 并右键点击空白的物品栏槽位即可对该区域进行排序。你也可以通过按住 Shift 并右键点击空白槽位来排序支持的存储容器。
命令在所有游戏模式中均有效,包括创造模式。创造模式玩家应使用命令来整理自己的物品栏和快捷栏。
主物品栏和快捷栏分别排序。
存储容器作为整体进行排序。
启用堆叠时,匹配的物品会堆叠在一起。
物品被分组到类别中,例如武器、工具、护甲、食物和方块。
类别顺序和字母排序可以在配置文件中更改。
支持的容器
箱子、陷阱箱、 barrels(木桶)、潜影盒、末影箱、漏斗、发射器和投掷器。
来自 CMI 和商店插件等插件的菜单被排除在外。
命令
/smartsort inv 或 /ss inv
整理你的主物品栏。
/smartsort hotbar 或 /ss hotbar
整理你的快捷栏。
/smartsort reload 或 /ss reload
重新加载配置文件。
/smartsort help 或 /ss help
显示命令帮助。
权限
当启用 use-permissions 时,你可以允许所有排序操作,或者为玩家提供访问特定物品栏和容器类型的权限。
smartsort.use
允许所有排序。保留此权限以兼容旧版设置。
smartsort.inventory.sort
允许玩家排序其主物品栏和快捷栏。
smartsort.containers.sort
允许排序所有支持的容器类型。
smartsort.containers.chest
允许排序箱子和陷阱箱。
smartsort.containers.barrel
允许排序木桶。
smartsort.containers.shulkerbox
允许排序潜影盒。
smartsort.containers.enderchest
允许排序末影箱。
smartsort.containers.hopper
允许排序漏斗。
smartsort.containers.dispenser
允许排序发射器。
smartsort.containers.dropper
允许排序投掷器。
smartsort.admin
允许重新加载配置和管理员更新通知。
smartsort.*
授予所有 SmartSort 权限。
LuckPerms 权限示例
允许物品栏和快捷栏排序:
/lp user PlayerName permission set smartsort.inventory.sort true
允许容器排序:
/lp user PlayerName permission set smartsort.containers.sort true
仅允许箱子和木桶:
/lp user PlayerName permission set smartsort.containers.chest true
/lp user PlayerName permission set smartsort.containers.barrel true
允许所有排序:
/lp user PlayerName permission set smartsort.use true
对于受限设置,请确保玩家没有从组继承更广泛的 SmartSort 权限。
配置
config.yml 中提供以下设置:
use-permissions:启用或禁用排序的权限检查。
allowed-containers:选择可以排序的支持容器类型。
max-sorting-operations-per-second:限制每个玩家的排序频率。
check-for-updates:启用或禁用更新检查。
disabled-worlds:在选定的世界中禁用排序。
sorting.stack-items:启用或禁用自动堆叠。
sorting.alphabetical:在类别内按字母顺序排序。
sorting.category-order:设置物品类别的顺序。
消息也可以在 config.yml 中更改:
no-permission
no-permission-container
no-permission-inventory
sorted-successfully
sorting-failed
sorting-disabled-world
plugin-reloaded
nothing-to-sort
players-only
更新通知
当有兼容的更新可用时,管理员会收到一个可点击的 Modrinth 下载链接。可以在配置中禁用更新检查。
SmartSort
Sort your inventory and storage containers with a click or command. Items are grouped by type, and matching items stack together. Your hotbar and main inventory stay separate.
Version 2.0.0 is built for Minecraft 26.2 using the Paper API and Java 25.
If SmartSort has been useful on your server, please consider leaving a review or supporting development. Press that HEART! :) Thanks for using my plugin!
What's new in v2.0.0
Updated to Minecraft 26.2, the Paper API, and Java 25.
Updated chat messages and update notices to use Adventure.
Added tab completion for /smartsort.
Added sorting categories for newer items, including spears, maces, wind charges, copper gear, and horse and wolf armor.
The update checker now only suggests newer releases made for your server's Minecraft version.
Sorting is restricted to supported storage containers. Furnaces, anvils, brewing stands, horse inventories, and menus from other plugins are excluded.
Fixed the allowed-containers setting.
Fixed stacking so items with different enchantments, names, or custom data stay separate.
Added inventory restoration if a sort fails.
Clicking empty armor, offhand, or crafting slots no longer triggers sorting.
Fixed the per-player sorting rate limit.
Fixed use-permissions: false so everyone can sort when permission checks are disabled.
Fixed /smartsort inv and /smartsort hotbar for players with only smartsort.inventory.sort.
Added nothing-to-sort and players-only messages. These are added to existing configs automatically.
How to sort
In Survival or Adventure mode, shift+right-click an empty inventory slot to sort that section. You can also sort supported storage containers by shift+right-clicking an empty slot.
Commands work in all game modes, including Creative. Creative players should use commands to sort their inventory and hotbar.
Main inventory and hotbar sort separately.
Storage containers sort as a whole.
Matching items stack together when stacking is enabled.
Items are grouped into categories such as weapons, tools, armor, food, and blocks.
Category order and alphabetical sorting can be changed in the config.
Supported containers
Chests, trapped chests, barrels, shulker boxes, ender chests, hoppers, droppers, and dispensers.
Menus from plugins such as CMI and shop plugins are excluded.
Commands
/smartsort inv or /ss inv
Sort your main inventory.
/smartsort hotbar or /ss hotbar
Sort your hotbar.
/smartsort reload or /ss reload
Reload the configuration.
/smartsort help or /ss help
Show command help.
Permissions
When use-permissions is enabled, you can allow all sorting or give players access to specific inventory and container types.
smartsort.use
Allows all sorting. Kept for compatibility with older setups.
smartsort.inventory.sort
Allows sorting the player's main inventory and hotbar.
smartsort.containers.sort
Allows sorting all supported container types.
smartsort.containers.chest
Allows sorting chests and trapped chests.
smartsort.containers.barrel
Allows sorting barrels.
smartsort.containers.shulkerbox
Allows sorting shulker boxes.
smartsort.containers.enderchest
Allows sorting ender chests.
smartsort.containers.hopper
Allows sorting hoppers.
smartsort.containers.dispenser
Allows sorting dispensers.
smartsort.containers.dropper
Allows sorting droppers.
smartsort.admin
Allows configuration reloads and admin update notifications.
smartsort.*
Grants all SmartSort permissions.
Permission examples with LuckPerms
Allow inventory and hotbar sorting:
/lp user PlayerName permission set smartsort.inventory.sort true
Allow container sorting:
/lp user PlayerName permission set smartsort.containers.sort true
Allow only chests and barrels:
/lp user PlayerName permission set smartsort.containers.chest true
/lp user PlayerName permission set smartsort.containers.barrel true
Allow all sorting:
/lp user PlayerName permission set smartsort.use true
For restricted setups, make sure the player does not also inherit broader SmartSort permissions from a group.
Configuration
The following settings are available in config.yml:
use-permissions: Enable or disable permission checks for sorting.
allowed-containers: Choose which supported container types can be sorted.
max-sorting-operations-per-second: Limit how often each player can sort.
check-for-updates: Enable or disable update checks.
disabled-worlds: Disable sorting in selected worlds.
sorting.stack-items: Enable or disable automatic stacking.
sorting.alphabetical: Sort alphabetically within categories.
sorting.category-order: Set the order of item categories.
Messages can also be changed in config.yml:
no-permission
no-permission-container
no-permission-inventory
sorted-successfully
sorting-failed
sorting-disabled-world
plugin-reloaded
nothing-to-sort
players-only
Update notifications
Admins receive a clickable Modrinth download link when a compatible update is available. Update checks can be disabled in the config.
评论 0
登录后参与评分
还没有评论,来抢沙发吧