[BALANCED] HEAL PLUGIN (COMPATIBLE WITH ALL CUSTOM ENCHANTS) 1.6

The Only Heal Plugin That Works With Custom Enchants (OPEN SOURCE)

  1. Splodgebox
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    Source Code:
    https://gist.github.com/Splodgebox/94bf5d617a3c66a73ffd5aa8c57cf0e5
    Heal Plugin (Compatible with custom enchants!)
    This is one of the only heal plugin that works with custom enchants!

    How Does It Work?:

    Instead of the essentials /heal that fills your health to full but debuff any effect (Custom Enchant Effects). This one gives you a balance /heal which is not op, It gives you regeneration 3 for 3 seconds and it also gives you blindness for 3 seconds to make it balance and not very op.

    [​IMG]

    Permissions:
    - heal.allow

    To Do List:
    - Add Cooldown
    - Config to edit messages and effects
    - Bug Fixes

    I'm very new to coding minecraft plugins so this is just my basic knowledge that I have of this. I understand it's nothing complex but please keep this in mind!

    Servers

    VoyagePvP
    IP - play.voyagepvp.com


    SOURCE CODE

    Code (Text):
    package me.splodge.heal.commands;

    import org.bukkit.Bukkit;
    import org.bukkit.ChatColor;
    import org.bukkit.command.Command;
    import org.bukkit.entity.Player;
    import org.bukkit.potion.PotionEffect;
    import org.bukkit.potion.PotionEffectType;
    import org.inventivetalent.particle.ParticleEffect;

    public class Heal implements org.bukkit.command.CommandExecutor{
     
          public boolean onCommand(org.bukkit.command.CommandSender sender, Command cmd, String label, String[] args)
          {
            Player player = (Player)sender;
            if (player.hasPermission("heal.allow")) {
              if ((sender instanceof Player)) {
                player.sendMessage(ChatColor.translateAlternateColorCodes('&', "&a&l(!) HEALED (!)"));
                player.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 60, 2));
                player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 60, 2));
                ParticleEffect.FLAME.send(Bukkit.getOnlinePlayers(), player.getLocation(), 0, 0, 0, 0, 1);
                return true;
              }
            }
            else {
              player.sendMessage(ChatColor.translateAlternateColorCodes('&', "&4&lYou Don't Have The Right Permissions!"));
            }
            return false;
          }
        }
    Uses:
    ParticleAPI


    Please leave a rating on this plugin so I can see how my first proper plugin went. Also leave the ip of your server in the ratings sections and I'll add it to the list​
    inkdrak likes this.

Recent Updates

  1. Fixed Particle effect and Open Source!
  2. Bug fix
  3. Even More Bug Fixes!

Recent Reviews

  1. Xipont
    Xipont
    4/5,
    Version: 1.2
    Not bad for a beginner. :)
    You should add customization to like the potion effect levels and the message.

    Also a quick tip; You don't actually need create the permission(s) in your code, it's just a waste of time.
    1. Splodgebox
      Author's Response
      Thank you very much! I will try my best to do your request :D