[PR #1] [MERGED] feat: Add toggle command for death message and improve grave item recovery #13

Closed
opened 2026-05-06 16:05:08 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/BreizhHardware/CipaUtils/pull/1
Author: @BreizhHardware
Created: 9/15/2025
Status: Merged
Merged: 9/15/2025
Merged by: @BreizhHardware

Base: devHead: feature/auto-grave-recover


📝 Commits (1)

  • 225028f feat: Add toggle command for death message and improve grave item recovery

📊 Changes

9 files changed (+126 additions, -16 deletions)

View changed files

📝 src/main/java/bzh/breizhhardware/cipautils/Main.java (+8 -1)
📝 src/main/java/bzh/breizhhardware/cipautils/grave/GraveListener.java (+70 -1)
src/main/java/bzh/breizhhardware/cipautils/grave/ToggleDeathMsgCommand.java (+32 -0)
📝 src/main/java/bzh/breizhhardware/cipautils/waystone/Waystone.java (+1 -1)
📝 src/main/java/bzh/breizhhardware/cipautils/waystone/WaystoneGUI.java (+2 -1)
📝 src/main/java/bzh/breizhhardware/cipautils/waystone/WaystoneListener.java (+2 -1)
📝 src/main/java/bzh/breizhhardware/cipautils/waystone/WaystoneManager.java (+2 -2)
📝 src/main/java/bzh/breizhhardware/cipautils/waystone/WaystoneRecipe.java (+2 -1)
📝 src/main/resources/plugin.yml (+7 -8)

📄 Description

This pull request introduces several improvements and new features to the plugin, focusing on enhancing the grave system and refactoring the waystone code structure. The most significant changes include adding a toggleable tip message for grave recovery, enabling shift-right-click for automatic item retrieval from graves, protecting graves from explosions, and reorganizing waystone-related classes into a dedicated package.

Grave system enhancements:

  • Added a toggleable tip message for players on death, informing them about shift-right-click grave recovery, with the option to disable the message via the new /toggledeathmsg command. [1] [2] [3] [4] [5]
  • Implemented shift-right-click functionality on graves to automatically transfer all items to the player's inventory; items that don't fit remain in the grave, and the grave is removed if emptied.
  • Added protection for graves against destruction by both block and entity explosions.

Waystone codebase refactoring:

  • Moved all waystone-related classes (Waystone, WaystoneListener, WaystoneManager, WaystoneGUI, WaystoneRecipe) into the new bzh.breizhhardware.cipautils.waystone package for better organization and maintainability. [1] [2] [3] [4] [5] [6]

Plugin command configuration:

  • Updated plugin.yml to add the /toggledeathmsg command and simplified the descriptions/usages for existing commands.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BreizhHardware/CipaUtils/pull/1 **Author:** [@BreizhHardware](https://github.com/BreizhHardware) **Created:** 9/15/2025 **Status:** ✅ Merged **Merged:** 9/15/2025 **Merged by:** [@BreizhHardware](https://github.com/BreizhHardware) **Base:** `dev` ← **Head:** `feature/auto-grave-recover` --- ### 📝 Commits (1) - [`225028f`](https://github.com/BreizhHardware/CipaUtils/commit/225028f279f4d5e238da325dc8f89bb890b501dd) feat: Add toggle command for death message and improve grave item recovery ### 📊 Changes **9 files changed** (+126 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `src/main/java/bzh/breizhhardware/cipautils/Main.java` (+8 -1) 📝 `src/main/java/bzh/breizhhardware/cipautils/grave/GraveListener.java` (+70 -1) ➕ `src/main/java/bzh/breizhhardware/cipautils/grave/ToggleDeathMsgCommand.java` (+32 -0) 📝 `src/main/java/bzh/breizhhardware/cipautils/waystone/Waystone.java` (+1 -1) 📝 `src/main/java/bzh/breizhhardware/cipautils/waystone/WaystoneGUI.java` (+2 -1) 📝 `src/main/java/bzh/breizhhardware/cipautils/waystone/WaystoneListener.java` (+2 -1) 📝 `src/main/java/bzh/breizhhardware/cipautils/waystone/WaystoneManager.java` (+2 -2) 📝 `src/main/java/bzh/breizhhardware/cipautils/waystone/WaystoneRecipe.java` (+2 -1) 📝 `src/main/resources/plugin.yml` (+7 -8) </details> ### 📄 Description This pull request introduces several improvements and new features to the plugin, focusing on enhancing the grave system and refactoring the waystone code structure. The most significant changes include adding a toggleable tip message for grave recovery, enabling shift-right-click for automatic item retrieval from graves, protecting graves from explosions, and reorganizing waystone-related classes into a dedicated package. **Grave system enhancements:** * Added a toggleable tip message for players on death, informing them about shift-right-click grave recovery, with the option to disable the message via the new `/toggledeathmsg` command. [[1]](diffhunk://#diff-0e69ae8526f232b4aaa9f87477deefdecf885e614ecfa6e11cd2e308445e814eR37-R38) [[2]](diffhunk://#diff-0e69ae8526f232b4aaa9f87477deefdecf885e614ecfa6e11cd2e308445e814eR49-R54) [[3]](diffhunk://#diff-c206a568a659a2fe5018c5477ca1dec24030e6d00390c0435687b0de0055003cR1-R32) [[4]](diffhunk://#diff-4e857f730f7703b6b15173f5758c804b25afe947dca1ef3d9e0230b765e6f042L36-R47) [[5]](diffhunk://#diff-98201effe40eaf4a0e8826fadd6c5c9d5beaf9d737226b514f0853f44987a67fL8-R15) * Implemented shift-right-click functionality on graves to automatically transfer all items to the player's inventory; items that don't fit remain in the grave, and the grave is removed if emptied. * Added protection for graves against destruction by both block and entity explosions. **Waystone codebase refactoring:** * Moved all waystone-related classes (`Waystone`, `WaystoneListener`, `WaystoneManager`, `WaystoneGUI`, `WaystoneRecipe`) into the new `bzh.breizhhardware.cipautils.waystone` package for better organization and maintainability. [[1]](diffhunk://#diff-88aaf5360f3746af837341dd57379ebd0fefd6f66d899d7e4635dc571ec43888L1-R1) [[2]](diffhunk://#diff-87c20d6786f9ffab29278002958ff3f2fd572dcd0e739e1fd1777a0b46b1b896L1-R3) [[3]](diffhunk://#diff-2edc868f5a3d46b9095b334b450e6b74ed51bcac32528d5a012cea1a61724893L1-R3) [[4]](diffhunk://#diff-b561a47e2eb15bd01f57301da0deb4af23c9b4fbac9474dce27ca2d317f8e2b6L1-L4) [[5]](diffhunk://#diff-64befeed79a6a09233d8fb8065f97c0975d4ea218bb5ed4d8df4a2a1aa2e74d5L1-R3) [[6]](diffhunk://#diff-4e857f730f7703b6b15173f5758c804b25afe947dca1ef3d9e0230b765e6f042R4-R7) **Plugin command configuration:** * Updated `plugin.yml` to add the `/toggledeathmsg` command and simplified the descriptions/usages for existing commands. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 16:05:08 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BreizhHardware/CipaUtils#13
No description provided.