描述

PrisonUtils 是一个插件(正如其名所示),为游戏添加了一些实用的监狱工具。
它还添加了背包,可用于存放物品。
如果您安装了 QuickSell,您还可以出售背包中的所有物品。
如果您安装了 PrisonGems,玩家可以使用宝石通过 /backpacks 命令或 [Backpack] 标志牌购买背包
请提供需要翻译的文本内容。
功能

所有功能均可在配置文件中禁用!
- 自动熔炼
- 当你拥有至少 9 个物品时,自动将其转换为对应的方块形式
- 所有方块均附魔幸运
- 永久药水效果
- 工具不可损坏
- 防止特定伤害来源
- 背包
- 方块直接存入你的背包/背包中
- 与QuickSell的背包集成
- QuickMarket 与背包整合
- 禁用天气变化
- 集成保护插件
- 在名称中显示镐子的拥有者及已破坏的方块数量
- 在物品描述(lore)中显示镐子的拥有者及已破坏的方块数量
- 当破坏一定数量的方块时执行命令
- 在挖掘时自动将物品出售至 QuickSell 商店
- 指定哪些方块掉落经验值(适用于所有方块,不仅限于矿石)
- 自动将经验值添加到经验条中,而不是掉落至地面
配置

mining:
auto-smelt: true ## 指定是否自动熔炼挖掘到的方块
enable-fortune: true ## 你可以启用或禁用幸运附魔对掉落物品数量的影响
straight-to-inventory: true ## 指定挖掘到的物品是否直接放入你的背包/背包栏
backpacks: true ## 指定是否启用背包模组
prefer-backpacks: true ## 指定是否优先将物品放入背包或物品栏
unbreakable-pickaxes: false ## 指定工具在使用时是否会损坏
auto-block: true ## 指定如果你至少有9个,贵重物品是否会自动转化为其方块形式
block-whitelist: ## 嗯,如果你很懒且不想使用保护插件,你可以简单地禁止破坏不在此列表中的方块。请注意,在创造模式下你仍然可以破坏这些方块。你可以通过将其设置为 [] 来禁用此列表
- STONE
- COAL_ORE
- IRON_ORE
- GOLD_ORE
- LAPIS_ORE
- DIAMOND_ORE
- EMERALD_ORE
- QUARTZ_ORE
- COAL_BLOCK
- IRON_BLOCK
- GOLD_BLOCK
- LAPIS_BLOCK
- DIAMOND_BLOCK
- EMERALD_BLOCK
- QUARTZ_BLOCK
- REDSTONE_ORE
- GLOWING_REDSTONE_ORE
- REDSTONE_BLOCK
autosmelt-blacklist: ## 你也可以指定将被排除在自动熔炼之外的方块
- LOG
- LOG_2
block-counter ## 指定是否启用方块计数器,如果没有此项,上述两项设置将不起作用
soulbound-pickaxes: true ## 指定镐子是否为灵魂绑定
soulbound-backpacks: true ## 指定强化背包是否启用
autosell:
summary-every: 100 ## 指定自动出售需要多少次才能发送统计摘要
pickaxe:
name:
enabled: true ## 指定镐子的名称是否会受此插件影响
prefix: '&b{PLAYER}''s ' ## 指定你的镐子前缀
suffix: ' &8[&6{BLOCKSBROKEN} Blocks broken&8]' ## 你的前缀的后缀
## 从 v1.4.5 版本开始,它还支持使用自定义镐子名称。如果你的镐子名称是 "Donator Pick"
## 它将显示为 "mrCookieSlimes's Donator Pick [已破坏 1923 个方块]"
## 如果没有名称,它将显示为 "mrCookieSlimes's Diamond Pickaxe [1923 Blocks broken]"
lore:
enabled: false ## 指定此插件是否将修改镐子的描述
lines:
- '&7Pickaxe Owner: &e{PLAYER}' ## 这里有一些你可以在描述中使用的变量
- '&7Blocks broken: &e{BLOCKSBROKEN}'
- '&7Durability: &e{DURABILITY}'
- ''
## 请注意,这里的描述不会删除任何之前的描述,而是智能地将上述定义的行插入到之前描述的前面
axe:
name:
enabled: true ## 指定此插件是否将影响斧头的名称
prefix: '&b{PLAYER}''s ' ## 指定你斧头的前缀
suffix: ' &8[&6{BLOCKSBROKEN} Blocks broken&8]' ## 前缀的后缀
lore:
enabled: false ## 指定此插件是否将修改斧头的描述
lines:
- '&7Tool Owner: &e{PLAYER}' ## 这里有一些你可以在描述中使用的变量
- '&7Blocks broken: &e{BLOCKSBROKEN}'
- '&7Durability: &e{DURABILITY}'
- ''
shovel:
name:
enabled: true ## 指定此插件是否将影响铲子的名称
prefix: '&b{PLAYER}''s ' ## 指定你铲子的前缀
suffix: ' &8[&6{BLOCKSBROKEN} Blocks broken&8]' ## 前缀的后缀
lore:
enabled: false ## 指定此插件是否将修改铲子的描述
lines:
- '&7Tool Owner: &e{PLAYER}' ## 这里有一些你可以在描述中使用的变量
- '&7Blocks broken: &e{BLOCKSBROKEN}'
- '&7Durability: &e{DURABILITY}'
- ''
full-inventory:
sound: true ## 指定当你的背包已满时是否播放声音
title: true ## 指定当你的背包已满时是否发送标题
actionbar: false ## 指定当你的背包已满时是否通过动作栏发送消息
allow-breaking-blocks: true ## 指定玩家是否在背包已满时仍能破坏方块
silktouch-whitelist: ## 指定哪些方块受精准采集影响
- COAL_ORE-
- WEB
- DIAMOND_ORE
- EMERALD_ORE
- GRASS
- HUGE_MUSHROOM_1
- HUGE_MUSHROOM_2
- ICE
- LAPIS_ORE
- MYCEL
- DIRT
- PACKED_ICE
- QUARTZ_ORE
- REDSTONE_ORE
fortune:
use-whitelist: false ## 是否使用方块白名单
block-whitelist: ## 所有受效率影响的方块,将 use-whitelist 设置为 false 以便将效率应用于所有方块
- COAL_ORE
- REDSTONE_ORE
- GLOWING_REDSTONE_ORE
- LAPIS_ORE
- QUARTZ_ORE
- DIAMOND_ORE
- EMERALD_ORE
world-blacklist: ## 所有效率不生效的世界
- world_nether
level-modifier: 0.6 ## 高级:设置等级的修正值,这将是你的效率等级的乘数,用于确定使用该等级效率可获得的物品最大数量。例如:效率 100 -> 100 * 0.6 = 60 -> 最多获得 60 个物品
min-modifier: 0.2 ## 高级:设置等级的最小修正值,这将是你的效率等级的乘数,用于确定使用该等级效率可获得的物品最小数量。例如:效率 100 -> 100 * 0.2 = 20 -> 至少获得 20 个物品
regions:
use-whitelist: false ## 指定 Fortune 是否仅在特定的 WorldGuard 区域生效
whitelist:
- a
- b
- c
backpacks: ## 你也可以配置背包的名称
name:
normal: '&eBackpack'
soulbound: '&eReinforced Backpack'
environment:
permanent-effects: ## 指定玩家永久拥有的效果
- NIGHT_VISION
- SATURATION
prevented-damage: ## 指定哪些伤害原因会被取消
- FALL
- SUFFOCATION
enable-weather: false ## 指定是否启用/禁用天气
world-blacklist: ## 你也可以指定此插件不生效的世界
- world_the_end
- world_nether
options: ## 如果你不希望此插件自动更新,可以将其关闭
auto-update: true
block-rewards: ## 注意:这里仅在启用了镐子重命名功能时生效
enabled: false ## 指定是否启用挖掘特定数量方块后的奖励
repeating: ## 这些命令将在每挖掘 X 个方块后执行。设置为 [] 以禁用该数量限制
'1': []
standard: ## 当玩家挖掘了特定数量的方块时,将执行以下命令
'100':
- 'say {PLAYER} broke a hundred blocks' ## 此处可以使用变量 {PLAYER}
exp:
whitelist: ## 在此处指定哪些方块会掉落经验值
- COAL_ORE
- REDSTONE_ORE
- GLOWING_REDSTONE_ORE
- LAPIS_ORE
- QUARTZ_ORE
- DIAMOND_ORE
- EMERALD_ORE
auto-exp: true ## 指定经验值是否自动添加到经验条中,而不是掉落在地上
environment:
fly-on-join: false ## 在此处指定玩家加入服务器时是否获得飞行能力
命令/权限

| |
命令 |
|
描述 |
|
权限 |
|
| |
/backpack <Player> <行数> [soulbound] |
|
给予指定玩家一个背包,其容量为指定的行数(作为物品栏)。如果在命令后追加 soulbound,则会给予你一个强化背包 |
|
backpack.cheat |
|
| |
/autosell |
|
切换挖矿时自动出售物品的功能。需要 QuickSell |
|
PrisonUtils.autosell |
|
| |
|
|
允许你在挖矿时自动拾取物品 |
|
PrisonUtils.autopickup |
|
| |
|
|
允许你在挖矿时自动熔炼物品 |
|
PrisonUtils.autosmelt |
|
| |
|
|
允许你在挖矿时将矿石自动打包回其方块形态 |
|
PrisonUtils.autoblock |
|
开发者 API

PrisonUtils 提供了一个轻量级的 API,供开发者用于为 PrisonUtils 创建自定义插件。
API 文档
自动更新与指标统计

我所有的插件都使用了自动更新功能,以确保您始终
使用的是最新版本,并且尽可能减少 bug。
如果您不希望此插件自动更新,可以在配置文件中将其关闭
"options -> auto-update: true/false"
它们还使用了一个指标系统,收集以下信息:
唯一标识符
服务器的 Java 版本
服务器是否处于离线或在线模式
插件的版本
服务器的版本
操作系统版本/名称及架构
CPU 的核心数
在线玩家数量
指标系统的版本
可以通过编辑
plugins/Plugin Metrics/config.yml 并将 opt-out 设置为 true 来退出该服务。
Description

PrisonUtils is a Plugin which (as the name already suggests) adds a couple
of useful Prison Utilities to the game.
It also adds Backpacks which can be used to store items.
If you have QuickSell installed, you can also sell all Items which are inside
your Backpack.
if you have PrisonGems installed, players can purchase Backpacks
using Gems via /backpacks or [Backpack] Signs
Features

Every Feature can be disabled in the Config!
- Auto-Smelting
- Automatically tranform Items into their Block Form if you have at least 9 of them
- Fortune on all Blocks
- Permanent Potion Effects
- Unbreakable Tools
- Preventing specific Damage Causes
- Backpacks
- Blocks go straight to your Inventory/Backpack
- QuickSell Integration with Backpacks
- QuickMarket Integration with Backpacks
- Disable Weather
- Integrated Protection Plugin
- Displaying the Owner of the Pickaxe and the amount of blocks broken in the name
- Displaying the Owner of the Pickaxe and the amount of blocks broken in the lore
- Executing commands when a certain amount of blocks broken is reached
- Automatically sell Items to a QuickSell Shop when mining
- Specify what Blocks drop EXP (works for all Blocks, not only Ores)
- Automatically add EXP to your XP Bar instead of dropping it on the ground
Configuration

mining:
auto-smelt: true ## Specify whether it automatically smelts mined Blocks
enable-fortune: true ## You can enable/disable whether Fortune has an impact on the amount of dropped Items
straight-to-inventory: true ## Specify whether mined Items go straight to your Inventory/Backpack
backpacks: true ## Specify whether Backpacks are enabled
prefer-backpacks: true ## Specify whether it will prefer to put Items into the Backpack or Inventory
unbreakable-pickaxes: false ## Specify whether Tools take damage when being used
auto-block: true ## Specify whether Valuables automatically get turned into their Block Form if you have at least 9
block-whitelist: ## Well, if you are lazy and don't want a protection plugin, you can simply disable breaking blocks which are NOT in this list. Note here that in Creative Mode you will still be able to break those. And you can disable this list by setting it to []
- STONE
- COAL_ORE
- IRON_ORE
- GOLD_ORE
- LAPIS_ORE
- DIAMOND_ORE
- EMERALD_ORE
- QUARTZ_ORE
- COAL_BLOCK
- IRON_BLOCK
- GOLD_BLOCK
- LAPIS_BLOCK
- DIAMOND_BLOCK
- EMERALD_BLOCK
- QUARTZ_BLOCK
- REDSTONE_ORE
- GLOWING_REDSTONE_ORE
- REDSTONE_BLOCK
autosmelt-blacklist: ## You can also specify Blocks that will be excluded from Autosmelting
- LOG
- LOG_2
block-counter ## Specify whether the Block Counter is enabled, without this the above 2 settings wont work
soulbound-pickaxes: true ## Specify whether Pickaxes are soulbound
soulbound-backpacks: true ## Specify whether Reinforced Backpacks are enabled
autosell:
summary-every: 100 ## Specify the amount of times AutoSell sold Items required for it to send a Stats Summary
pickaxe:
name:
enabled: true ## Specify whether the Pickaxes Name will be affected by this Plugin
prefix: '&b{PLAYER}''s ' ## Specify the Prefix of your Pickaxe
suffix: ' &8[&6{BLOCKSBROKEN} Blocks broken&8]' ## The Suffix of your Prefix
## Since v1.4.5 it also allows custom Pickaxe Names to be used. If your Pickaxe Name is "Donator Pick"
## it will look like the following "mrCookieSlimes's Donator Pick [1923 Blocks broken]"
## if it has no Name it will look like this "mrCookieSlimes's Diamond Pickaxe [1923 Blocks broken]"
lore:
enabled: false ## Specify whether the Pickaxes Lore will be modified by this Plugin
lines:
- '&7Pickaxe Owner: &e{PLAYER}' ## Here are some Variables you can use in the Lore
- '&7Blocks broken: &e{BLOCKSBROKEN}'
- '&7Durability: &e{DURABILITY}'
- ''
## Note here that this Lore will NOT delete any previous Lore, it will smartly modify it by putting the above defined Lines in front of the previous Lore
axe:
name:
enabled: true ## Specify whether the Axe Name will be affected by this Plugin
prefix: '&b{PLAYER}''s ' ## Specify the Prefix of your Axe
suffix: ' &8[&6{BLOCKSBROKEN} Blocks broken&8]' ## The Suffix of your Prefix
lore:
enabled: false ## Specify whether the Axe Lore will be modified by this Plugin
lines:
- '&7Tool Owner: &e{PLAYER}' ## Here are some Variables you can use in the Lore
- '&7Blocks broken: &e{BLOCKSBROKEN}'
- '&7Durability: &e{DURABILITY}'
- ''
shovel:
name:
enabled: true ## Specify whether the Shovel Name will be affected by this Plugin
prefix: '&b{PLAYER}''s ' ## Specify the Prefix of your Shovel
suffix: ' &8[&6{BLOCKSBROKEN} Blocks broken&8]' ## The Suffix of your Prefix
lore:
enabled: false ## Specify whether the Shovel Lore will be modified by this Plugin
lines:
- '&7Tool Owner: &e{PLAYER}' ## Here are some Variables you can use in the Lore
- '&7Blocks broken: &e{BLOCKSBROKEN}'
- '&7Durability: &e{DURABILITY}'
- ''
full-inventory:
sound: true ## Specify whether a Sound will be played when your Inventory is full
title: true ## Specify whether a Title will be sent when your Inventory is full
actionbar: false ## Specify whether a Message using the ActionBar will be sent when your Inventory is full
allow-breaking-blocks: true ## Specify whether Players are still able to break Blocks with a full Inventory
silktouch-whitelist: ## Specify which Blocks are affected by Silk Touch
- COAL_ORE-
- WEB
- DIAMOND_ORE
- EMERALD_ORE
- GRASS
- HUGE_MUSHROOM_1
- HUGE_MUSHROOM_2
- ICE
- LAPIS_ORE
- MYCEL
- DIRT
- PACKED_ICE
- QUARTZ_ORE
- REDSTONE_ORE
fortune:
use-whitelist: false ## Whether the Block Whitelist will be used
block-whitelist: ## All Blocks Fortune has an Effect on, set use-whitelist to false in order to apply Fortune to every Block
- COAL_ORE
- REDSTONE_ORE
- GLOWING_REDSTONE_ORE
- LAPIS_ORE
- QUARTZ_ORE
- DIAMOND_ORE
- EMERALD_ORE
world-blacklist: ## All Worlds where Fortune will not work
- world_nether
level-modifier: 0.6 ## ADVANCED Set the Modifier for Levels, this will be the multiplier for the fortune level you have in order to determine the max amount of items obtainable using that level of fortune. E.G. Fortune 100 -> 100 * 0.6 = 60 -> At most 60 Items
min-modifier: 0.2 ## ADVANCED Set the min. Modifier for Levels, this will be the multiplier for the fortune level you have in order to determine the min amount of items obtainable using that level of fortune. E.G. Fortune 100 -> 100 * 0.2 = 20 -> At least 20 Items
regions:
use-whitelist: false ## Specify whether Fortune only works in certain WorldGuard Regions
whitelist:
- a
- b
- c
backpacks: ## You can also configure the Names of the Backpacks
name:
normal: '&eBackpack'
soulbound: '&eReinforced Backpack'
environment:
permanent-effects: ## Specify which Effects Players permanently have
- NIGHT_VISION
- SATURATION
prevented-damage: ## Specify which Damage Causes are cancelled
- FALL
- SUFFOCATION
enable-weather: false ## Specify whether Weather is enabled/disabled
world-blacklist: ## You can also specify worlds where this Plugin will not take affect
- world_the_end
- world_nether
options: ## And if you don't want this Plugin to automatically update, you can simply turn it off
auto-update: true
block-rewards: ## Note here that this only works if you have pickaxe renaming enabled
enabled: false ## Specify whether rewards for breaking a certain amount of Blocks are enabled
repeating: ## Those commands will get executed every X blocks broken. Set it to [] to disable that amount
'1': []
standard: ## Those commands will get executed whenever a Player breaks that certain amount of Blocks
'100':
- 'say {PLAYER} broke a hundred blocks' ## The Variable {PLAYER} can be used here
exp:
whitelist: ## Here you can specify what Blocks drop EXP
- COAL_ORE
- REDSTONE_ORE
- GLOWING_REDSTONE_ORE
- LAPIS_ORE
- QUARTZ_ORE
- DIAMOND_ORE
- EMERALD_ORE
auto-exp: true ## Specify whether EXP automatically gets added to your XP bar instead of being dropped on the ground
environment:
fly-on-join: false ## Here you can specify whether Players will be granted the ability to fly when they join the server
Commands/Permissions

| |
Command |
|
Description |
|
Permission |
|
| |
/backpack <Player> <Amount of Rows> [soulbound] |
|
Gives the specified Player a Backpack which is capable of holding the specified amount of Rows as an Inventory. If you append soulbound to the command, it will give you a reinforced Backpack |
|
backpack.cheat |
|
| |
/autosell |
|
Toggles the automatically selling of Items when mining. Requires QuickSell |
|
PrisonUtils.autosell |
|
| |
|
|
Allows you to automatically pickup items as you mine |
|
PrisonUtils.autopickup |
|
| |
|
|
Allows you to automatically smelt items as you mine |
|
PrisonUtils.autosmelt |
|
| |
|
|
Allows you to automatically package Ores into their Block form as you mine |
|
PrisonUtils.autoblock |
|
Developer API

PrisonUtils allows a lightweight API for Developers to be used in order to create custom Addons for PrisonUtils.
API Documentation
Auto-Updater and Metrics

All my Plugins are using an Auto-Updater to make sure, you're always
using the latest and hopefully most bug free version of my Plugin.
If you don't want this Plugin to be auto-updated, you can turn it off
in the config file at "options -> auto-update: true/false"
They also use a Metrics-System which collects the following Informations:
A unique identifier
The server's version of Java
Whether the server is in offline or online mode
The plugin's version
The server's version
The OS version/name and architecture
The core count for the CPU
The number of players online
The Metrics version
Opting out of this service can be done by editing
plugins/Plugin Metrics/config.yml and changing opt-out to true.
评论 0
登录后参与评分
还没有评论,来抢沙发吧