Sour Graves
- 防止你的物品在死亡后被删除!
- 无论以何种方式死亡,物品都会被保存!
- 点击坟墓即可取回物品
- 经过计时器后(默认 5 分钟),坟墓将变为公共状态(可被掠夺)
- 经过计时器后(默认 30 分钟),坟墓将被删除,其内的物品会掉落至地面
默认配置
# irishgreencitrus' Sour Graves v2 配置
#
#
##############################################
# 本文件中的注释将在保存时被删除 #
##############################################
#
#
# 自 v1 以来的重要更新:
# - 坟墓现在存储在 `graves.db` 中,而不是 `graves.json`。
# - 如果你已有现有的 `graves.json`,它们应转换为新格式。
# - 还支持 PostgreSQL 和 MySQL 作为外部数据库。
#
# 插件中的所有设置均可完全自定义。
# 如果弄乱了文件,你可以将其删除以重置为默认值。
#
# 一些关键说明:
# - 背包中没有物品的玩家不会生成坟墓。
# - 启用 keepInventory 的玩家不会生成坟墓。
# - 清理任务负责实际删除坟墓,并将坟墓数据保存到磁盘。
# 不应运行频率过低,否则如果服务器崩溃,你的坟墓将无法保存。
# 默认值应该没问题,但可根据需要调整高低。
## 无需手动编辑此项,它仅告知插件是否在更新后重写配置文件。
configVersion = 2
# 经过这么多分钟后,所有玩家都可以访问该坟墓。
# 设置为 `-1` 以禁用此功能。
publicInMinutes = 5
# 经过这么多分钟后,坟墓将被删除。
# 设置为 `-1` 以禁用此功能。
deleteInMinutes = 30
# 每个玩家可以拥有的最大坟墓数量。
# 超过此限制后,玩家将删除其最旧的坟墓。
# 设置为 `-1` 以禁用此限制
maxGravesPerPlayer = 3
# 是否禁止为 PvP 击杀创建坟墓
disableForPvpKills = false
# 当玩家超出最大坟墓数量时,是否掉落最旧坟墓中的物品
dropItemsOnTooManyGraves = true
# 是否在被删除的坟墓中掉落物品。如果为 false,物品将直接消失
dropItemsOnGraveDeletion = true
# 用于坟墓取回动画的粒子效果
recoverParticle = "SOUL"
# 坟墓取回动画中使用的粒子数量
recoverParticleAmount = 1000
# 取回坟墓时播放的声音
recoverSound = "minecraft:block.respawn_anchor.deplete"
# 服务器启动后,第一次坟墓清理应在何时运行
periodicCleanupDelayMinutes = 10
# 坟墓清理运行的频率
periodicCleanupPeriodMinutes = 5
# 是否在玩家重生后向其发送坟墓坐标
notifyCoordsOnRespawn = false
# 如果此项为 `true`,默认的右键点击将打开一个物品栏。
# 你可以使用 Shift+右键点击来正常恢复坟墓。
allowChestLikeGraveAccess = false
# 当 `allowChestLikeGraveAccess` 为 `true` 时,交换普通点击和 Shift 点击的行为
chestAccessSwapNormalAndShift = false
# 是否使用基于旧版 json 的文件存储,而不是新的 SQLite 数据库。
# 我想不出启用它的任何理由,但该功能仍然存在,因此选项也保留。
# 将覆盖 [sql] 中的任何设置。
forceLegacyFileStorage = false
# 坟墓*不会*生成的世界列表。
# 这将导致默认行为,即掉落物品。
# 示例值:['world_nether']
disabledWorlds = [ ]
# 更改 [sql] 选项需要重启服务器。
# 注意:这仅控制支持的 SQL 服务器。
# SQLite 存储默认启用,且不需要任何配置。
[sql]
# 是否启用连接到 SQL 服务器以存储坟墓,而不是使用 JSON 文件。
# 对于创建大量坟墓的大型服务器非常有用。
enable = false
# 支持的 SQL 服务器:MySQL 和 PostgreSQL
# Google 'jdbc connection URL' 以了解在此处填写什么
jdbcConnectionUri = "jdbc:postgres:admin@localhost/sourgraves"
username = "admin"
password = "changeme"
# 软删除意味着所有坟墓数据都将保留在数据库中,并且仅标记为已删除。
# 这提供了额外的防物品丢失保护,并允许完全恢复。
# 禁用此功能不会回溯应用,而只是实际删除更改后创建的坟墓。
softDeletion = true
alreadyConvertedFromJson = true
[economy]
# 是否启用此插件的经济功能(需要安装 VaultUnlocked)
enable = false
# 取回你自己坟墓的费用
graveRecoverCost = 1.0
# 按坟墓或按坟墓中的物品堆计算的费用类型
graveRecoverPaymentType = "FLAT"
# 掠夺他人坟墓的费用
graveRobCost = 5.0
# 按坟墓或按坟墓中的物品堆计算的费用类型
graveRobPaymentType = "FLAT"
# 如果发现日志消息过于侵入性,请更改其中的任何内容。
# 出于设计原因,最严重和警告消息无法禁用。
[logMessages]
# 是否在启动时启用 GitHub 和 Discord 消息。
startupMessage = true
# 是否在每次清理任务运行时进行记录。有助于调试配置。
# 不建议长时间保持开启。
cleanupTask = false
# 如果坟墓未存储其位置,是否进行记录。可能发生在 v1.5.0 之前创建的坟墓中。
# 建议保持启用,因为它只会打印一次。
graveMissingLocation = true
# 如果即将删除的坟墓所在的区块已加载,但盔甲架(玩家头颅)已被删除,则发出警告。
# 这可能表明另一个插件正在删除盔甲架。
armourStandNotFoundOnGravePurge = true
# 如果仍在使用旧版 JSON 存储且拥有超过 100 个坟墓,则在启动时发出警告。
moreThan100GravesWarning = true
权限
sourgraves.admin.server:
description: 允许你使用 `/sourgraves disk` 和 `/sourgraves config`
default: op
sourgraves.admin.settings:
description: 允许你使用 `/sourgraves settings`
default: op
sourgraves.admin.give:
description: 允许你使用 `/sourgraves give`
default: op
sourgraves.player.graveaccess:
description: 拥有此权限的玩家可打开任何墓碑,无论其是否为公开状态。
default: false
sourgraves.player.permaprivate:
description: 拥有此权限的玩家将拥有一个永远不会变为公开的墓碑。
default: false
sourgraves.player.permagraves:
description: 拥有此权限的玩家将拥有一个不会自动过期的墓碑。这不会影响其他导致墓碑删除的情况。
default: false
sourgraves.utils.player:
description: 允许你使用 `/sourgraves player`
default: op
sourgraves.utils.locateown:
description: 允许你使用 `/sourgraves locate`
default: true
发现 Bug、有问题或有功能建议?
加入右侧的 Discord 服务器并给我发消息。
Sour Graves
- Save your items from being deleted after a death!
- Items are always saved no matter how you die!
- Recover items by clicking on the grave
- Graves become public (raidable) after a timer (5 mins by default)
- Graves are deleleted with their items dropped on the ground after a timer (30 mins by default)
Default Configuration
# irishgreencitrus' Sour Graves v2 config
#
#
##############################################
# COMMENTS MADE IN THIS FILE WILL BE DELETED #
##############################################
#
#
# Notable updates since v1:
# - Graves are now stored in `graves.db` instead of `graves.json`.
# - If you have an existing `graves.json`, they should be converted to the new format.
# - Postgres and MySQL are also supported as external databases.
#
# Everything in the plugin is completely configurable.
# If you mess up the file, you can delete it to reset it to the defaults.
#
# Some key notes:
# - A player without any items in their inventory will not drop a grave.
# - A player with keepInventory enabled will not drop a grave.
# - The cleanup task is what actually deletes graves, as well as saves graves to disk.
# It should not be ran too infrequently, as your graves will not be saved if the server crashes.
# The default should probably be fine, but it can be raised or lowered as necessary.
## There is no need to edit this manually, it just tells the plugin whether to rewrite the config after it has been updated.
configVersion = 2
# After this many minutes, the grave will be accessible by all players.
# Set to `-1` to disable this.
publicInMinutes = 5
# After this many minutes, the grave will be deleted.
# Set to `-1` to disable this.
deleteInMinutes = 30
# The maximum number of graves a player can have.
# After this limit, a player's oldest grave will be deleted.
# Set to `-1` to disable this
maxGravesPerPlayer = 3
# Whether to prevent graves being created for PvP kills
disableForPvpKills = false
# Whether to drop the items of the oldest grave once a player has exceeded max graves
dropItemsOnTooManyGraves = true
# Whether to drop the items of a just-deleted grave. If false, the items just disappear
dropItemsOnGraveDeletion = true
# The particle to use for the grave recovery animation
recoverParticle = "SOUL"
# The number of particles to use in the grave recovery animation
recoverParticleAmount = 1000
# The sound to play on grave recovery
recoverSound = "minecraft:block.respawn_anchor.deplete"
# When should the first grave cleanup run, after the server has started
periodicCleanupDelayMinutes = 10
# How frequently the grave cleanup runs
periodicCleanupPeriodMinutes = 5
# Whether to send a player their grave coordinates once they respawn
notifyCoordsOnRespawn = false
# If this is `true`, the default Right-Click will now open an inventory.
# You can use Shift-Right-Click to restore the grave as normal.
allowChestLikeGraveAccess = false
# Swaps the behaviour of normal and shift clicking when `allowChestLikeGraveAccess` is `true`
chestAccessSwapNormalAndShift = false
# Whether to use legacy json-based file storage rather than the new SQLite database.
# I can't think of any reason to enable this, but the functionality remains, so the option also remains.
# Overrides any settings in [sql].
forceLegacyFileStorage = false
# A list of the worlds that graves will *not* spawn in.
# This will lead to the default behaviour i.e. dropping items.
# Example values: ['world_nether']
disabledWorlds = [ ]
# Changing the [sql] options require you to restart the server.
# NOTE: this only controls the supported SQL servers.
# SQLite storage is enabled by default and does not require any configuration.
[sql]
# Whether to enable connecting to a SQL server to store graves, instead of the JSON file.
# Useful for very large servers where a lot of graves are being created.
enable = false
# Supported SQL servers: MySQL and PostgreSQL
# Google 'jdbc connection URL' to find out what to put here
jdbcConnectionUri = "jdbc:postgres:admin@localhost/sourgraves"
username = "admin"
password = "changeme"
# Soft deletion will mean all grave data will stay in the database, and only ever be marked as deleted.
# This provides extra protection against item loss and allows complete recovery.
# Disabling this will not retroactively apply, and merely actually delete graves made after the change.
softDeletion = true
alreadyConvertedFromJson = true
[economy]
# Whether to enable the economy features of this plugin (Requires VaultUnlocked to be installed)
enable = false
# The cost to recover one of your own graves
graveRecoverCost = 1.0
# The cost either per grave or per item stack in the grave
graveRecoverPaymentType = "FLAT"
# The cost to rob someone else's grave
graveRobCost = 5.0
# The cost either per grave or per item stack in the grave
graveRobPaymentType = "FLAT"
# Change anything in here if you find the log messages too invasive.
# Most severe and warning messages cannot be disabled, by design.
[logMessages]
# Whether to enable the GitHub and Discord message on startup.
startupMessage = true
# Whether to log every time the cleanup task runs. Useful for debugging configuration.
# Not recommended to leave on for prolonged periods of time.
cleanupTask = false
# Whether to log if a grave hasn't stored its location. Can occur for graves created before v1.5.0.
# It is recommended to leave this enabled as it will only be printed once anyway.
graveMissingLocation = true
# Gives a warning if a grave that is about to be deleted has its chunk loaded but the armour stand (The player head) has been deleted.
# This could be a sign that another plugin is deleting armour stands.
armourStandNotFoundOnGravePurge = true
# Gives a warning on startup if you are still using legacy JSON storage and have more than 100 graves.
moreThan100GravesWarning = true
Permissions
sourgraves.admin.server:
description: Allows you to use `/sourgraves disk` and `/sourgraves config`
default: op
sourgraves.admin.settings:
description: Allows you to use `/sourgraves settings`
default: op
sourgraves.admin.give:
description: Allows you use `/sourgraves give`
default: op
sourgraves.player.graveaccess:
description: A player with this permission can open any grave, regardless of whether it is public.
default: false
sourgraves.player.permaprivate:
description: A player with this permission will have a grave that never goes public.
default: false
sourgraves.player.permagraves:
description: A player with this permission will have a grave that never expires by itself. This doesn't affect other situations which delete a grave.
default: false
sourgraves.utils.player:
description: Allows you to use `/sourgraves player`
default: op
sourgraves.utils.locateown:
description: Allows you to use `/sourgraves locate`
default: true
Found a bug, have questions or feature requests?
Join the Discord on the right hand side and drop me a message.
评论 0
登录后参与评分
还没有评论,来抢沙发吧