Вопрос ProtectionStones | Не удаляется приват и голограмма после уничтожения блока привата

Ядро
Paper

Porfaw

Пользователь
Сообщения
67
Плагин
ProtectionStones
Ядро сервера
  1. Spigot
  2. Paper
  3. Purpur
Версия сервера
  1. 1.19
Память сервера ОЗУ
12Gb
Ссылка
https://www.spigotmc.org/resources/protectionstones-updated-for-1-21.61797/
В моём плагине ProtectionStones (есть аддон PSAddon) почему-то после того как игрок сломал блок привата, то приват остаётся и голограмма над блоком привата тоже. Дело в том, что находясь в регионе /ps info не видит регион и пишет, что якобы региона нет, а если смотреть через плагин WorldGuard /rg info, то он показывает, что регион есть (WorldGuard видит регион, в то время как ProtectionStones не видит его, хотя по факту регион есть).

Как исправить проблему? Вроде конфигурация настроена верно, не могу понять в чём дело.
Мне нужно сделать так чтобы, когда игрок ломал блок привата, то приват и голограмма удалялись.

Ниже предоставлена конфигурация ProtectionStones, PSAddon и одного из блоков привата ProtectionStones

ProtectionStones/config.toml

Код:
# Please do not change the config version unless you know what you are doing!
config_version = 15
uuidupdated = true

# ---------------------------------------------------------------------------------------
# Protection Stones Config
# Block configs have been moved to the blocks folder.
# To make new blocks, copy the default "block1.toml" and make another file (ex. "block2.toml")
# Does your config look messy? It's probably because of gradual config updates. Consider using the default configs.
# If you need the default configs again, you can get it from here: https://github.com/espidev/ProtectionStones/tree/master/src/main/resources
# ---------------------------------------------------------------------------------------

# Cooldown between placing protection blocks (in seconds). -1 to disable.
placing_cooldown = -1

# Set to true to not block server startup for loading the UUID cache.
# /ps add and /ps remove will not work for offline players until the cache is finished loading.
async_load_uuid_cache = false

# Whether or not to allow regions to have identical names (from /ps name).
# If this is set to true, players will have to use numbers after the name if they encounter duplicates.
allow_duplicate_region_names = false

# Time in seconds between /ps view attempts.
# Can prevent lag from spamming the command.
ps_view_cooldown = 3

# Base command for protection stones (change if conflicting with other commands)
base_command = "ps"

# Aliases for the command
aliases = [
    "pstone",
    "protectionstone",
    "protectionstones"
]

# Whether or not to drop items on the ground if the inventory is full (ex. during /ps unclaim)
# If set to false, the event will be prevented from happening, and say that inventory is full
drop_item_when_inventory_full = true

# Whether or not regions placed have to be either next to or overlapping existing regions the player already owns.
# This can make the world cleaner and have less scattered regions.
# Set the number of regions of non-adjacent regions with the permission protectionstones.region.adjacent.x (default is 1, -1 to bypass)
# Also can bypass with protectionstones.admin
regions_must_be_adjacent = false

# Whether or not to give players the option to merge new regions with ones they already own (overlapping)
# to create a new large region. Can merge any regions with protectionstones.admin
# Requires the permission protectionstones.merge to use (with /ps merge)
# NOTE: Due to the limitations of WorldGuard, merged regions will ignore y_radius and go from bedrock to sky
# since polygon regions can only be 2D, not 3D
allow_merging_regions = true

# Whether or not to allow merged regions to have holes in them (merging a bunch of regions in a circle with the inside not protected).
# This is only checked during the merge process, it will not unmerge regions with holes already.
allow_merging_holes = true

# Whether when players join, by default they have protection block placement toggled off (equivalent to running /ps toggle)
default_protection_block_placement_off = false

# If you do not have LuckPerms, ProtectionStones is unable to determine the limits of offline players (since it depends
# on permissions), and so it requires players to be online. Set this to true if your server does not need limits (and so
# the check is unnecessary).
allow_addowner_for_offline_players_without_lp = false

[admin]
    # Whether /ps admin cleanup remove should delete regions that have members, but don't have owners (after inactive
    # owners are removed).
    # Regions that have no owners or members will be deleted regardless.
    cleanup_delete_regions_with_members_but_no_owners = true

[economy]
    # Set limits on the price for renting. Set to -1 to disable.
    max_rent_price = -1.0
    min_rent_price = 1.0

    # Set limits on the period between rent payments, in seconds (86400 seconds = 1 day). Set to -1 to disable.
    max_rent_period = -1
    min_rent_period = 1

    # Set taxes on regions.
    # Taxes are configured in each individual block config.
    # Whether or not to enable the tax command.
    # If you already have regions, you may want to set each one to have an autopayer (player that automatically pays taxes).
    # This can be done with /ps admin settaxautopayers, which updates every region on the server with an autopayer from their owners list.
    tax_enabled = false

    # Notify players of outstanding tax payments for the regions they own.
    tax_message_on_join = true

# Лимиты регионов для групп LuckPerms
max_region_count_per_player = [
    { group = "default", limit = 1 },
    { group = "elite", limit = 5 },
    { group = "straj", limit = 7 },
    { group = "geroy", limit = 9 },
    { group = "knaz", limit = 11 },
    { group = "shtorm", limit = 13 },
    { group = "ender", limit = 15 },
    { group = "blaze", limit = 17 },
    { group = "vizer", limit = 19 },
    { group = "fantom", limit = 20 },
    { group = "dhelper", limit = 25 },
    { group = "dmoder", limit = 30 },
    { group = "dadmin", limit = -1 },
]

[region]
allow_tnt = true

/ /diamond.toml

Код:
type = "DIAMOND_BLOCK"
alias = "diamond"
description = "Приват алмазным блоком (10x10x10)"
restrict_obtaining = false
world_list_type = "blacklist"
worlds = []
prevent_block_place_in_restricted_world = true
allow_placing_in_wild = true

[region]
distance_between_claims = -1
x_radius = 5
y_radius = 5
z_radius = 5
x_offset = 0
y_offset = 0
z_offset = 0
home_x_offset = 0.0
home_y_offset = 1.0
home_z_offset = 0.0
flags = [
    "tnt allow",
    "other-explosion allow",
    "-g nonmembers block-break deny",
    "-g nonmembers block-place deny",
    "-g nonmembers chest-access deny",
    "-g nonmembers use deny",
    "pvp allow",
    "greeting &lВход на территорию &b&l%player%",
    "farewell &lВыход с территории &b&l%player%",
]
allowed_flags = []
hidden_flags_from_info = [
    "ps-name",
    "ps-merged-regions",
    "ps-block-material",
    "ps-price",
]
priority = 0
allow_overlap_unowned_regions = false
allow_other_regions_to_overlap = "owner"
allow_merging = true
allowed_merging_into_types = [ "all" ]

[block_data]
display_name = "&b&lАлмазный приват &r(10x10x10)"
lore = [
    "&7Поставьте блок, чтобы защитить",
    "&7территорию размером 10x10x10",
]
price = 0.0
allow_craft_with_custom_recipe = false
custom_recipe = []
recipe_amount = 1

[economy]
tax_amount = 0.0
tax_period = -1
tax_payment_time = 86400
start_with_tax_autopay = true
tenant_rent_role = "member"
landlord_still_owner = true

[behaviour]
auto_hide = false
auto_merge = false
no_drop = false
prevent_piston_push = true
prevent_explode = false
destroy_region_when_explode = true
prevent_silk_touch = false
cost_to_place = 0.0
allow_smelt_item = false
allow_use_in_crafting = false

[player]
allow_shift_right_break = false
prevent_teleport_in = false
no_moving_when_tp_waiting = true
tp_waiting_seconds = 0
prevent_ps_get = false
prevent_ps_home = false
permission = ""

[event]
enable = false
on_region_create = []
on_region_destroy = []

/config.yml

Код:
# Имеется поддержка HEX цветов для версий 1.16 и выше
# Для создания градиента и HEX цветов, используйте сайт https://rgb.birdflop.com/
disable-worlds: []
 # - disable-world
blacklist-break-block: []
 # - SPAWNER

# Настройки из блока settings применяют только на регионы из ProtectionStones (WorldGuard игнорируется)
apply-settings-only-protectionstones: false

# Позволяет ставить блоки, которые являются блоками региона, не создавая регион, если зажат Shift
place-block-without-region-on-shift: false

# Настройки, которые распространяются на все регионы (Кроме тех, что в мирах из черного списка)
# Чтобы настройка была разной для всех блоков привата - закомментируйте её в settings.(Настройка) и настройте в blocks.(Блок).settings
#
# exclusion-explosions-types - Исключения взрывов.
#  Работает это так: Если взрывы выключены, то этот лист служит белым списком, внесённые в него взрывы будут работать
#  Если взрывы включены, то этот лист станет черным списком, внесённые в него взрывы не будут работать
#  Принимаемые значения: WITHER_SKULL, PRIMED_TNT, CREEPER, ENDER_CRYSTAL, FIREBALL, MINECART_TNT
settings:
  #create-lightning-strike: true   # Удар молнии при создании региона
  #delete-lightning-strike: true   # Удар молнии при удалении региона
  #merge-regions: true             # Запрещать ли слияние регионов
  #block-piston: true              # Двигать блоки поршнями в регионах
  #explosions: true                # Включить или выключить все взрывы
  #exclusion-explosions-types: []  # Вайтлист/Блеклист типов взрывов
  #use-spawn-eggs: true            # Можно ли спавнить мобов яйцами призыва
  #falling-block-allow: true       # Разрешить ли засыпать регионы падающими блоками (Песок, гравий, сухой бетон)
  #destroy-block-region: false     # Позволяет взрывать блоки региона (С удалением блока, голограммы и региона)
  #block-change-wither: true       # Позволяет визеру ломать блоки телом
  #hook-up-mine-cart-hopper: true  # Использование удочки на вагонетки с воронкой
  #open-mine-cart-hopper: true     # Открытие вагонетки с воронкой
  #item-move-to-mine-cart-hopper: true # Перемещение предметов в вагонетку с воронкой

message:
  # Сообщение, когда регионы пересекаются
  overlapping: "&cВаш регион пересекается с другим регионом!"
  place-block-without-region: "Вы поставили блок без региона, так как нажат шифт"

# Чтобы добавить больше блоков - копируем блок EMERALD_ORE,
# Вставляем ниже и меняем EMERALD_ORE на свой блок, а настройки под свои нужды для этого блока
blocks:
  # Указываем тип блока, указанный в ProtectionStones
  EMERALD_ORE:
    holograms:
      # Будет ли голограмма над блоком
      enable: true
      # Высота голограммы, нужно для добавления строк
      height: 1.75
      # Текст голограмм
      lines:
        - '#fb1f3aБ#fb2937о#fb3234л#fc3c31ь#fc452eш#fc4f2bо#fc5928й #fc6224п#fc6c21р#fd751eи#fd7f1bв#fd8818а#fd9215т'
        - '&fВладелец: &6%player%'
    # Общие настройки блока
    settings:
      create-lightning-strike: false   # Удар молнии при создании региона
      delete-lightning-strike: true   # Удар молнии при удалении региона
      merge-regions: true             # Запрещать ли слияние регионов
      block-piston: true              # Двигать блоки поршнями в регионах
      explosions: true                # Включить или выключить все взрывы
      exclusion-explosions-types: []  # Вайтлист/Блеклист типов взрывов
      use-spawn-eggs: true            # Можно ли спавнить мобов яйцами призыва
      falling-block-allow: true       # Разрешить ли засыпать регионы падающими блоками (Песок, гравий, сухой бетон)
      destroy-block-region: true      # Позволяет взрывать блоки региона (С удалением блока, голограммы и региона)
      block-change-wither: true       # Позволяет визеру ломать блоки телом
      hook-up-mine-cart-hopper: true  # Использование удочки на вагонетки с воронкой
      open-mine-cart-hopper: true     # Открытие вагонетки с воронкой
      item-move-to-mine-cart-hopper: true # Перемещение предметов в вагонетку с воронкой

  DIAMOND_ORE:
    holograms:
      enable: true
      height: 1.75
      lines:
        - '#00ff7fС#20ff8fр#40ff9fе#60ffafд#80ffbfн#9fffcfи#bfffdfй #dfffefп#ffffffр#dfffefи#bfffdfв#9fffcfа#80ffbfт'
        - '&fВладелец: &b%player%'
    settings:
      create-lightning-strike: true
      delete-lightning-strike: true
      merge-regions: true
      block-piston: true
      explosions: true
      exclusion-explosions-types: []
      use-spawn-eggs: true
      falling-block-allow: true
      destroy-block-region: true
      block-change-wither: true
      hook-up-mine-cart-hopper: true
      open-mine-cart-hopper: true
      item-move-to-mine-cart-hopper: true

  DIAMOND_BLOCK:
    holograms:
      enable: true
      height: 1.75
      lines:
        - '#00ffffМ#00e5ffа#00ccffл#00b2ffе#0099ffн#007fffь#0066ffк#004cffи#0032ffй #0019ffп#0000ffр#0019ffи#0032ffв#004cffа#0066ffт'
        - '&fВладелец: #84f0fb%player%'
    settings:
      create-lightning-strike: true
      delete-lightning-strike: true
      merge-regions: true
      block-piston: true
      explosions: true
      exclusion-explosions-types: []
      use-spawn-eggs: true
      falling-block-allow: true
      destroy-block-region: true
      block-change-wither: true
      hook-up-mine-cart-hopper: true
      open-mine-cart-hopper: true
      item-move-to-mine-cart-hopper: true

  IRON_BLOCK:
    holograms:
      enable: true
      height: 1.75
      lines:
        - '#7cfc00М#80ff00а#84ff00л#88ff00е#8cff00н#90ff00ь#94ff00к#98ff00и#9cff00й #a0ff00п#a4ff00р#a8ff00и#acff00в#b0ff00а#b4ff00т'
        - '&fВладелец: #afafaf%player%'
    settings:
      create-lightning-strike: true
      delete-lightning-strike: true
      merge-regions: true
      block-piston: true
      explosions: true
      exclusion-explosions-types: []
      use-spawn-eggs: true
      falling-block-allow: true
      destroy-block-region: true
      block-change-wither: true
      hook-up-mine-cart-hopper: true
      open-mine-cart-hopper: true
      item-move-to-mine-cart-hopper: true

  ANCIENT_DEBRIS:
    holograms:
      enable: true
      height: 1.75
      lines:
        - '#8a2be2С#9145e6к#9f5febр#ae79efы#bc93f3т#cbaef8ы#d9c8fcй #e8e2ffп#f0e8ffр#f8eeffи#ffffffв#f8eeffа#f0e8ffт'
        - '&fВладелец: &7%player%'
    settings:
      create-lightning-strike: true
      delete-lightning-strike: true
      merge-regions: true
      block-piston: true
      explosions: true
      exclusion-explosions-types: []
      use-spawn-eggs: true
      falling-block-allow: true
      destroy-block-region: true
      block-change-wither: true
      hook-up-mine-cart-hopper: true
      open-mine-cart-hopper: true
      item-move-to-mine-cart-hopper: true

  RED_MUSHROOM_BLOCK:
    holograms:
      enable: true
      height: 1.75
      lines:
        - '#ff0000Н#ff1a1aе#ff3333в#ff4d4dи#ff6666д#ff8080и#ff9999м#ffb3b3ы#ffccccй #ffe5e5п#ffe5e5р#ffccccи#ffb3b3в#ff9999а#ff8080т'
        - '&fВладелец: &c%player%'
    settings:
      create-lightning-strike: true
      delete-lightning-strike: true
      merge-regions: true
      block-piston: true
      explosions: true
      exclusion-explosions-types: []
      use-spawn-eggs: true
      falling-block-allow: true
      destroy-block-region: true
      block-change-wither: true
      hook-up-mine-cart-hopper: true
      open-mine-cart-hopper: true
      item-move-to-mine-cart-hopper: true
 
Назад
Сверху Снизу