PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
54 stars 21 forks source link

Thirst bar / hud not showing correctly #4140

Open ciliomine opened 1 day ago

ciliomine commented 1 day ago

Terms

Discord Username (optional)

No response

What happened?

I have been doing several tests with the thirst system for a week now and I came to the conclusion that it is a bug

It always seems like this time it's going to work until a few hours pass on the server and it starts to bug, and players complain that they don't see the thirst hud, others do see it but then they stop seeing it, etc.

for example here : i see the hud correctly 2024-11-15_12 13 23

and some seconds later it stop showing and the damage for no thirst stop too: 2024-11-15_12 13 55

some seconds later it come again: 2024-11-15_12 14 01

There are times when it doesn't happen for half an hour, but for others players it does, and it is very strange to explain, it has no way in itself, because I am doing nothing, I am completely still.

The only plugin I have that could "affect" is customnameplates but I have disabled the action bar and I tried removing it and the same thing happens

Steps to reproduce the issue

That is my config right now but i test a lot of configs and also with CUSTOM type and with other plugin for show the hud.

info: namespace: "cilio" huds: sed: enabled: true show: auto: true type: STATUS x_position_pixels: 5 direction: LEFT images: positive: cilio:sed_positive half: cilio:sed_half negative: cilio:sed_negative value: player_stat_name: sed start: 10 min: 0 max: 10 triggers: decrement: generic_over_time_45_minutes_outside: min_sky_light: 0 max_sky_light: 15 every_ticks: 12000 amount: 0.5 food_level_change: amount: 0.5 increment: player_respawn: amount: 10 on_min_value: damage_player: every_ticks: 100 damage: 0.5 potion_effect: every_ticks: 100 type: SLOW amplifier: 1 duration: 100 font_images: sed_positive: suggest_in_command: false path: font/sed_positive.png y_position: -15 sed_negative: suggest_in_command: false path: font/sed_negative.png y_position: -15 sed_half: suggest_in_command: false path: font/sed_half.png y_position: -15

Server version

You are on the latest version! Previous version: 1.21.1-15-3554f78 (MC: 1.21.1)

ItemsAdder Version

ItemsAdder version 4.0.3

ProtocolLib Version

ProtocolLib version 5.3.0

LoneLibs Version

LoneLibs version 1.0.59

Full Server Log

https://mclo.gs/U2SI3sr

Error (optional)

No response

Problematic items yml configuration file (optional)

info:
  namespace: "cilio"
huds:
  sed:
    enabled: true
    show:
      auto: true
    type: STATUS
    x_position_pixels: 5
    direction: LEFT
    images:
      positive: cilio:sed_positive
      half: cilio:sed_half
      negative: cilio:sed_negative
    value:
      player_stat_name: sed
      start: 10
      min: 0
      max: 10
      triggers:
        decrement:
          generic_over_time_45_minutes_outside:
            min_sky_light: 0
            max_sky_light: 15
            every_ticks: 12000
            amount: 0.5
          food_level_change:
            amount: 0.5
        increment:
          player_respawn:
            amount: 10
        on_min_value:
          damage_player:
            every_ticks: 100
            damage: 0.5
          potion_effect:
            every_ticks: 100
            type: SLOW
            amplifier: 1
            duration: 100
font_images:
  sed_positive:
    suggest_in_command: false
    path: font/sed_positive.png
    y_position: -15
  sed_negative:
    suggest_in_command: false
    path: font/sed_negative.png
    y_position: -15
  sed_half:
    suggest_in_command: false
    path: font/sed_half.png
    y_position: -15
metrics: false
update-checker: false
resource-pack:
  hosting:
    no-host:
      enabled: true
    auto-external-host:
      enabled: false
    self-host:
      enabled: false
      server-ip: 
      pack-port: 
    external-host:
      enabled: false
      url: ''
      skip-url-file-type-check___DONT_ASK_HELP_IF_SET_TRUE: false
    lobfile:
      enabled: false
  apply-on-join: false
  kick-player-on-decline: false
  kick-player-on-fail: false
  delay-ticks: 1
  notify-other-plugins-interfering: true
  title:
    enabled: true
  1_19_3_atlas_support: true
  protect-player:
    lock-player: true
    hide-hud: true
  command:
    usage-cooldown-seconds: 60
  custom-font:
    enabled: false
    name: ipaexg.ttf
    shift: '[0,0]'
    size: 11.0
    oversample: 2.0
  thin-font:
    enabled: false
  zip:
    protect-file-from-unzip:
      protection_1: false
      protection_2: false
    compress-png-files: true
    compress-json-files: true
    generate-custom-armors-textures:
      vanilla_1_17: true
      optifine: true
      vanilla: true
    disable-overwrite-leather-armor-layers-textures: true
    fix_transparent_noteblocks: false
    ignore-files-ext:
    - db
    - yml
    - xcf
    - psd
    - html
    - gz
    - rar
    - zip
    - 7z
    extract_internal_utility_assets: true
    contents-folders-priority:
    - vanilla
    - _iainternal
    merge_other_plugins_resourcepacks_folders:
    - ModelEngine/resource pack
    - CustomNameplates/ResourcePack
  items:
    CustomModelData-starting-value:
      ALL: 10000
      DIAMOND: 11000
  fix_force_unicode_font_images: true
  custom_blocks_sounds_patch:
    enabled: false
    step:
      enabled: true
      allow_non_player: true
    other: true
  expert_users:
    allow_other_plugins_resourcepacks: false
  uuid: d69238f2-b7ce-30b0-8262-17cd9490f29d
  apply-during-chunk-load-phase: true
  atlas_support: true
config_files:
  lang: en
  dictionaries-lang: en
  force-sync-loading: false
blocks:
  fix-liquids-flow: true
  fix-floating-blocks: true
  fix-glitched-blocks:
    enabled: true
    only-new-chunks: false
  cancel-break-wrong-tool:
    enabled: true
    send-actionbar: true
  campfire: {}
  convert-vanilla-blocks:
    enabled: false
    only-new-chunks: true
  remove-unused-palettes-on-region-save: false
  campfire_enhancements:
    unlit_on_place: true
    allow_any_item: true
    drop_when_broken: false
    enable: true
  custom:
    mushroom: true
    chorus: true
    note: true
    wire: false
    fire: true
  worlds:
  - '*'
  - example_world_*
  - '*_example_nether'
  - '!example_disabled_blocks_world'
  - '!example_disabled_blocks_world_*'
items:
  fix-show-attack-and-damage-as-lore: true
  give_death_location_maps: false
  hide-custom-durability-lore: false
  fix_trades_guis_match_custom_items:
    itemsadder_trade_machines: true
    vanilla_villagers: false
    other_plugins: true
  optimizations:
    kick_on_quickbar_spam:
      enabled: true
      ms: 200
      clicks: 6
  update-legacy-items:
    enabled: true
    update_durability: true
  show_item_durability:
    in_ia_menu: true
    in_inventory: false
liquids:
  enabled: true
huds:
  enabled: true
  force_color:
    enabled: false
    color: '#FFFFFF'
  hide_if_pack_not_accepted: false
loots:
  allow-loots-drop-from-spawners-using-silk-touch: false
mobs:
  disable-MOB-behaviour__DISABLE_AT_YOUR_OWN_RISK: false
  enabled: true
chat-preview: false
font_images:
  replace-in-customitems-name-and-lore: true
  chat:
    enabled: true
    doublecheck-permission__disable-for-more-performance: false
    add-hover-suggestion: true
    tab-autocompletion_1_19_1_plus: true
  command:
    enabled: true
    commandblocks: true
    excluded:
    - home
    - sethome
    - tpa
  sign:
    enabled: true
  book:
    enabled: true
  anvil:
    enabled: true
  inventory-title:
    enabled: true
  vault-prefix-suffix:
    enabled: true
    update-every-ticks: 1200
  scoreboard-teams:
    enabled: false
    update-every-ticks: 3600
  player-display-name:
    enabled: true
    update-every-ticks: 1200
  iaimage-book:
    max-line-length: 18
    placeholder-font: minecraft:default
effects:
  hide-scoreboard-numbers: false
  text-effects:
    enabled: false
    chat:
      enabled: true
    sign:
      enabled: true
    book:
      enabled: true
    anvil:
      enabled: true
    customitems-name-and-lore:
      enabled: true
    customitem-name-and-lore:
      enabled: true
  hide-scoreboard-numbers-old-clients: false
entities:
  max-furniture-vehicles-per-chunk: 300
  custom-entitites:
    enabled: true
    emotes: true
    interval-rendering-packets-ticks: 1
    expert_users:
      delay_packets: false
      extract_emotes_shaders: true
  furniture:
    auto_convert_to_item_display: false
recipes:
  hide-vanilla-unrecognized-recipe-errors: true
  fix-packet-too-large-kick: false
  show-no-permission-popup-in-recipebook: true
  show-no-permission-chat-message: false
  custom-recipes:
    unlock:
      all-on-join: false
      on-pickup: {}
      on-item-click: {}
      automatically: true
  remove-vanilla-recipes:
    enabled: true
    list:
      DIAMOND_SWORD: false
      IRON_INGOT: false
  crafting:
    enabled: true
  cooking:
    enabled: true
  anvil:
    enabled: true
  smithing:
    enabled: true
debug:
  benchmark: false
  items:
    log-files-loading: false
    log-items-loading: false
    log-items-loading-disabled: false
    log-font-images-loading: false
    log-huds-loading: false
    log-attribute-modifiers-loading: false
    log-warnings: false
    log-loots-loading: false
    log-loots-loading-disabled: false
    log-armors-loading: false
    log-files-reloading: false
  recipes:
    log-recipes-loading: false
    log-recipes-loading-disabled: false
    log-recipes-removed-vanilla: false
    log-recipes-unknown-item: false
    log-fix-packet-too-large: false
  resource-pack:
    log-extract-default-resources: false
    log-not-extract-default-resources-already-exist: false
  blocks:
    log-mined-unknown-blocks: true
    log-convert-vanilla-blocks: false
    log-unusual-block-break: false
    log-save-load:
      enabled: false
      min-ms: 0
    log-fix-bugged-blocks: false
  worlds-populators:
    log-loading: false
    log-loading-disabled: false
    log-loading-no-populators: false
  trees-populators:
    log-loading: false
    log-loading-disabled: false
    log-loading-no-populators: false
    log-generation: false
  surface-decorators:
    log-loading: false
    log-loading-disabled: false
    log-loading-no-decorators: false
    log-generation: false
  cave-decorators:
    log-loading: false
    log-loading-disabled: false
    log-loading-no-decorators: false
    log-generation: false
  player-stats:
    log-save: false
  performance:
    loading-ms: true
  huds:
    log-triggers: true
  other:
    log-dictionaries-loading: false
    log-liquids-loading: false
    log-minecraft_lang_overwrite-loading: false
  categories:
    log-total-loaded: true
    log-single-loaded: false
    log-single-loaded-overwrite: false
    log-single-skip: false
    log-icon-failed-load: false
  entities:
    log-files-loading: false
    log-entities-loading: false
    log-entities-loading-disabled: false
  issues:
    log_font_image_replace_json_syntax_exception: true
  blocks-populators:
    log-generation: false
    log-loading: false
    log-loading-disabled: false
    log-loading-no-populators: false
  resourcepacks:
    log_player_install: false
compatibility:
  worldguard:
    show_legacy_furniture_flags: true
  advanced_enchantments:
    enable_custom_enchants_in_items_configs: false
cooldown_bars:
  enabled: true
  refresh_ticks: 1
  bossbar:
    color: WHITE
    style: SOLID
player_stats:
  save_type: CUSTOM_NBT # CUSTOM_NBT, PLAYER_DAT
show_plugin_logo_on_enable: true

I set the:

huds: log-triggers: true

https://mclo.gs/3P1P8zk

But nothing happen when the bar dissapear

Screenshots/Videos (you can drag and drop files or paste links)

HERE IS A VIDEO