[FUN/MECH] Breathe v1.0 - Breathe underwater [1060]

Discussion in 'Inactive/Unsupported Plugins' started by SwearWord, Aug 20, 2011.

  1. Offline

    SwearWord

    Plugin: Breathe
    Version: 1.0

    Description:
    Been making a lot of really basic plugins that really should exist already. Let's you breath underwater, no pumpkins nothing stupid. Apparently the only other plugin that let you do this hooked into PLAYER_MOVE and spawned a block of air on your head.

    Features:
    Breathe underwater.

    Permissions:
    breathe.use - Breathe underwater.

    Source:
    Code:
    package org.blockface.breathe;
    
    import org.bukkit.entity.Player;
    import org.bukkit.event.Event;
    import org.bukkit.event.entity.EntityDamageEvent;
    import org.bukkit.event.entity.EntityListener;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class Breathe extends JavaPlugin {
        public void onDisable() {
            System.out.println(this + " is now disabled!");
        }
    
        public void onEnable() {
            this.getServer().getPluginManager().registerEvent(Event.Type.ENTITY_DAMAGE,new EntityEvents(), Event.Priority.Normal,this);
            System.out.println(this + " is now enabled!");
        }
    
        public class EntityEvents extends EntityListener
        {
            @Override
            public void onEntityDamage(EntityDamageEvent event)
            {
                if(!(event.getEntity() instanceof Player)) return;
                Player player = (Player)event.getEntity();
                if(!player.hasPermission("breathe.use")) return;
                if(event.getCause() == EntityDamageEvent.DamageCause.DROWNING) event.setCancelled(true);
    
            }
        }
    }
    
    Download

    Change Log
    • 1.0
      • First and final release.
     
    vrox, dkramer, AS1LV3RN1NJA and 2 others like this.
  2. Offline

    Jonchun

    Nice and simple. I'm gonna use this forsure.
     
  3. Offline

    SebbeG17

    Im looking for a quick answer:
    My dosent work, i have the latest craftbukkit, and the latest of this. I have the Breathe.jar in the plugins folder, and then i have the permission node breathe.use But when im going underwater everything seems normal, and after a little while i die like normal.
    This dosent work or do i anything wrong ?
     
  4. Offline

    sh4nks

    nice! i really like small plugins :)
     
  5. Offline

    SwearWord

    SuperPerms, upgrade.
     
  6. Offline

    Subject0017

    Does this Support EssentialGroupManager if so Great I will get it :D
     
  7. Offline

    Celeixen

    Sorry dude it doesn't see... player.hasPermission("breathe.use") <-- that is for the bukkit built in superPerm system only :p
    But anyway i suggest you update to something like bPermissions anyway its much better and can import groupmanager settings anyway.
     
  8. Offline

    SwearWord

    Sigh.

    SuperPerms is not a plugin. bPerms is a super perms manager. It tells player.hasPermissions when to return true.
     
  9. Offline

    Celeixen

    umm derp thats what i said. i am a plugin dev Btw, maybe you should read what i said again, i was just helping the other guy.

    I clearly was stating that he should upgrade from Groupmanager (a permission managing plugin) to bPermissions (One of the new permissions managers). I referenced the source code, trying to show that group manager does not support that type of permissions management.Also why would i say "built in" to bukkit if i think superPerms is a plugin?

    You be trolling?
     
  10. Offline

    SwearWord

    I thought you were talking to me and telling me to update this for bPerms.

    Either way, "I am a plugin dev." Don't make me laugh.
     
  11. Offline

    Celeixen

    Ohh, i thought you were trying to be really condescending which you still are but meh (it was pretty clear that i quoted that guy). I am not trying to start a war or anything because you seem like a cool guy but really a lot of the plugins you have made are pretty basic,Although careers does look interesting :p

    I understand that i don't have many plugins yet or the title but i decided to release one in the last week. And the only reason i refereed to being a "plugin dev" was because all of my plugins use superPerms, and it would seem pretty stupid if i didn't even understand my own plugin.

    This will be the last thing i post because i don't wanna hijack this thread :)
     
  12. Offline

    SwearWord

  13. Offline

    Celeixen

    Fair enough, i get where you are coming from. Now next time when i quote a guy thats not you, can you read it twice before responding and making everything really confusing for me because i was like wtf did he mean to tag the other guy? why is he saying to me what i just said :/

    and if you want ill delete all these of your post so doesnt ruin your plugin wall.
     
  14. Offline

    SwearWord

    @Celeixen
    Relax it doesn't matter, I thought you were quoting yourself for some reason, it was my mistake.
     
  15. Offline

    Opterongeek

    Can anyone tell me if this works for 1.8 bukkit with PermissionsEX? Really getting tired of the door trick ;)
     
  16. Offline

    SwearWord

    Yes it does.
     
  17. Offline

    CeramicTitan

    broken link, buddy
     
  18. Offline

    SwearWord

  19. Offline

    CeramicTitan

    thanks

    sorry but its not on bukkitdev

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

    Jordan59961

    lol Megaupload got stopped by the FBI so...

    New download link please.

    BTW everyone loves MediaFire or even better a direct link! :)
     
  21. [quote uid=58202 name="Jordan59961" post=980480]lol Megaupload got stopped by the FBI so...

    New download link please.

    BTW everyone loves MediaFire or even better a direct link! :)[/quote]
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 12, 2016
  22. Offline

    FuRiouSOne

    I know it says first and final release but any chance on updating to new bukkit event system? bukkit 1.2 broke this plugin along with many other inactive plugins :(
     
  23. Offline

    JJSCRAFT

  24. Offline

    musicin3d

  25. Offline

    md_5

    Long time no see SwearWord. You will notice that this thread has now been placed into the Inactive Plugin subforum.
    If you wish to revive this plugin, please ensure that you update and test compatibility with the latest recommended Bukkit build before reporting your original post, asking for it to be moved back to the release forum.

    Thanks for your time.
    md_5
     

Share This Page