FishPeople
Note:
No longer updated. I apologize for inactivity but I haven't had time to touch this or keep up with Bukkit's updates in months.
FishPeople allows players to spend extended time under water by providing a configurable amount of extra air (up to infinite air). By wearing certain equipment, players can receive benefits ranging from extra air to being able to swim in lava safely.
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
Configuration: File located at /plugins/FishPeople/config.yml This file will be created if it does not exist and will contain these default settings.
enabled: true helmet-type: "gold_helmet" chat-filter: true underwater-chat: "[glub glub glub]" air-multiplier: 1 helmet-damage: 0 helmet-replacement: "air" low-air-warning: 1 low-air-message: "You are about to drown"
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
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:316) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:510) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 2012-09-13 06:41:10 [WARNING] [FishPeople] Task #21 for FishPeople v1.7.1 generated an exception java.lang.NullPointerException at net.rarobertson.fishpeople.FishPeopleAirRestoration.run(FishPeopleAirRestoration.java:57) at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:52) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:316) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:510) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 2012-09-13 06:41:11 [WARNING] [FishPeople] Task #21 for FishPeople v1.7.1 generated an exception java.lang.NullPointerException at net.rarobertson.fishpeople.FishPeopleAirRestoration.run(FishPeopleAirRestoration.java:57) at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:52) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:316) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:510) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 2012-09-13 06:41:12 [WARNING] [FishPeople] Task #21 for FishPeople v1.7.1 generated an exception java.lang.NullPointerException at net.rarobertson.fishpeople.FishPeopleAirRestoration.run(FishPeopleAirRestoration.java:57) at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:52) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:316) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:510) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
[WARNING] [FishPeople] "FishPeople v1.7.1" has registered a listener for org.bukkit.event.player.PlayerChatEvent on method "public void net.rarobertson.fishpeople.FishPeoplePlayerListener.onPlayerChat(org.bukkit.event.player.PlayerChatEvent)", but the event is Deprecated. Server performance will be affected; please notify the authors [].
It seems craftbukkit has done this with purpose, so the fix should be on your side.
I hope you can fix it.
23:52:14 [INFORMATION] This server is running CraftBukkit version git-Bukkit-1.2.5-5.0-27-gc0e167f-b2296jnks (MC: 1.3.1) (Implementing API version 1.3.1-R0.1-SNAPSHOT)
23:48:55 [INFORMATION] [FishPeople] Enabling FishPeople v1.7.1 23:48:55 [INFORMATION] [FishPeople] version 1.7.1 is enabled! 23:48:55 [WARNUNG] [FishPeople] "FishPeople v1.7.1" has registered a listener for org.bukkit.event.player.PlayerChatEvent on method "public void net.rarobertson .fishpeople.FishPeoplePlayerListener.onPlayerChat(org.bukkit.event.player.Player ChatEvent)", but the event is Deprecated. Server performance will be affected; please notify the authors []. org.bukkit.plugin.AuthorNagException at org.bukkit.plugin.java.JavaPluginLoader.createRegisteredListeners(Jav aPluginLoader.java:302) at org.bukkit.plugin.SimplePluginManager.registerEvents(SimplePluginMana ger.java:507) at net.rarobertson.fishpeople.FishPeople.onEnable(FishPeople.java:493) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:357) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:263) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:245 ) at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296) at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225) at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
update?
Can this be combined with a Block Hat plugin in order to make the "helmet" requirement a particular block (ie, glass), or does the config require a real helmet?
19:19:36 [WARNING] Task of 'FishPeople' generated an exception java.lang.NullPointerException at net.rarobertson.fishpeople.FishPeopleAirRestoration.run(FishPeopleAirRestoration.java:57) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:533) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
@Jessicadawn
Without any context, I don't have any way to determine why the infinite air would only work part of the time. I can't fix it unless an error occurs saying what actually went wrong. Nothing in the code would cause it not to work the entire time if it hasn't crashed.
Also it seems as the infinite air only works part time. People have been dying while having the golden helmet on. I will be keeping watch on the console to see as to why this is happening if errors are popping up.
Please update <3 i love this plugins its one of our donators plugins.
@Jessicadawn
Thank you for the bug report. It looks like Bukkit is screwing around with more features without telling anyone. Will fix.
RB 1.2.5 r0.1 v1.7.1
Errors:
2012-04-08 19:13:28 [WARNING] Task of 'FishPeople' generated an exception java.lang.NullPointerException at net.rarobertson.fishpeople.FishPeopleAirRestoration.run(FishPeopleAirRestoration.java:57) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:517) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Sounds great that you are updating. Can't wait I use this plugin a lot with donators.
To those commenting on extended air not working, I will do some testing. This shitty BukkitDev thing doesn't tell me when people write comments on here so I didn't realize.
Extended air doesn't work for me either.
It loads in 1.2.3, but does not actually appear to work, at least the extendedair function doesn't. Hope you are able to update it, thanks!
Can you please update to the latest standard and/or release the source so that someone else can take over?
Please update to 1.2 :)
And please PM when you finally do.
Please update <3 :)
what other benefits can there be? you a tad unclear about that