Skip to content

[Bug]: 再执行del-data动作时,并未对数据库中数据进行删除. #274

Description

@ThiClover

🚀 Have you tried the latest version

  • I have updated TrMenu to the latest version and the same bug is reproduced.

📚 Have you checked the Wiki

  • I have checked the Wiki's related content about the problem and determined that the problem exists.

🔗 Is there a duplicate Issue

  • I have looked through the existing issue and found no duplicate content, or a more detailed description of the existing issue.

📰 Server details

TrMenu Dump Information (Date: 2026-08-28 22:01:47)

| Server OS: Windows 11 amd64 10.0
| Server software: Leaf - 1.21.11-174-3727fcc (MC: 1.21.11) (1.21.11-R0.1-SNAPSHOT)
| Java version: Eclipse Adoptium (OpenJDK Runtime Environment 25.0.3+9-LTS)

| TrMenu: 3.12.5
Installed Plugins: 
· LuckPerms - 5.5.65
· PlaceholderAPI - 2.12.2
· PlayerPoints - 3.3.5
· PlugManX - 3.0.4
· ProtocolLib - 5.4.0
· TrMenu - 3.12.5
· Vault - 1.7.3-b131
· XConomy - 2.26.3

🔍 Detailed description

复现步骤
1. 打开菜单,左键设置playerData数据为`分钟-时间`
2. lore中`%trmenu_data_playerData%` papi变量正确显示
3. 右键删除playerData时, lore中的papi显示为null, 但数据库中数据并未发生改变。但是set-data还是可以改动数据
4. 这种导致一个问题: 当使用del-data删除数据后, 服务器重启之后,数据又恢复了

🗄 Server log

控制台并未有任何错误信息输出

⚙ Configurations

```yml
Title: 'demo'

Options:
  Default-Layout: 0
  Hide-Player-Inventory: false
  Depend-Expansions: []

Layout:
- '    `button`    '


Icons:
  button:
    display:
      material: black stained glass pane
      name: '&r'
      lore:
        - ''
        - '数据: %trmenu_data_playerData%'
        - ''
    actions:
      left:
        - 'set-data: playerData %server_time_mm%-%server_time_ss%'
        - 'update: button'
      right:
        - 'del-data: playerData'
        - 'update: button'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions