[Request] No Projectile Hit Delay

Discussion in 'Spigot Plugin Development' started by Snail_5_, Jul 12, 2015.

Thread Status:
Not open for further replies.
  1. Plugin category: PvP

    Suggested name: NoProjHitDelay

    What I want: I'd like a plugin similar to the NoHitDelay plugin. The only issue is that the no hit delay plugin is damage in general, and I need No Hit Delay strictly for Projectiles ONLY.

    Ideas for commands: /noprojhitdelay setdelay <delay in ticks>
    /noprojhitdelay reload

    Ideas for permissions: noprojhitdelay.setdelay

    When I'd like it by:
    Any time works, but preferably as soon as possible.
  2. latiku


    Free work?
  3. It shouldn't be too hard, I'd really appreciate it. ;-;
  4. Nice, but what need to do the plugin? Delay a hit?
  5. I'd like a plugin exactly like this, but the only difference is that it's only for Projectiles (Arrows, snowballs, etc.) and not regular damage in general. Like for example, I have guns on my server. So people could shoot a rapidfire gun, and all the bullets that hit would do damage. (In regular MC, there's a delay from the time players can take damage.) The NoHitDelay plugin is causing people on my server to only use the provided sword, ruining the point of a gun server.
  6. Aaaaamm, ok, rigth now o can't create you the plugin, but in a week i will send to you. I don't have a pc. :-(
    • Like Like x 1
  7. Alright, thanks dude!
  8. I can make it for you right now if you want?
  9. Don't ask and start xD.
  10. That would be awesome!
  11. Someone do the plugin?
  12. Code (Text):
        public void onEnable()
            Bukkit.getPluginManager().registerEvents(this, this);

        public void onEntityDamage(EntityDamageByEntityEvent event){
            if(event.getDamager() instanceof Projectile){
                LivingEntity entity = (LivingEntity) event.getEntity();
                new BukkitRunnable(){
                    public void run(){
                }.runTaskLater(this, 1);
    This is a dirty but easiest way to do it. It removes the NoDamageTicks from any entity damaged by a projectile. The proper way to do it would be to look for when a projectile hits and entity and if it has NoDamageTicks then clear them before the damage is applied.
    • Winner Winner x 1
  13. Tada perfect reason to why he should be requesting anything Yet... personally i think people should only be able to make requests once they have contributed some answers/ffeedback to the forums
    • Like Like x 1
    • Agree Agree x 1
  14. :I How can I "contribute" when I have no coding experience?
  15. Someone give you the plugin?
  16. Not yet. :L
  17. Ok, i am going to start, so you need a plugin that delay the hits of the sword?
    Edit: hit to the mobs will have delay?
    #19 pedxd, Jul 20, 2015
    Last edited: Jul 20, 2015
  18. No, what I need is a plugin where there a configurable amount of No Projectile Hit Delay (Such as arrows, snowballs, etc.) Here is basically the plugin I want (But in this one, it's general hit delay, not just Proj hit delay) http://dev.bukkit.org/bukkit-plugins/nohitdelay/
Thread Status:
Not open for further replies.