1. Welcome to the Brawl website! Feel free to look around our forums. Join our growing community by typing /register in-game!

New Perk: PainKiller!

Discussion in 'Ideas' started by Darkchaosknight, Aug 11, 2013.

Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...
  1. Darkchaosknight

    Darkchaosknight Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    3,200
    Ratings:
    +955
    Hello fellow players of the server. I am a new coder and have made mc-war a plugin for a perk called PainKiller. Here is how it works, whenever a player takes damages damage, that player gains regeneration 3 for some seconds. This perk allows you to get back into the fight faster. Try it out on your own small server and I hope we can get this added to mc-war!

    http://www.mediafire.com/download/j6l6abinth3fp6m/Perk_PainKiller_Plugin_By_Darkchaosknight.jar

    If this does pass, please make it a donator perk that costs $3.00.

    Thankyou,

    This is my second plugin and I hope you enjoy it!

    -Darkchaosknight

    (There may be a bug or 2 so just post it here for me)
     
  2. terdd

    terdd Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    1,867
    Ratings:
    +264
    It's a good idea but I'd prefer a different perk.
     
  3. Darkchaosknight

    Darkchaosknight Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    3,200
    Ratings:
    +955
    Pffft. Its my second perk :stuck_out_tongue:. If I can work with orange and get some of his mc-war files, I can make some really cool perks. My first idea is rapid fire. :grinning:
     
  4. Colonel_Chris

    Colonel_Chris Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    1,004
    Ratings:
    +238
    Hmmm, minigun + rapid fire. o gawd
     
  5. Darkchaosknight

    Darkchaosknight Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    3,200
    Ratings:
    +955
    Well you don't have scavy so its okay.
     
  6. Greedy_Bee

    Greedy_Bee Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    1,056
    Ratings:
    +667
    Yeah... I would prefer a different perk, but i do like the idea.
     
  7. e621Warwick

    e621Warwick Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    1,743
    Ratings:
    +1,351
    Wrong section :V
    Someone move to Server Ideas please.

    Edit -
    Nevermind it's a pre-made perk.
    Then again, it's still an idea.

    Or it could be one of those plugins that backdoor in commands to give you op...
    >Conspiracy Keanu
    Anyone that knows Java, look in source code prease.
     
  8. GreySwordz

    GreySwordz Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    1,976
    Ratings:
    +322
    I'll check it out sometime if I have the time.
    @Darkchaosknight post source so we can compile.
     
  9. Darkchaosknight

    Darkchaosknight Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    3,200
    Ratings:
    +955
    Heres the thing, its such a small code you can pretty much read it and see give Darkchaosknight OP so that's out of the picture. Also, why do you need the source code, I've set it up so all you have to do is put it in your plugins folder.
     
  10. e621Warwick

    e621Warwick Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    1,743
    Ratings:
    +1,351
    Because it could be a plugin the gives you a backdoor for op.
     
  11. DreadlordsCousin

    DreadlordsCousin Well-Known Member

    Joined:
    Aug 4, 2013
    Messages:
    2,270
    Ratings:
    +296
    I think that it's a really op if every time you get hit you get regenaration that you will never die!
     
  12. Darkchaosknight

    Darkchaosknight Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    3,200
    Ratings:
    +955
    You will die as guns do a lot of damage fast compaired to the regen. I can send you the code. It doesn't give me OP.
     
  13. GreySwordz

    GreySwordz Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    1,976
    Ratings:
    +322
    Here's some source I made in about 5 seconds, probably has a few bugs. I don't support the idea, although I'd like to give the admins some source. This obviously needs to be implemented with buycraft.
    Code:
    @EventHandler(priority = EventPriority.NORMAL)
    
    public void dmg(final EntityDamageEvent event) {
    
    Entity e = event.getEntity();
    
    if(e instanceof Player && e.getCause == ! DamageCause.FALL) {
    Player player = (Player)e;
    player.addPotionEffect(PotionEffectType.REGENERATION.createEffect((int) 60L, 1));
    }
    
    }
    
    
     
  14. Darkchaosknight

    Darkchaosknight Well-Known Member

    Joined:
    Aug 3, 2013
    Messages:
    3,200
    Ratings:
    +955
    You don't need 2 parentheses at the end.

    package me.Darkchaosknight.Perk_PainKiller;
    import org.bukkit.Bukkit;
    import org.bukkit.entity.Entity;
    import org.bukkit.entity.Player;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.Listener;
    import org.bukkit.event.entity.EntityDamageByEntityEvent;
    import org.bukkit.potion.PotionEffect;
    import org.bukkit.potion.PotionEffectType;
    public class BukkitListener implements Listener {

    public static Bukkit plugin;

    public BukkitListener(Bukkit instance) {
    plugin = instance;
    }

    @EventHandler
    public void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
    Entity e = event.getEntity();
    //Entity damager = event.getDamager();

    if (e instanceof Player) {
    Player player = (Player) e;
    player.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION,
    500, 2));
    }
    }
    }

    Heres the code, the {} don't look right when pasted over :[
     
Loading...
Similar Threads Forum Date
PainKillerPerk V2.0 Ideas Aug 16, 2013
Idea Custom Infect perks and streaks. McWar MC-War Dec 18, 2018
Idea Combined Perks MC-War Nov 19, 2018
Idea Perk Ideas and Reworks MC-War Jul 26, 2018
Idea New Perk MC-War Jul 22, 2018
Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...