⚔️ ReviveMe 1.14 - 1.21.1 | Revive your friends⭕

Plugins ⚔️ ReviveMe 1.14 - 1.21.1 | Revive your friends⭕

Version: 4.4.4
[ + ] Fixed an issue with pufferfish damage. When mobs_target_downed was disabled, downed players could still receive damage from this entity.
[ + ] add new option in WeaponMechanics hook in config.yml
[ + ] A new placeholder was added to use in events.yml. This is %last_damage_seconds%. It indicates how many seconds have passed since the downed player last took damage.
[ + ] A new condition was added. This is "!=" — basically the opposite of "==". This processes the action if it is not equal. An example:




Code (YAML):

player_count_death_delay:
enabled: true
actions:
- '[condition] auto_revive_1'
- '[condition] auto_revive_2'
- '[condition] auto_revive_3'
- '[condition] auto_revive_end'

conditions:
auto_revive_1:
condition: '%last_damage_seconds% == 1'
actions:
- '[message] <victim> &6If you don’t take damage for &e20 seconds&6, you will be revived!'
auto_revive_2:
condition: '%last_damage_seconds% == 10'
actions:
- '[message] <victim> &6If you don’t take damage for &e10 seconds&6, you will be revived!'
auto_revive_3:
condition: '%last_damage_seconds% == 17'
actions:
- '[message] <victim> &6If you don’t take damage for &e3 seconds&6, you will be revived!'

auto_revive_end:
condition: '%last_damage_seconds% >= 20'
actions:
- '[message] <victim> &aYou were revived for not taking damage for 20 seconds!'
- '[console] rm revive <victim>'
[ / ] The hook with FactionsUUID was updated since it was largely changed.
[ + ] Options were added to prevent downed players from using: Lay, Sit, Crawl. This can be blocked in config.yml under the corresponding hook section.
1.21.8 update
  • Like
Reactions: MilkOut
[ + ] Added a placeholder for plugin messages that shows how much time is left before the player can use suicide: "<suicide_disabled_count>"
[ + ] Added compatibility with the optimized version of Duels
[ + ] add compatibility with 1.21.6
[ x ] Now, when a knocked-down player is a passenger of another player and disconnects, they will dismount to avoid errors.
[ + ] A new option was added to change the name of downed players in the GPS menu. This allows setting a custom name for each player through the API. Example usage:

Code (Java):
ReviveMe reviveme = JavaPlugin.getPlugin(ReviveMe.class);

reviveme.getGpsManager().setNameProvider((viewer, target) -> {
if (target.getName().equals("Jams")) return " Officer Jams";
return "&e" + target.getName();
});