Inactive [MECH/FUN/RPG] EffectiveArrows v2.5.3 - Arrows are now Effective![SPOUT] [1060]

Discussion in 'Inactive/Unsupported Plugins' started by skeletonofchaos, Jul 14, 2011.

  1. Offline

    skeletonofchaos

    EffectiveArrows -the bow is now an effective weapon!
    PluginVersion 2.5.3
    ServerVersion /version: git-Bukkit-0.0.0-905-g9277096-b1000jnks (MC: 1.7.2)
    Download EffectiveArrowsv2.5.3

    Requirements:
    • Spout

    Features:
    • Toggle between arrow types by left clicking or if you are using the SpoutCraft launcher you can use the , and . keys to cycle forward and backwards through arrow types.
    • GUI for users using the SpoutCraft launcher.
    • Seven unique arrow types:
    1. Normal: Just the standard arrow, uses one arrow per shot.​
    2. TNT: Explodes on contact, by default uses one arrow and one tnt per shot.​
    3. Lightning: Strikes area with lightning on contact, by default uses one arrow and one diamond per shot.​
    4. Fire: Lights hit area on fire, by default uses one arrow and one wool per shot. Now emits smoke when flying!
    5. Iron: does four damage instead of two, by default uses one iron ingot and one arrow per shot.​
    6. Diamond A.K.A Razor: does six damage, by default uses one diamond and one arrow per shot. They are razor sharp!​
    7. Smoke: Releases a cloud of smoke upon hitting something, by default uses one gunpowder.​

    Permissions (These are super perms):
    The use of permissions can be toggled on/off in the config file if off it will allow players to use allowed arrow types (specified in config) while ops can use all. If permissions are enabled the use of arrows is based on the following nodes, note these are the Bukkit-integrated super perms so you cannot use third party permission plugins like permissions:​
    EffectiveArrow.use.explosive
    EffectiveArrow.use.lightning
    EffectiveArrow.use.flaming
    EffectiveArrow.use.iron
    EffectiveArrow.use.razor
    EffectiveArrow.use.smoke
    Or use EffectiveArrow.use.* to use all arrows!
    I highly recommend using bpermissions for managing super perms.​

    Notes:
    1. The arrow effect works both on contact with entity and blocks; however with blocks there is a small delay.
    2. I would be more than happy to implement new features/arrow types if they are well balanced and the requests are well thought out and politely phrased.
    Upcoming features! (open)
    Eventually custom arrow looks for each arrow type A.K.A. You will be able to see the wool on the fire arrow, the tnt on the explosive arrow and so on. Exciting stuff!

    Features/Tutorial (open)

    Before reporting that you can't switch arrows while using permissions look here:
    Installation (open)

    Remember this plugin uses super-perms which are built into Bukkit not third party applications such as Permissions. To use this you must use a permission handler that directly effects Bukkit permissions (I recommend bPermissions). I understand this is a little hard to grasp seeing that they both do the same thing.



    Changelog:
    v2.5.3:
    Fixed for Spout update! Sorry guys.​
    v2.5.2:
    Fixed for RB 1060!​

    Previous Versions (open)

    v2.5.1:
    Explosive arrows can now be effected by world guard and other such plugins that effect explosions.​
    v2.5:
    Gave the ability to toggle whether or not to use the old method of banning individual arrows while ops can use all. The banned arrows and whether or not to use permissions can all be found and changed in the config file. Rewrote some sections of code. PLEASE DELETE CONFIG FILE UPON UPDATING!
    v2.4:
    You no longer have to give permission for normal arrows. Stopped the plugin from crashing the server if setup incorrectly :). Removed old code. Improved efficiency due to removal of repeated checks of the same condition. Added hidden feature.​
    v2.3:
    Completely implemented the * node. Explosive arrows remove themselves now so no more lag in blown up areas. Fixed a bug where you could switch arrow types in chat. Fixed a bug do to two Runnables conflicting (resulting in an ArrayIndexOutOfBounds exception). Improved code efficiency. Removed the timer setting in the config file due to the new changes. PLEASE DELETE CONFIG FILE UPON UPDATING!
    v2.2:
    GUI now only shows when a player is interacting with a bow and arrow (note: this means it enables and disables on left and right clicks, the item held change event cannot handle scrolling well). Customizable GUI location! Removed redundant code.Added EffectiveArrow.use.* permission node. PLEASE DELETE CONFIG FILE UPON UPDATING!
    v2.1:
    Added smoke arrows! PLEASE DELETE CONFIG FILE UPON UPDATING!
    v2.0:
    Added the ability to customize the size of the explosion for the explosive arrow. Added config file to change the item needed to shoot the arrow. Added GUI for users running the SpoutCraft launcher. Added the ability to cycle through the arrows if using the SpoutCraft launcher using the , and . keys. Fire arrows now emit smoke while flying. Made some code more efficient. PLEASE DELETE CONFIG FILE UPON UPDATING!

    v1.7:
    You can now customize the blast radius of the ExplosiveArrow and we now have Bukkit integrated permission support. PLEASE DELETE CONFIG FILE UPON UPDATING!
    v1.6:
    Emergency fix for a weird bug. You can now adjust how long it takes arrows to activate after hitting blocks. Ops can still use banned arrows so if you want this to be op only just set all arrows to banned. PLEASE DELETE CONFIG FILE UPON UPDATING!
    v1.5:
    Added config file now you can have only the arrows you want to have! Added two new​
    arrow types iron tipped and diamond tipped which do 4 and 6 damage respectively.​
    v1.4:
    Did a rewrite of code. Each arrow type is now it's own class! What does this mean for you? Config file will be coming shortly and more arrows will be added! Also players now can only switch to arrows they have materials for.​
    v1.3:
    released plugin!​


     
  2. Offline

    skeletonofchaos

    I've had no issue running bpermissions and spout maybe the incompatibility is for the spout permission nodes or maybe the spout method for getting permission nodes. Either way it works with this plugin flawlessly.
    I'll add a config in the next update to switch between the Arrow Type: and the text notifications.
     
  3. Offline

    Drat333

    Please please PLEASE get multiworld support, I don't exactly want people running with tnt arrows on my creative world, just my survival world where tnt is less of an issue.
     
  4. Offline

    FlayaN

    Whenever I maximize my window the text shows up in the middle for me as well, also I would like to only show the text when having a bow in hand, that would make my setup awesome (and actually make more sense) :) Awesome plugin!
     
  5. Offline

    skeletonofchaos

    You can use permission handlers to only give people certain permissions in certain worlds.
    I'm working on this; however it completely conflicts with how I'm doing it at the moment trying to find a way.... also I was going to move the little text bar to the top left corner. Would that help anyone out?
     
  6. Offline

    FlayaN

    I think that Spout is trying to calculate screen width and height if you change your screen size, so maybe wait until they fix that or add it to the top left.

    My setup is that only the archer class (Heroes plugin) is able to use bow and therefore the only class to see that text ;)
     
  7. Offline

    skeletonofchaos

    Ah I see... Did not consider that when I wrote it expect a updated config file to change that later today.
     
  8. Offline

    FlayaN

    Nice :D Thank you!
     
  9. Offline

    Koutacles

    Careful, if you put the text up top left SpoutWallet puts text there constantly as well.
     
  10. Offline

    xsolar66

    Hi skeleton,

    A small, but simple request - make an EffectiveArrow.use.* permission node

    edit: also,

    2011-08-09 00:00:32 [SEVERE] java.lang.IndexOutOfBoundsException: Index: 7, Size: 6
    2011-08-09 00:00:32 [SEVERE] at java.util.ArrayList.RangeCheck(Unknown Source)
    2011-08-09 00:00:32 [SEVERE] at java.util.ArrayList.get(Unknown Source)
    2011-08-09 00:00:32 [SEVERE] at me.skeletonofchaos.ea.InFlightEffects.run(InFlightEffects.java:25)
    2011-08-09 00:00:32 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-08-09 00:00:32 [SEVERE] at java.lang.Thread.run(Unknown Source)
     
  11. Offline

    skeletonofchaos

    I just finished making the gui location customizable.
    Will do.

    Done!
    Done!

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

    yakasuki

    torch arrows when you shoot it at a wall it locks the torch on it :D makes it easyer to scout out tunnels/easer to place torches
     
  13. Offline

    skeletonofchaos

    Try using the fire arrow for scouting :) This is mainly built for PVP and RPG servers but I may add this if I get enough requests.
     
  14. Offline

    xsolar66

    Keep the arrows on the battle field, ay! Torches don't deal damage :p

    also, @skeletonofchaos


    2011-08-09 00:00:32 [SEVERE] java.lang.IndexOutOfBoundsException: Index: 7, Size: 6
    2011-08-09 00:00:32 [SEVERE] at java.util.ArrayList.RangeCheck(Unknown Source)
    2011-08-09 00:00:32 [SEVERE] at java.util.ArrayList.get(Unknown Source)
    2011-08-09 00:00:32 [SEVERE] at me.skeletonofchaos.ea.InFlightEffects.run(InFlightEffects.java:25)
    2011-08-09 00:00:32 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-08-09 00:00:32 [SEVERE] at java.lang.Thread.run(Unknown Source)
     
  15. Offline

    skeletonofchaos

    Wait when did this error occur? Like what events triggered it? Also was this a one time thing or did it occur repeatedly?

    Ah the only explanation I can think of is that an arrow was removed while another arrow is in the air causing the arrow in flight effect to refer to an index that was just removed... Odd error will fixe here.

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

    yakasuki

    then how about obsideon arrows and it would do 9 damage and you'd need at least a piece obsideon in your invi to use them :D
     
  17. Offline

    skeletonofchaos

    PM me all of your arrow type ideas will implement the ones that meet the game balance qualifications and my personal standards. :)

    Should be fixed in new version let me know if you get it again.

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

    xsolar66

    Hi again,

    Lastest version doesn't want to load

    2011-08-09 01:19:47 [SEVERE] Error occurred while enabling EffectiveArrows v2.2 (Is it up to date?): null
    java.lang.NumberFormatException: null
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at me.skeletonofchaos.ea.ea.loadProcedure(ea.java:110)
    at me.skeletonofchaos.ea.ea.onEnable(ea.java:84)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  19. Offline

    skeletonofchaos

    Delete config file and update Spout. Everything is working fine on my side. Also 2.3 is the latest :)
     
  20. Offline

    xsolar66

    yep downloaded 2.3, but it says it loads 2.2 haha

    ps. it works, after deleting config. cheers =)
     
  21. Offline

    skeletonofchaos

    Tell me if you get the error again you shouldn't.
     
  22. Offline

    xsolar66

    ill give it a test now :)
     
  23. Offline

    Vaupell

    Abselutely love it, crashed my server a few times in a full scale pvp fight everybody using tnt or lighting arrows.
    but who cares so much fun.. :D

    Seems that fire from fire arrows never exstinguies.
     
  24. Offline

    skeletonofchaos

    The fire on the arrow doesn't but the fire it lights will go out eventually.
     
  25. Offline

    Mercury

    I left click on bow an nothing happens. After that I try to shoot arrows but I can't see any flying arrows.

    Player freezes after that and times out and can't log back in.
    Server doesn't respond to shutdown.
     
  26. Offline

    xsolar66

    make sure every user group in your permissions has EffectiveArrow.use.normal
     
  27. Offline

    Mercury

    Every group? Even groups which are not in use?
     
  28. Offline

    xsolar66

    Yeah, may as well. all it means is that you can fire normal arrows if you're in that group, doesn't change much. At least check.
     
  29. Offline

    Vaupell

    Excaktly the same.. Server fucks up.. Going to try to add the EffectiveArrow.use.normal to all now.. which sux.
     
  30. Offline

    xsolar66

    why that sux? do you want to stop users from firing arrows?
     
  31. Offline

    Vaupell

    No its annoying you have to "Allow" normal arrows.
    well just tried, server froze up the sec a moderator left clicked a bow.
     

Share This Page