ChestRestack
一个适用于 Spigot 服务器的插件,允许玩家通过 Shift+点击将物品存入箱子。
常规信息
作者:Tonnanto
当前版本:1.0
下载该插件,并在 SpigotMC 和 Bukkit 上查看项目页面。
工作原理
Shift+点击箱子
操作非常简单。
Shift+左键点击箱子,你背包中所有已存在于该箱子里的物品都会被移入其中。
你无需打开箱子或自己的背包。
这使得在采矿活动或其他类型的探险结束后清空背包变得直观且高效。
只需点击储物间里的每个箱子,你的背包很快就会变得整洁有序。
个性化玩家偏好
ChestRestack 还允许每位玩家调整各自的偏好设置,以定制功能以满足个人需求。
要查看和配置偏好设置,请使用 /cr prefs 命令。
这些偏好包括以下内容:
- 堆叠后是否对箱子进行排序?
- 是否移动快捷栏中的物品?
- 是否移动工具和武器?
- 是否移动护甲?
- 是否移动箭矢和火箭?
- 是否移动食物?
- 是否移动药水?
- 是 Shift+右键还是 Shift+左键触发此功能?
- 或者完全禁用该功能?
命令
本插件的所有命令均以 /chestrestack 或其较短的别名 /restack 或 /cr 开头。
/cr help - 显示帮助菜单,解释插件及所有命令
/cr <disable | enable> - 为单个玩家禁用或启用插件
/cr prefs - 显示玩家偏好设置的交互式聊天菜单
/cr prefs sorting - 切换堆叠后是否对箱子进行排序
/cr prefs clickmode <shift-left | shift-right> - 选择用于堆叠的点击模式
/cr prefs reset - 恢复默认偏好设置
/cr prefs <tools | armor | arrows | food | potions> - 启用或禁用特定物品的堆叠
管理员命令:
/cr reload - 重新加载插件及其配置文件。
配置
config.yml
# This is the config file for ChestRestack.
# This config was generated for version 1.0
# You can delete this file to regenerate the default config on server reload.
# GENERAL
# Whether the chest will be sorted after moving items
# Disabling this globally will disable it for all players independent of their individual preferences.
# I only recommend disabling this if you use a different plugin for sorting of inventories.
sorting-enabled-global: true
# Whether a sound should be played when items are restacked
restack-sound: true
# Set the locale for the plugin.
# Contact me if you would like to have your language supported. You might need to help with translations.
# Available locales:
# en: English, de: German
locale: en
# Whether new updates should be announced to admins and in the console.
# Updating to the newest version is always recommended unless the new version is not compatible with your server.
check-for-updates: true
# DEFAULT PLAYER PREFERENCES
# Each player can overwrite their own preferences using commands
# These are the default values the preferences will have when they first join or when they reset their preferences
# Whether the chest will be sorted after moving items
# Can be over by sorting-enabled-global
sorting-enabled-default: true
# The click-mode that triggers the restacking action
# shift-left | shift-right
click-mode-default: shift-left
# Whether items from the hotbar should be restacked or ignored by default
move-from-hotbar-default: true
# Whether tools and weapons should be restacked or ignored by default
move-tools-default: false
# Whether armor should be restacked or ignored by default
move-armor-default: true
# Whether arrows and rockets should be restacked or ignored by default
move-arrows-default: true
# Whether food should be restacked or ignored by default
move-food-default: true
# Whether potions should be restacked or ignored by default
move-potions-default: true
许可证
Copyright (C) 2024, Anton Stamme
ChestRestack 是自由软件:你可以依据自由软件基金会发布的 GNU 通用公共许可证(第 3 版或更高版本)对其进行重新分发和/或修改。
ChestRestack 分发的希望是它会有用,但不做任何保证;甚至没有隐含的适销性或特定用途适用性的保证。有关更多详细信息,请参阅 GNU 通用公共许可证。
你应该已经收到了一份 GNU 通用公共许可证副本,随 ChestRestack 一起提供。如果没有,请访问 查看。
ChestRestack
A plugin for Spigot servers that allows players to move items into their chests by shift-clicking them.
General
Author: Tonnanto
Current Version: 1.0
Download the plugin and find the Project Page on SpigotMC and Bukkit.
How it works
Shift-click a chest
Its dead simple.
Shift-left click on a chest, and all items from your inventory that are already present in the chest will be moved into the chest.
You do not have to open the chest, nor your inventory.
This makes it straightforward and efficient to unload your inventory after a mining session or any other kind of expedition.
Just click on every chest in your storage room, and your inventory will be clutter-free in no time.
Individual Player Preferences
ChestRestack also gives every player the option to adjust their individual preferences to tailor the functionality to suit their needs.
To view and configure preferences, use the /cr prefs command.
These preferences include the following:
- Should the chest be sorted after restacking?
- Should items from the hotbar be moved?
- Should tools and weapons be moved?
- Should armor be moved?
- Should arrows and rockets be moved?
- Should food items be moved?
- Should potions be moved?
- Should shift-right or shift-left click trigger the functionality?
- Or should the feature be disabled entirely?
Commands
All commands for this plugin start with /chestrestack or its shorter aliases /restack or /cr
/cr help - Shows a Help Menu that explains the plugin and all commands
/cr <disable | enable> - Disables or enables the plugin for an individual player
/cr prefs - Show an interactive chat-menu of the player's preferences
/cr prefs sorting - Toggle whether chests should be sorted after restacking
/cr prefs clickmode <shift-left | shift-right> - Choose a click-mode for restacking
/cr prefs reset - Restore the default preferences
/cr prefs <tools | armor | arrows | food | potions> - Enable or disable restacking of certain items
Admin Command:
/cr reload - reloads the plugin and its configuration.
Configuration
config.yml
# This is the config file for ChestRestack.
# This config was generated for version 1.0
# You can delete this file to regenerate the default config on server reload.
# GENERAL
# Whether the chest will be sorted after moving items
# Disabling this globally will disable it for all players independent of their individual preferences.
# I only recommend disabling this if you use a different plugin for sorting of inventories.
sorting-enabled-global: true
# Whether a sound should be played when items are restacked
restack-sound: true
# Set the locale for the plugin.
# Contact me if you would like to have your language supported. You might need to help with translations.
# Available locales:
# en: English, de: German
locale: en
# Whether new updates should be announced to admins and in the console.
# Updating to the newest version is always recommended unless the new version is not compatible with your server.
check-for-updates: true
# DEFAULT PLAYER PREFERENCES
# Each player can overwrite their own preferences using commands
# These are the default values the preferences will have when they first join or when they reset their preferences
# Whether the chest will be sorted after moving items
# Can be over by sorting-enabled-global
sorting-enabled-default: true
# The click-mode that triggers the restacking action
# shift-left | shift-right
click-mode-default: shift-left
# Whether items from the hotbar should be restacked or ignored by default
move-from-hotbar-default: true
# Whether tools and weapons should be restacked or ignored by default
move-tools-default: false
# Whether armor should be restacked or ignored by default
move-armor-default: true
# Whether arrows and rockets should be restacked or ignored by default
move-arrows-default: true
# Whether food should be restacked or ignored by default
move-food-default: true
# Whether potions should be restacked or ignored by default
move-potions-default: true
License
Copyright (C) 2024, Anton Stamme
ChestRestack is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ChestRestack is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ChestRestack. If not, see .
评论 0
登录后参与评分
还没有评论,来抢沙发吧