Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Secure your items on death with player-specific gravestones and flexible retrieval options!
v1.2.5
This pull request introduces several updates to the Lyttle Gravestone plugin, focusing on improving the configuration system, enhancing the /retrievegravestone command, and refining player interaction logic. The changes include new configuration options, adjustments to command behavior, and improved handling of player-related data.
Configuration System Enhancements:
- Added new configuration options (
retrieve_command_blocks,retrieve_command_price,retrieve_command_price__other_world) to control the cost and behavior of the/retrievegravestonecommand. These options are now used to calculate delivery costs dynamically based on distance and world differences. - Updated the
migrateConfigmethod to handle configuration versioning and ensure seamless migration of new configuration entries.
/retrievegravestone Command Improvements:
- Integrated the new configuration options into the
/retrievegravestonecommand logic, including checks for command activation, Vault usage, and dynamic cost calculation. - Added logic to account for cross-world gravestone retrieval by adjusting the cost based on whether the player and gravestone are in the same world.
Player Interaction Enhancements:
- Improved the
onBreakBlockevent logic to display the correct player name when a gravestone is broken by someone other than its owner, using either the online player's display name or the offline player's name.
Platforms
Paper
1.20–1.20.6