[FUN] BlockHat v 1.4.1 - [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by nmc94, Jun 25, 2011.

  1. Offline

    Shooty

    Oh, can we totally desactivate the glass feature (iD 20) :( ?
     
  2. Offline

    nmc94

    Working on a config file.

    For example:

    NoDrownWithGlass=true/false
     
  3. Offline

    Shooty

    I have no config file ??
     
  4. Offline

    nmc94

    I said working. Its not in the plugin just yet.

    And you were the 100th person to post here!!!!
     
  5. Offline

    br0ad456

    fair play
     
  6. Offline

    Shooty

    Sorry i'm not english, be cool :) ! Thanks you for your amazing plugin !

    EDIT : I have an idea, why not add iConomy5 support :) ?
     
  7. Offline

    gameswereus

    You mean so you buy the hat? That sounds interesting.
     
  8. Offline

    Shooty

    No buy the permissions, or like each time the players want to have an hat.
     
  9. Offline

    gameswereus

  10. Offline

    ~Poke~

    @nmc94
    No response?

    All I'm asking is an option to use a config file rather than permissions.
     
  11. Offline

    gelvis

    It would be great if the hat would stay after I re-loggin :)
     
  12. Offline

    korbat

    If you put leaves on your head with /hat and then press F5 you will see that your stuff is colored green! :D
     
  13. Offline

    ~Poke~

    It stays for me, have you got any plugins that mess with people's inventories?
     
  14. @nmc94

    Just bringing it out there, it would be a lot of better performance to just cancel the damage event and set remaining air to max air with the water helmet

    In my private plugin, I used
    Code:
            if (event.getCause().equals(DamageCause.DROWNING)) {
                Player player = event.getPlayer();
                if (player.getInventory().getHelmet().getType().equals(Material.GLASS)) {
                    if (!plugin.hasPermissions(p, "general.divinghelmet")) return;
                    event.setCancelled(true);
                    player.setRemainingAir(player.getMaximumAir());
                }
            }
    
     
  15. Offline

    nmc94

    Thanks for that!

    I have been working on a config file to turn of the glass helmet, never thought about using permissions instead ^.^

    You don't mind if I use that do you?
     
  16. nope, that is exactly why I posted it here ;)

    edit: note its the EntityDamageEvent where this is in, you must cast the Entity to the player
     
  17. Offline

    nmc94

    Version 1.4 is out!!!!!

    Here are the changes made:

    Version 1.4:
    - Performance improvements to the glass helmet
    - New permissions node for the glass helmet
     
  18. I didn't see this already.. But is the glass helmet underwater breathing unlimited? or is it duration based? Would be great if it was duration based or eventually breaks.
     
  19. Offline

    nmc94

    The glass helmet is not duration based. It allows you to stay underwater for as long as you want.
     
  20. Offline

    ClearTranquil

    I have the nodrown permission node on my players but for some reason only me (admin and op) and the other admins can stay under water with glass.
     
  21. Offline

    Kainzo

    @nmc94
    Requesting an ability to either:
    1) completely disable the extras
    or
    2) Lightweight version that *only* does /hat
     
  22. Offline

    nmc94

    Version 1.4.1 is out which releases the source code in the .jar file

    I am planing to release a version with only the hat features or possible disabling it all together if a few more people request it.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  23. Offline

    jonDatz

    I would also like a lightweight or completely toggleabble version if at all possible. Very awesome plugin btw.
     
  24. Offline

    Kainzo

    Sweet. Not that the work you've done is bad, we're just an extremely large server and even the slightest new features can upset the balance of performance to higher capacity.
     
  25. Offline

    nmc94

    Just an update, I have chosen to remove the glass helmet features and make the plugin simply putting blocks on your head. I will implement this in version 1.5 which is going to be released after the next bukkit RB.
     
  26. Offline

    Mykekeul35

    Bug detected :D
    [​IMG] [​IMG] [​IMG] [​IMG]

    Thx for this fun plugin !
     
  27. Offline

    nmc94

    Thats not a bug, and it can't be fixed. :p
     
  28. Offline

    Mykekeul35

    Ok ! Thx ! It's so fun :D
     
  29. Offline

    Deren909

    oink.. lol love the plugin
     
  30. Offline

    pegasus

    Decided to figure out why the not drowning thing was utterly failing at life.

    Code:
      private boolean checkPermission(Player player, String string) {
        return false;
      }
    
    ...fucking seriously? What the hell?
     
    nmc94 likes this.

Share This Page