Inactive [MECH] ScubaKit 3.1.0 - Use helmets to stay underwater [2034][1.2.3-R0.1]

Discussion in 'Inactive/Unsupported Plugins' started by Choelian, Jun 13, 2011.

  1. Offline

    Choelian

    [​IMG]
    ScubaKit
    Current Version: 3.1.0 for CraftBukkit [2034][1.2.3-R0.1]
    Helmets change how long you can stay underwater.​
    (Source)​
    This plugin is 1.2 ready. BRING IT ON BUKKIT STAFF.
    I hear this plugin is crazy complex. like 200 lines of code OMGGGGGGGGGGGGGGGGG
    You put it on your head, then jump in the water. You'll be able to stay in the water a great deal longer. The length of time (or if it has to even be a pumpkin) is configurable.​
    Features:​
    • Different helmets can change your maximum air to different amounts.
    • The default amount of air a player has (no helm) can be configured as well
    Commands:​
    • None
    Configuration:​
    open config.yml in Plugins/ScubaKit/ . If it does not exist, you can either get it from the Full Zip, or just run your server once with the ScubaKit installed. ScubaKit will automatically generate the file.​
    It should look something like this;​
    Code:
    scubaValues:
     
        leatherAir: 320
        diamondAir: 320
        ironAir: 320
        pumpkinAir: 320
        chainAir: 320
        defaultAir: 320
        goldAir: 320
    system:
        ignorePermissions: true
        SuperPerms: false
        blockHatInstalled: false
        debugLogs: false
    Values shown here are default values assumed if a value is missing.
    The number listed is the number of tics you can stay underwater with the helm indicated in the words next to said number. I believe vanilla Minecraft's default value is 300, but by default we give our players a little extra breathing room. ignorePermissions tells the mod to not bother doing permission checks, instead we assume everyone is allowed to use scubagear.​
    Permission Nodes:​
    inside the config file are 2 settings that control permissions​

    Permissions settings (open)

    ignorePermissions: true​
    SuperPerms: false​

    If ignorePermissions is set to true, we don't bother checking for permissions when players run around with fancy helms on.
    If ignorePermissions is false, then there is a single node to set whether or not a player can use ScubaGear:
    Simple Permissions Node (open)

    ScubaKit.ScubaGear.* - allows players lungs to be altered by the mod​

    Or, you can use its children nodes to set specific helms as usable. In this way, each helm has its own permission node
    ChildrenPermissions Nodes (open)

    ScubaKit.ScubaGear.Pumpkin - allows players lungs to be altered by wearing a pumpkin helm​
    ScubaKit.ScubaGear.Chain - allows players lungs to be altered by wearing a chain helm​
    ScubaKit.ScubaGear.Leather - allows players lungs to be altered by wearing a leather helm​
    ScubaKit.ScubaGear.Iron - allows players lungs to be altered by wearing an iron helm​
    ScubaKit.ScubaGear.Gold - allows players lungs to be altered by wearing a gold helm​
    ScubaKit.ScubaGear.Diamond - allows players lungs to be altered by wearing a diamond helm​

    Please note, that by default, nothing gives extra air, you must configure it.


    Changelog:
    3.1.0 - Fixed error on movement while not wearing a helm. Oops. Also moved all strings to a seprate file so they can be changed into any language.​
    3.0.2 - SuperPermissions fix. (Thanks Andrewkm)​
    3.0.1 - Updated for bukkit #1938. Removed silly "in 3d" message​
    3.0.0.D - Updated for bukkit #1597. Fixed infinite air exploit​
    3.0.0.C - Updated for bukkit #1337. New setting, displayWarningMessage, toggles the air remaining message on or off. Spout servers shouldn't need the warning message since bubbles update properly​
    3.0.0.B - Updated for bukkit #1240. No changes.​
    3.0.0.A - Updated for bukkit #1185. Finished blockHat support, and changed how we do it. It should be slightly smarter/faster. Pumpkins no longer give extra air by default. People were getting on my case about only using pumpkins, which was just flat out false. Configure it yourselves (existing config files aren't changed by this).​
    3.0.0 - Totally redid permissions support. We now also support SuperPerms. The nodes are the same between the two. BlockHat support extended for more blocktypes. TypeIDs 1-6 added. Several bugfixes. Added new bugs too probably.​
    2.1.7 - New setting, debugLogs, defaults to false. If set to true, spams your logs uselessly.​
    2.1.6 - Bukkit 1060. Also hacked in support for glass blocks on your head, if you use BlockHat​
    2.1.5 - High detail level logging fix. Whoops. Should probably test better.​
    2.1.4 - Changed the way we load. Better now. No need to upgrade if you're running 2.1.3​
    2.1.3 - Config file ... rearranging. Compiled against bukkit #1000​
    2.1.1 - Minor edge case fix for servers without the permissions plugin.​
    2.1.0- in depth permissions.​
    2.0.0 - Permission support. (3.1.x and 2.7.x should both work)​
    - lots of code rearrange. woo!​
    1.1.2 - Minor fix to logging​
    1.1.1 - Undid "fix" in 1.0.2 Much happier now​
    1.1.0 - Changed to way we check how much air you have. Remaining air is checked every 15 seconds. If you have less air renaming then your maximum air. We say "you have x seconds of air left" (or you are out of air). This fixed "you are out of air" spam.​
    1.0.2 - "Fixed" you have x seconds of air remaining for max air settings that ended with 00​
    1.0.1 - Air remaining messages now in seconds, rather then Tics. Or Ticks, or whatever i was.​
    -Air remaining messages now added in for values as high as 10,000 tics. (500 seconds)​
    1.0.0 - Initial Release, suck on that!​

    Coming Soon:
    Configurable recharge time.​
    Consumables. Thinking about it.​
    More options.​

    *You don't need the full zip. The JAR will create the config files if they don't already exist.
     
    Stormbow, Bjourk, Joannou1 and 3 others like this.
  2. Offline

    Choelian

    2.1.7 adds a new setting, debugLogs, which defaults to false. If set to true, it spams your logs with the stuff you noted earlier. I have not had a chance to test this build on my server, but it was a really simple change. Should be no problems. Its in the main post now.

    edit: It will add the setting to your config file all on its own. Just download, upload and /reload
     
  3. Offline

    Simanova

    Nice job! My log is now debug free
     
  4. Offline

    DarkDanny

    Hey Man. Love the work. The people on my server love the ability to put on a Golden Helmet and go swimming forever. If you might be able to tweak this to make it work with lava as well, that would be AWESOME! Thx :D and Keep up the good work.
     
    Choelian likes this.
  5. Offline

    Choelian

    Updated (3.0.0.A), built against Bukkit 1185.
    Finished blockHat stuff.
    Pumpkins no longer give extra air by default (existing configs are not changed by this), instead all default settings are vanilla Minecraft settings.
     
  6. Offline

    GLR457

    works nice ppl on my server love it. :cool:
     
  7. Offline

    mindystorm

    srry i deleted this plugin because it doesnt support my multiworld plugin (myworld) whenever i go into a water portal it deosnt portal me somewhere it just lets me drown. i set on the config that diamond helmets get 9999999999 ticks so whenever i go in the portal with a diamond helmet it works but not everyone on my server has diamond...

    srry if you think i should be contacting the myworlds develepor i just need a multiworld plugin badly.
     
  8. Offline

    halley

    Sorry if I'm dense, but I'm with the guy who asked if you need to put it on your head. My client won't let me put anything but the normal helmets on the top square of the outfit. In other words, how can I put a gold block on my head?

    I don't have blockHat installed, and the scubakit config is 100% stock.

    Okay, my misunderstanding. You can only use normal helmets... when you say "goldAir" you mean a normal gold helmet, not a gold block. It's only with blockHat that you can wear non-helmets, and even with that, you can't just use the drag-drop interface to put a block on the head. It needs a /hat command to get around the limitations of the client gui.

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

    Choelian

    I could probably have worded it better. But yes, goldAir refers to a gold helmet. If you want to wear a gold block (be all pimpin') and still have your air increased, you'll need to install both BlockHat and set Blockhat: true in the settings. The config file will automatic expand to add the itemID for gold block (42) iirc
     
  10. *You don't need the full zip. The JAR will create the config files if they don't already exist.

    Yeah , I like that you write god things . But do you need to wisper it out ?
    And I will try it out :p
     
  11. Offline

    jungalist81

    Hey there Choelian, I have been having some problems with Scubakit. I am using the latest bukkit version and the latest ScubaKit version (3.0.0.C).

    I have the plugin turned off now so it doesnt fill up the server.log so easily lol.
     
  12. Offline

    Choelian

    Very interesting. Could your post your config? (Plugins/ScubaKit/Config.yml)

    Edit: a NullPointerException probably means I made a mistake in coding, but I need to know how you caused that mistake to manifest itself. Your config file is the key!
     
  13. Offline

    jungalist81

    What I did was change the 1st tick number from 320 to 400 and saved. Thats when i started receiving the error. Ive actually had this error for a month now, I apologize for reporting so late, my members just simply forgot about it...

    Another error I get is whenever I try to use Plugin Loader to load ScubaKit, I get a spam of PLAYER_MOVE on my config however, Scubakit loads correctly when its properly loaded by a server restart.
     
  14. Offline

    Choelian

    Interesting, I'll investigate and get back to you by the end of the weekend.
     
  15. Offline

    Joannou1

    Could you please update this for 1.0? I really love this plugin on my server, and it helps out a ton!
    Thanks!
     
  16. Offline

    Choelian

    Waiting for a recommended build of bukkit for 1.0.0, but in the mean time, I'm pretty sure the current version of scubakit will work.
     
  17. Offline

    Joannou1

    It just
    says I'm out of air all the time in all worlds... So I'm not sure!
    No errors at all!
     
  18. Offline

    Choelian

    very interesting. Well, we'll wait for the RB, and see what happens.
     
  19. Offline

    -Pr0ph3t-

    Hi everyone,

    I'm running the latest bukkit with 1.0 and this plugin doesn't work for me.

    Am I doing something wrong or is it not compatible? Just trying to find a way to have a pumpkin make you breathe longer and this is the only mod that does just that.

    It says it loaded correctly in my server log file
     
  20. Offline

    Matteius

    I know you don't want to bother until there's a recommended build, but just confirming that on 3 separate servers it does the "You are out of air" all the time (not just under water), and has no actual desired or undesired affects on air, and no error messages.
     
  21. Offline

    Choelian

    @-Pr0ph3t- @Matteius @Joannou1 Yup, I'm watching it. I believe it may actually be a bukkit bug. Player.GetRemainingAir() ALWAYS returns 0 since 1.0.0, which shouldn't happen. Player.setMaximumAir() also seems non functional. I've reported the bug to bukkit in their tracker.

    I'll post here if/when I have more information.
     
  22. Offline

    Matteius

    Sounds awesome ^_^
    I must say I'm eagerly awaiting an RB for 1.0.0 so that more mods can come out.
     
  23. Offline

    -Pr0ph3t-

    ah thank you very much
     
  24. Offline

    Choelian

  25. Offline

    Zombiemold

    The test build doesn't seem to work at all for our server... It's possible the block hat compatibility is messing it up (Block hasn't been updated recently has it?)

    Anyways, Pumpkins aren't giving us air. Had to resort to WorldGuard's Pumpkin Scuba setting (yuck)
     
  26. Offline

    Choelian

    what version of craftbukkit?
     
  27. Offline

    Zombiemold

    This server is running Craftbukkit version git-Bukkit-1.8.1-R4-77-ge86a355-b1550jnks (MC: 1.0.1) (Implementing API version 1.0.0-R1-SNAPSHOT)
     
  28. Offline

    Choelian

    hmmm. Interesting. Well, thats a test build for you. If you would post your ScubaKit/config.yml, I'd appreciate it, but I wont be able to fix it tonight, probably.
     
  29. Offline

    Zombiemold

    Oh, don't sweat it, I totally understand. Just wanted to let you know, might even be fixed in the next Craftbukkit update lol.

    http://pastebin.com/ihnae1nE
     
  30. Offline

    -Pr0ph3t-

    aww man I accidently rolled back to craftbukkit 1.8.1 from 1.0 and everything went to hell.... (I didn't realize 1.0 is test build and latest recommended is 1.81)

    your plugin started working however lool

    I'm going to do a rollback and try again with your D release.. we'll see if it makes a difference.

    If not, perhaps it is the way it is passing the event to bukkit? (forgive my ignorance)
     
  31. plugin doesn't seem to be working...
     

Share This Page