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.

    Features:
    • 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
    Download http://dl.dropbox.com/u/22618541/Bukkit/FishPeople.jar
    Also available here http://dev.bukkit.org/server-mods/fishpeople/files/3-v1-7-1/

    Configuration:
    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.

    Permissions
    • 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

    Commands:
    • /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

    Changelog:
    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.
    [​IMG]
     
  2. Well I appreciate you trying. When I get the debugging info working, we can try again and see what's missing.
     
  3. Offline

    xGhOsTkiLLeRx

    Hi,

    I set op-only to false, but have still no acess to /fishpeople!
    I'm using permissions...

    Greets
     
  4. The op-only setting controls who gets infinite air. You [currently] always have to be op to call /fishpeople.

    I'm working on a new version right now that will include Permissions support and you will be able to add "fishpeople.config" to any user among other things.

    If you aren't getting infinite air, I am pretty sure I solved that problem too. A number of people reported this and I believe I found the reason.
     
  5. Offline

    xGhOsTkiLLeRx

    Because I'm using permissions, my ops.txt is empty.
    Would be great, if you can release a updated version with support for permissions!

    But great idea & plugin!
    Keep up your work...

    (Maybe a chain helmet is better :D
    Not so easy to make, but would be cool with Essentials "/kit" [Only once a day or so :D]
    But I can edit the config for me :p)
     
  6. You can set whatever head item you want in the config file. If you want to use chainmail, you're welcome to it.
     
  7. Offline

    mechaaries

    ive run into same problem as parker digg dont know what changed it worked awhile before but not anymore.
     
  8. I know what the problem is and I'm working on it. The thing that's keeping me from finishing is permissions support. I wanna have that done for the next release.
     
  9. Offline

    Kiashien

    Something that would be nice.... Could it be possible to include more slots to be required? (I understand if it is not, I simply want to make it cost people a bit more to gain this ability :))
    Ex: Wear an entire gold suit instead of just the helmet

    Basically the price would be they'd have to wear (mostly) crappy armor :)
     
  10. If you can come up with a way to write which slots require what in a config file, then sure. The problem with that is for people who only want a helmet, what would they mark the other slots as?
     
  11. Bump with version 1.2 update. :D
     
  12. Offline

    Rilly

    Swim in Lava?? You won't get hurt by walking into lava? No catching fire or anything?

    Now that is cool! So as long as you have this item on (that you've designated) you will be untouched by lava?


    edit: FYI - need to delete your current config.yml file, or the new one won't get created with all the new options
     
  13. Offline

    xGhOsTkiLLeRx

    Can you tell me the permissions I have to add?
    :D

    Greets & thanks for the update!
     
  14. DOH! Thanks for reminding me! I kept thinking there was something in the first post I forgot to add. Adding it now.

    Yes. It cancels all lava and fire damage so you can swim in it like it was water.
     
  15. Offline

    xGhOsTkiLLeRx

    Haha, thanks ;)

    Btw!
    Not working with cb #560+!
    Maybe you can go to fix it to the next recommend build of cb ;)

    Greets
     
  16. 560 isn't a recommended build. I'm not required to support development builds. However, I would like to fix any problems. Did you get any errors or is it just not restoring air? If there are no errors, please post your configuration file and permissions.
     
  17. Offline

    ioScream

    I have it set like so:

    Code:
    enabled: true
    op-only: false
    helmet-type: gold_helmet
    chat-filter: false
    underwater-chat: '[glub glub glub]'
    infinite-air: false
    air-multiplier: 1
    helmet-damage: 1
    helmet-replacement: air
    lava-safe: false
    low-air-warning: 1
    low-air-message: 'Air is low.'
    
    It doesn't seem to ever run out of air. I've read this entire thread, and am now making a reply while standing under water.. still not out of air.

    Also when I use the /fishpeople command as admin, it sends the command through successfully, but then says it doesnt recognize the command. Permissions is mostly default in terms of how the Admin group is setup aka permissions: * which has worked for all of the other plugins.

    P.S. Still not out of air.
     
  18. Do you have your player's account listed as Admin in permissions? That is why you have infinite air. Permissions override the config file.

    I found the error where it says that it's invalid. Thanks. Fixed in upload in a couple minutes.

    Upload complete. Redownload to fix the config messages.
     
  19. Offline

    ioScream

    This is what the relevant area of my Permissions file looks like:
    Code:
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    ------[some stuff]-------
    users:
        ioScream:
            group: Admins
            permissions:
        idget5:
            group: Admins
            permissions:
        fscked:
            group: Admins
            permissions:
    
    
     
  20. By giving your players '*' permission, you are automatically giving them 'fishpeople.infiniteair' and that is why none of you are drowning.
     
  21. Offline

    ioScream

    Ohh... okay.. I get it. Hmm.. so just giving them permission to infinite air gives them infinite air... a bit silly, but I guess I'll find away to deny just that, and it's just the 3 of us on Admins, everyone else should drown appropriately.
     
  22. Well, it would be better to assign only the permissions each person should have and not falling back on '*'.

    I'm sure that's recommended somewhere in the Permissions docs. If you can even find them anymore...
     
  23. Offline

    ioScream

    While I agree, this is a private server and I don't bother micro-admin'ing.. my only concern is I would like to be able to toggle infinite-air, while not having to completely deny the Admin group from using infinite air at all. You know what I'm saying? I play along-side with my players and try not to give myself "super powers".
     
  24. Well, that's the way Permissions works.

    You can always call /fishpeople disable when you want to turn it off. Or just not wear the gold helmet.
     
  25. Offline

    harakiwi

    Hi!

    I tried your plugin and it works fine ... but there is one deadly issue in your "lava-safe-code"
    You still get a lot of falling damage after you jump out of your favorite lava pond
    or reach the bottom of a lava "sea".

    Still a very cool plugin, but swimming in lava isn't "safe".

    my config:
    Code:
    enabled: true
    op-only: false
    helmet-type: "gold_helmet"
    chat-filter: true
    underwater-chat: "[glub glub glub]"
    infinite-air: true
    air-multiplier: 1
    helmet-damage: 0
    helmet-replacement: "air"
    lava-safe: true
    low-air-warning: 1
    low-air-message: "You are about to drown"
    my admins are allowed to do everything ( * )
    players only got
    Code:
    groups:
        Builder:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'deathtpplus.*'
                - 'tombstone.*'
                - 'fishpeople.infiniteair'
                - 'fishpeople.lavasafe'
                - 'fishpeople.invinciblehelmet'
     
    Richard Robertson likes this.
  26. You receive falling damage after getting out of lava? That's amazing. I'm almost ready to worship Notch for that bug.

    Sad to say, I have no control over that. I don't have a way to know whether you got that falling damage due to lava or due to normal falling. Also, I've never encountered that before.
     
  27. Offline

    Windwaker

    is there a way you can make it so only a certain group can use the helmet at all?

    Not the "Only OPs" setting.

    Ty :D
     
  28. If you have Permissions, giving groups 'fishpeople.infiniteair' and 'fishpeople.extendedair' will give only those groups the ability to breath underwater.

    I guess I should clarify which settings are overridden when you use permissions.
     
  29. Offline

    Windwaker

    Ahh. I got the impression that without using those with the limited air function any one could use the helmet.
     
  30. In the first post, I added which config options are overridden when you use Permissions.
     
  31. Offline

    Windwaker

    Okay got it
     

Share This Page