LifeOwner is a customizable plugin that allows you to steal or donate life (hearts) to players or/and mobs using a radar to individuate entities and a ray to hit them!
This plugin has been tested in 1.16.x -1.17.x servers but it may works also with older versions (if yes, let me know!).
Features and commands:
Aliases: lo, life, lifeo, lifeowner. /lifeowner help - Shows this page. /lifeowner radar <stealer - benefactor> - Enable and use a specific ability. /lifeowner radar off - Disable your current enabled radar.
This plugin cooldown systems for each command and also other nice things like particles, sound, title and actionbar messages (all is customizable in config.yml file).
Screenshots:
Permissions:
Config file:
Code (YAML):
# _ _ __ ____ # | | (_) / _| / __ \ # | | _ | |_ ___ | | | | __ __ _ __ ___ _ __ # | | | | | _| / _ \ | | | | \ \ /\ / / | '_ \ / _ \ | '__| # | |____ | | | | | __/ | |__| | \ V V / | | | | | __/ | | # |______| |_| |_| \___| \____/ \_/\_/ |_| |_| \___| |_| # # > Plugin by ProjectAlpha # # Spigot official page: www.spigotmc.org/resources/authors/projectalpha.995844/ # * If you detect errors, you can contact me by PM in my official spigot page 'ProjectAlpha'. # # Permissions: # - lifeowner.reload > Reload the plugin (it's better to reload the server) # - lifeowner.help.user > Shows the commands list # - lifeowner.bypass.cooldown > Bypass the commands cooldown # - lifeowner.radar.benefactor > Enable/disable the benefactor ability # - lifeowner.radar.stealer > Enable/disable the stealer ability # - lifeowner.radar.stealer.hidden > Stay invisible to a stealer's player radar # - lifeowner.ray.stealer.bypass > Bypass the ray effects of a stealer player # - lifeowner.radar.benefactor.hidden > Stay invisible to a benefactor's player radar # - lifeowner.ray.benefactor.bypass > Bypass the ray effects of a benefactor player general_options: entity_checking:
check_for_players: true
check_for_mobs: true
checking_x_range_area_in_blocks: 30.0
checking_y_range_area_in_blocks: 30.0
checking_z_range_area_in_blocks: 30.0
ray_settings:
stealer_radius_length_blocks: 50
benefactor_radius_length_blocks: 50
# Cooldown support # [!] You have to reload the entire server if you edit the 'enable_cooldown' # value in-game (The 'reload' plugin command will not change this value) [!] enable_commands_cooldown: true
commands_cooldown_seconds: 20
#The total time is the sum of this and 'radar_duration_seconds' radar_duration_seconds: 50
# Sounds support # You can find all sound list name (1.9+) on: hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html enable_sounds: true
stealer_radar_enabled_sound_name: 'BLOCK_BEACON_POWER_SELECT'
benefactor_radar_enabled_sound_name: 'BLOCK_BEACON_POWER_SELECT'
radar_disabled_sound_name: 'BLOCK_BEACON_DEACTIVATE'
ray_hit_title_sound_name: 'BLOCK_AZALEA_LEAVES_HIT'
ray_hit_by_stealer_sound_name: 'AMBIENT_UNDERWATER_LOOP_ADDITIONS_ULTRA_RARE'
ray_hit_by_benefactor_sound_name: 'BLOCK_AMETHYST_BLOCK_BREAK'
# Actionbar support enable_actionbar: true
life_stealer_radar_enabled: '&f
[&e
%remaining_time%&f] Life &cstealer &fradar: &o%nearby_entities%' life_benefactor_radar_enabled: '&f
[&e
%remaining_time%&f] Life &abenefactor &fradar: &o%nearby_entities%' life_stealer_radar_disabled: '&f
[&c!&f
] Life &cstealer &fradar &cdisabled&f.'
life_benefactor_radar_disabled: '&f
[&c!&f
] Life &abenefactor &fradar &cdisabled&f.'
# Particles support # You can find all particles id list on: hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html enable_particles: true
stealer_radar_player_particles: 'FLASH'
stealer_radar_mob_particles: 'FLASH'
benefactor_radar_player_particles: 'FLASH'
benefactor_radar_mob_particles: 'FLASH'
life_stealer_ray_particles: 'FLAME'
life_benefactor_ray_particles: 'ELECTRIC_SPARK'
victim_already_good_particles: 'BARRIER'
victim_too_weak_particles: 'BARRIER'
victim_hit_and_stolen_particles: 'LAVA'
victim_hit_and_donated_particles: 'HEART'
# Potion Effects support # You can find all potion effects id list on: hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html potion_effects_on_stealer_ray_victim:
enable: true
potion_effect_id: 'WEAKNESS'
potion_effect_duration: 360
#in ticks potion_effect_amplifier: 2
potion_effects_on_stealer_after_ray_victim:
enable: true
potion_effect_id: 'BLINDNESS'
potion_effect_duration: 40
#in ticks potion_effect_amplifier: 2
potion_effects_on_benefactor_ray_victim:
enable: true
potion_effect_id: 'DAMAGE_RESISTANCE'
potion_effect_duration: 360
#in ticks potion_effect_amplifier: 2
potion_effects_on_benefactor_after_ray_victim:
enable: true
potion_effect_id: 'REGENERATION'
potion_effect_duration: 560
#in ticks potion_effect_amplifier: 1
messages_translation: suggestion_help_cmd: '&b&lLife&9&lOwner
: &r&7Correct usage
: &e/lifeowner help&7.'
suggestion_reload_cmd: '&b&lLife&9&lOwner
: &r&7Correct usage
: &e/lifeowner reload&7.'
suggestion_off_cmd: '&b&lLife&9&lOwner
: &r&7Correct usage
: &e/lifeowner radar off&7.'
suggestion_radar_cmd: '&b&lLife&9&lOwner
: &r&7Correct usage
: &e/lifeowner radar <stealer &7- &ebenefactor>&7.'
none_entities: '
...'
too_much_entities: 'and others
...'
permission_denied: '&b&lLife&9&lOwner
: &r&7Permission denied. If you think this is an error, please contact the staff.'
unknown_arg: '&b&lLife&9&lOwner
: &r&7Wrong or missing argument! You can check
all &b&lLife&9&lOwner&r &7commands with &e/lifeowner help&7.'
plugin_reload: '&b&lLife&9&lOwner
: &r&7Plugin reloaded
(it only works for some things, it''s better to reload the server
).'
only_in-game_command: '&b&lLife&9&lOwner
: &r&7This command can only be used in-game.'
internal_error: '&b&lLife&9&lOwner
: &r&7Internal error. Please retry later. If this problem persist, contact the plugin developer.'
cooldown_alert: '&b&lLife&9&lOwner
: &r&7You have to wait &c
%cooldown% seconds &7to perform this command again.' cooldown_end_notify: '&b&lLife&9&lOwner
: &r&7Now you can use the &b&lLife&9&lOwner&r &7command again.'
ray_on_bypass_player: '&b&lLife&9&lOwner
: &r&a%player_name% &7seems to have an awesome protection against your ray!'
no_target_hit: '&b&lLife&9&lOwner
: &r&7No target hit.'
radar_already_in_use: '&b&lLife&9&lOwner
: &r&7You already have an &aenabled&7 radar. It will expire between &e
%cooldown% seconds&7.' radar_not_in_use: '&b&lLife&9&lOwner
: &r&7You &chaven''t
any &7enabled radar.'
radar_disabled_cause_of_death: '&b&lLife&9&lOwner
: &r&7Radar &cdeactivated &7due to your &4death&7.'
life_benefactor_radar_enabled: '&b&lLife&9&lOwner
: &r&7Life &abenefactor &7radar &aenabled&7.'
life_benefactor_radar_disabled: '&b&lLife&9&lOwner
: &r&7Life &abenefactor &7radar &cdisabled&7.'
benefactor_ray_on_bypass_player_notify: '&b&lLife&9&lOwner
: &r&a%player_name% &7tried to hit you with his &abenefactor ray&7!'
victim_already_have_enough_life: '&b&lLife&9&lOwner
: &r&a%player_name% &7already has enough life!'
you_already_have_enough_life: '&b&lLife&9&lOwner
: &r&a%player_name% &7tried to hit you with his &abenefactor ray&7! But you already have enough life!'
you_have_not_enough_life: '&b&lLife&9&lOwner
: &r&7You haven''t enough life to heal &a
%player_name%&7.' cant_donate_life: '&b&lLife&9&lOwner
: &r&7You haven''t enough life to donate.'
life_donated_to_victim: '&b&lLife&9&lOwner
: &r&7You have donated &a
%donated_life% &7to &2%victim_name%&7.' life_received_from_player: '&b&lLife&9&lOwner
: &r&2%victim_name% &7donated you part of his/her life
(&a
%stolen_life%&7).' life_stealer_radar_enabled: '&b&lLife&9&lOwner
: &r&7Life &cstealer &7radar &aenabled&7.'
life_stealer_radar_disabled: '&b&lLife&9&lOwner
: &r&7Life &cstealer &7radar &cdisabled&7.'
stealer_ray_on_bypass_player_notify: '&b&lLife&9&lOwner
: &r&a%player_name% &7tried to hit you with his &cstealer ray&7!'
victim_too_weak: '&b&lLife&9&lOwner
: &r&c%player_name% &7seems to be too weak!'
you_are_too_weak: '&b&lLife&9&lOwner
: &r&c%player_name% &7tried to hit you with his &clife stealer ray&7, but you seems to be too weak!'
life_stolen_to_victim: '&b&lLife&9&lOwner
: &r&7You have absorbed &c
%stolen_life% &7from &4%victim_name%&7.' life_stolen_from_victim: '&b&lLife&9&lOwner
: &r&cWarning:&7part of your life
(&c
%stolen_life%&7) has been absorbed by &4%player_name%&7.' no_heal_need: '&b&lLife&9&lOwner
: &r&7You don''t need more life.'
user_command_list: |-
&b&lLife&9&lOwner: &r&7List of avaiable commands:
&8Aliases: lo, life, lifeo, lifeowner.
&r&7
&e/lifeowner help &7- Shows this page.
&e/lifeowner radar <stealer &7- &ebenefactor> &7- Enable and use a specific ability.
&e/lifeowner radar off &7- Disable your current enabled radar.
&r&8
staff_command_list: |-
&b&lLife&9&lOwner: &r&7List of avaiable commands
(&cstaff&7
): &r&7
&c/lifeowner reload &7- Reload the plugin
(it's better to reload the server
).
&r&8
You can report all your suggestions or bugs in my PM here, in spigot! (and sorry for my english D: )