Zrips / CMI

117 stars 99 forks source link

Holograms updates are not saved into the holograms.yml #9172

Open bobhenl opened 1 month ago

bobhenl commented 1 month ago

Description of Issue

Hello, it's been already a few months since this broken. I was using the CMI API to change the CMI hologram, and then it was automatically saved to the file, as well.

But now after the /cmi reload or restart, it's not saved & everything changed is lost.

Even when I use /hologram info it shows the updated hologram: image image

in the holograms.yml file is:

newsOnSpawn:
  Loc: world;0.5;128.09;5.5
  Range: 8
  RangeExtra: 16
  Lines:
  - '&b&lLatest News:'
  - '&r'
  - • Added reward for `/discord link`
  - • "Fixed issue where players were
  - loosing their original armor while using
  - PvPSword and joining Duels."
  - • Removed Dragon tag from tab
  - • Fixed broken placeholder in duels
  - • Added some missing special items
  - '&9> &fmore on our &9/discord'
  - '&r'
  - '&9> &fmore on our &9/discord'

and when I use /cmi reload then it loads the content from the file & the progress made from API is lost. It started happening a few months ago with some holograms changes, it was working in the past.

Even the /hologram update doesn't work and it doesn't save the content to the file properly...

Version Information

[14:04:29 INFO]: --------------------------------------------------
[14:04:29 INFO]: CMI: 9.7.6.3 SqLite
[14:04:29 INFO]: CMILib: 1.5.1.0 -> 1.5.1.4
[14:04:29 INFO]: Server: Paper(2310) 1.21.1-R0.1-SNAPSHOT-
[14:04:29 INFO]: CMI economy: Enabled Vault: 1.7.3-CMI CMI Chat: Disabled 
[14:04:29 INFO]: Modules -> 53 enabled 13 disabled: customMessages, mirror, tablist, skin, playerChatTag, disabledEnchants, chatBubble, ranks, firstJoinMessages, playerCombat, votifier, sitAnimation, namePlates
[14:04:29 INFO]: --------------------------------------------------

Errors

No response

Relevant Config Sections

No response

Relevant Plugins

No response

Agreements

Zrips commented 1 month ago

As indicated in https://www.zrips.net/cmi/api/ do you trigger CMI.getInstance().getHologramManager().save(); for it to actually save holograms into file? As it will not do it by default