What's New:
- Commands Overhaul:
- All commands have been reworked for better clarity and usability.
- Introduced new command aliases for quicker access, e.g., /ls for /lifesteal.
- Permissions Rework:
- Permissions have been updated to align with the new command structure.
- Ensure you review the new permissions setup to adjust any user roles accordingly.
- Customizable Messages:
- The entire messages.yml has been reworked to include more customizable messages.
- Messages for various actions such as withdrawing hearts, reviving players, and error messages are now configurable.
- The server IP is now included in messages.yml for dynamic message updates.
- Configuration Changes:
- customHeart and revive item names and lore are now configured in messages.yml instead of config.yml.
- Default values have been set, but you can customize them as needed.
- Bug Fixes:
- Fixed various bugs related to command execution and permissions checks.
- Addressed issues with the configuration not loading correctly on startup.
- Resolved placeholder replacement issues in dynamically generated messages.
Updated Commands:
- /heartwithdraw <amount> - Withdraw hearts from your health pool.
- /revive <player> - Revive a fallen player.
- /heartgive <player> [amount] - Give a player custom hearts.
- /eliminate <player> - Eliminate a player from the game.
- /healthcheck <player> - Check a player's health.
- /heartreload - Reload the plugin's configuration.
- /recipe [heart|beacon] - Show the crafting recipe for custom items.
- /revivegive <player> <amount> - Give players the revive item.
- /heartset <player> <amount> - Set a player's hearts to a set amount.
Permissions:
- lifesteal.withdraw
- lifesteal.revive
- lifesteal.give
- lifesteal.check
- lifesteal.eliminate
- lifesteal.reload
- lifesteal.recipe
- lifesteal.set
Configuration Example:
maxHearts: 20
minHearts: 0
defaultHearts: 10
ban_duration: 60
customHeart:
material: FERMENTED_SPIDER_EYE
revive:
material: BEACON
reviveRecipe:
recipe:
shape:
- TGT
- DHD
- NNN
ingredients:
T: TOTEM_OF_UNDYING
G: GOLD_BLOCK
D: DIAMOND_BLOCK
H: CUSTOM_HEART
N: NETHERITE_BLOCK
heartRecipe:
recipe:
shape:
- GDG
- DTD
- GDG
ingredients:
G: GOLD_BLOCK
D: DIAMOND_BLOCK
T: TOTEM_OF_UNDYING
absorption:
update_interval: 200
health_thresholds:
one_heart: 1
two_hearts: 2
three_hearts: 3
four_hearts: 4
five_hearts: 5
absorption_amounts:
one_heart: 5
two_hearts: 4
three_hearts: 3
four_hearts: 2
five_hearts: 1
Messages Configuration Example:
custom_heart_name: '&cHeart'
custom_heart_lore: '&7Use this heart to increase your health.'
revive_beacon_name: '&aRevive Beacon'
revive_beacon_lore: '&7Use this beacon to revive a player.'
heart_recipe_title: '&cHeart Recipe'
revive_recipe_title: '&aRevive Recipe'
part_of_recipe: '&7Part of the recipe'
no_permission: '&cYou do not have permission to use this command.'
invalid_number: '&cInvalid number.'
exceeded_configurable_amount: '&cYou cannot go below {minHearts} heart(s)!'
successful_withdraw: '&aYou have successfully withdrawn {amount} hearts.'
player_already_online: '&cPlayer is already online.'
player_not_banned: '&cPlayer does not need to be revived.'
player_revived: '&a{playerName} has been revived.'
heart_given: '&aYou have given {playerName} {amount} heart(s)!'
player_not_found: '&cPlayer not found.'
heart_count: '&a{playerName} has {maxHearts} hearts.'
eliminate_success: '&aYou have eliminated {target}.'
broadcast_ban_message: '&a{player} has eliminated {target} from the server!'
kick_message: 'You have died and have no hearts left. Get revived to join back, or buy another life @ {serverIP}. Time left: {time_left}'
in_combat: '&cYou cannot use hearts while in combat!'
max_hearts_reached: '&cYou have reached the maximum amount of hearts!'
server_ip: 'Store.AstroRealms.io'
Note: Ensure you review and update your config.yml and messages.yml to fully leverage the new customizability and features.