Inactive [MECH] FishPeople v1.7.1 - Gold Helmet = Infinite Air While Swimming [1.2.3-R0.2]

Discussion in 'Inactive/Unsupported Plugins' started by Richard Robertson, Mar 4, 2011.

  1. FishPeople - Infinite air underwater:
    Version: v1.7.1

    This plugin is for servers that focus more on creative rather than survival. It makes building underwater infinitely safer because you no longer drown. The only downside is that people who are underwater can no longer speak. Instead there is a comical [glub glub glub] accompanying any underwater chat messages.

    • Infinite air while wearing gold helmet (or configured item)
    • Garbled underwater chat (if configured)
    • Permissions support!
    • Now swim in lava! (if configured)
    • Supports item names as well as ID numbers
    Also available here

    File located at /plugins/FishPeople/config.yml
    This file will be created if it does not exist and will contain these default settings.
    These default settings will also be used if a value is not set.

    • fishpeople.infiniteair
      Gives the player infinite air while wearing the helmet (overrides extended air)
    • fishpeople.extendedair
      Gives the player more air while wearing the helmet
    • fishpeople.cantalkunderwater
      Lets the player talk underwater and bypass the filter
    • fishpeople.invinciblehelmet
      Prevents the player's helmet from taking damage if damage is configured
    • fishpeople.lavasafe
      Allows the player to swim in lava (no burning damage)
    • fishpeople.config
      Allows the player to call /fishpeople
    • fishpeople.*
      Emulates having infinite air, invincible helmet, lava safe, config, and chat filter bypass

    • /fishpeople help
      Lists all commands available
    • /fishpeople help <command>
      Gives help on the command given
    • /fishpeople reload
      Reloads the configuration from the hard disk
    • /fishpeople enable
      Enables the infinite air and chat filter
    • /fishpeople disable
      Disables the infinite air and chat filter
    • /fishpeople helmet-type <id>
      Sets the item id for the head item that gives infinite air
    • /fishpeople chat-filter true
      Replaces chat messages when players are underwater
    • /fishpeople chat-filter false
      Allows users to talk normally underwater
    • /fishpeople underwater-chat <message>
      Sets the message that appears when someone talks underwater
    • /fishpeople air-multiplier <number>
      Extends the amount of air players have
      "/fishpeople air-multiplier 2.5" would mean they have two and a half times as much air
    • /fishpeople helmet-damage <amount>
      Every second a player is underwater and wearing the special helmet it will take the damage specified
    • /fishpeople helmet-replacement <id>
      Sets the item id for the head item that will be set when a helmet is destroyed
    • /fishpeople low-air-warning <seconds>
      When a player has only <seconds> left of air, they get a warning
      Set negative to not give a warning
    • /fishpeople low-air-message <message>
      Sets the message to be displayed when a person hits the low-air-warning mark

    Version 1.7.1
    • Fixed null pointer exception occurring on Minecraft 1.2 and higher
    Version 1.7
    • Removed defunct Permissions 3 support
    • Fixed helmet damage
    • Updated to match Bukkit's new event handling system.
    Version 1.6
    • Compiled for Permissions 3 support
    Version 1.5
    • Bug fixes: falling damage while in lava, and race condition when loading Permissions plugin
    Version 1.4
    • Bug fix: replaced player.getLocation() with player.getEyeLocation() so effects only happen when the player's head is underwater
    Version 1.3
    • Changed event registration to match Craftbukkit 600+
    Version 1.2
    • Permissions support
    • Can have extended air instead of only infinite air
    • Can configure a message to appear warning those with extended air that they will drown soon (since the client bubbles are wrong)
    • Can configure helmet to take damage while being worn
    • Can replace the helmet when something else when it is "destroyed" from being used. You could use this to say, turn your gold helmet to a leather helmet when the magic runs out
    • Added the ability to swim in lava
    • Fixed problem where some servers would not restore air
    Version 1.1
    • Helmet type configurable
    • Underwater chat message configurable
    • Underwater chat message disable-able
    • Can limit to ops only
    • Can adjust all options at runtime
    Version 1.0
    • Initial release

    Known issues:
    • Client side remaining air bubbles still disappear; I cannot do anything about this.
  2. As stated in the first post, I can't do anything about the bubbles. Minecraft client doesn't use the server's air value for display. Even though the server lets you change the air and max air, the client never changes and just removes bubbles from the display when you are under water.
  3. Offline


    I read your first post and thought you meant the bubbles you see underwater when you're out of air... if you could indicate that the bubles you're talking about are the remaining air timer bubbles then I might not have been so confused :)

    Or put something to indicate "The air remaining timer will run to ZERO. Don't Panic... You'll still have air left." :)

    It was just confusing to me :p

    No worries! Great plugin!
  4. I reworded it to say remaining air bubbles. Maybe that will help others.
  5. Offline


    I am using permissions and people who do not have permission are still safe from lava. Tried essentials permission and permissions from phoenix.
  6. Show me your permissions and config entries please.
  7. Offline


    Thank you but setting lava-safe: false solved the issue
  8. Easy fix then.
  9. Offline


    I know the subject says 740, but does it work on CB803? I have some problems getting it to work.
    When I stay under water I start drowning - I used it on 740, and it worked fine there.

    enabled: true
    op-only: false
    helmet-type: "gold_helmet"
    chat-filter: true
    underwater-chat: "[glub glub glub]"
    infinite-air: false
    air-multiplier: 3.5
    helmet-damage: 0
    helmet-replacement: "air"
    lava-safe: false
    low-air-warning: 1
    low-air-message: "You are about to drown"
    I have "- 'fishpeople.extendedair'" in my Permissions file
  10. There were no changes that could break plugins from the updates since 740.

    Extended air means you have more air than normal, and not that you can stay under forever.
  11. Offline


    I know, but the second the client bubbles go away, I start losing health. As I wrote, I used it on 740 (or atleast 733) and it worked just fine.
  12. I'll test it later to see if I get the same result.

    Tested, and I confirmed all features work fine for me on 803.

    Can you check your server log for any lines that contain [FishPeople] and a message about not being able to register an event?
  13. Offline


    Does it support permissions 3.0??
  14. As long as the internal model didn't change, yes. I wasn't even aware that Permissions hit 3.
  15. Offline


  16. Nothing in the Permissions API changed. I'm not sure why it doesn't work but I can rebuild against the latest Permissions source to see if that fixes it for you.

    Uploaded 1.6 with Permissions 3.
  17. Offline


    Cant we have multiple materials that give you underwater breathing. Like: Helmet Material: Gold, Leather, Diamond.
  18. I can do that. I've also been looking into ways to do other pieces of armor, like requiring some weird set like "gold boots, diamond helmet, and a water bucket in your hand."

    I actually think I just came up with something. Lemme write this down and I'll play with it later.
  19. Offline


    Well, 818's the new recommended build. Let's see how this build works. I'll paste an error log if I run into issues.
  20. Yes I know 818 is the new recommended build. There weren't any API changes but I haven't tested FishPeople myself yet.
  21. Offline


    All appears to be working as it should for me on 818.
  22. Thanks for that.
  23. Offline


    khamseen_air likes this.
  24. khamseen_air likes this.
  25. Offline


    CB818, Permissions b3.1.5, and FishPPL 1.6
    Everything seems to be working fine, gold helmet, air meter runs out but I don't drown, sweet. Have yet to test infinteair or glubglub, but it works for me as admin.

    Only one little thing bothers me. Server console has some problems with Permissions:

    2011-06-09 13:19:07 [INFO] Preparing level "world"
    2011-06-09 13:19:07 [INFO] Preparing start region for level 0
    2011-06-09 13:19:08 [INFO] Preparing start region for level 1
    2011-06-09 13:19:08 [INFO] Preparing spawn area: 8%
    2011-06-09 13:19:09 [SEVERE] java.lang.IllegalAccessError: tried to access class com.nijiko.permissions.ModularControl$RefreshTask from class com.nijiko.permissions.ModularControl
    2011-06-09 13:19:09 [SEVERE]     at com.nijiko.permissions.ModularControl.<clinit>(
    2011-06-09 13:19:09 [SEVERE]     at com.nijikokun.bukkit.Permissions.Permissions.setupPermissions(
    2011-06-09 13:19:09 [SEVERE]     at com.nijikokun.bukkit.Permissions.Permissions.onLoad(
    2011-06-09 13:19:09 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    2011-06-09 13:19:09 [SEVERE]     at net.minecraft.server.MinecraftServer.e(
    2011-06-09 13:19:09 [SEVERE]     at net.minecraft.server.MinecraftServer.a(
    2011-06-09 13:19:09 [SEVERE]     at net.minecraft.server.MinecraftServer.init(
    2011-06-09 13:19:09 [SEVERE]     at
    2011-06-09 13:19:09 [SEVERE]     at
    2011-06-09 13:19:09 [SEVERE] [Permissions] Unable to load permission data.
    2011-06-09 13:19:09 [SEVERE] [Permissions] Shutting down Permissions due to error(s).
    2011-06-09 13:19:09 [INFO] [Permissions] (Yeti) was initialized.
    Also, as other plugins are loading, it says "[Permissions] (Yeti) disabled successfully." The only affect I've seen so far is not being able to use /pr commands. Other plugins still use individual permissions and restrictions, and function as if Permissions was working, I just can't use /pr.
    My other plugins: Backup, Cabinet, GiveTo, Help, Lockette, motd, Permissions, PlugMan, Runecraft, Tomb, WeatherControl, WorldEdit.

    backed up to Permissions 3.1.1, now with no errors. Again, awesome plugin you got here!

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


    I'm not taking any fall damage when I'm wearing the helmet. Is that intended?

    Edit: nevermind, my mistake
  27. The fall damage issue has been solved. I assume you just downloaded the update.
  28. Offline


    Is it possible to have two items support infinite air ? Such as a gold helmet and diamond helmet
  29. That's going to be in the next update. I'm working on a way for combinations of worn items to make the infinite air effect.

    My problem is that the most organized way to do it would be to switch my config file to XML (and get rid of that bastardly YML) but most plugin users around here don't seem to like XML.
  30. Offline


    Cool beans, thanks for your mod :)
  31. Offline

    Jan Tojnar

    what about json:
    items: [
    {"helmet":"iron", "chest":"diamond", "air":1.3},
    {"foot":"chainmal", "air":1.1},
    {"helmet":"leather", "chest":"leather", "foot":"leather", "legs":"leather", "air":4.0}

Share This Page