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.
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 ?
Sorry dude it doesn't see... player.hasPermission("breathe.use") <-- that is for the bukkit built in superPerm system only But anyway i suggest you update to something like bPermissions anyway its much better and can import groupmanager settings anyway.
Sigh. SuperPerms is not a plugin. bPerms is a super perms manager. It tells player.hasPermissions when to return true.
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?
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.
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 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
@Celeixen www.github.com/ChunkyDev/Chunky Yeah. Exactly. I generally don't release complex plugins. Too much work to support them so I only release simple ones that should already exist.
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.
@Celeixen Relax it doesn't matter, I thought you were quoting yourself for some reason, it was my mistake.
Can anyone tell me if this works for 1.8 bukkit with PermissionsEX? Really getting tired of the door trick
thanks sorry but its not on bukkitdev EDIT by Moderator: merged posts, please use the edit button instead of double posting.
lol Megaupload got stopped by the FBI so... New download link please. BTW everyone loves MediaFire or even better a direct link!
[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>
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
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