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

    SplenectomY

    Is the explosion from the arrow explosion throwing an EntityExplodeEvent, and if yes, then what type of entity? I want this plugin to work nicely with CreeperHeal so damage done by this mode will repair itself. Thanks in advance!
     
  3. Offline

    Danton1983

    when shall we expect permissions to be added?
     
  4. Offline

    skeletonofchaos

    Umm... no idea what events it throws it just generates an explosion at the point of impact...
    As soon as I find out how to use the bukkit-integrated permission system (it said it was released in build 1000, but how do we use it?).
     
  5. Offline

    Koutacles

    Damn, I was hoping you were going to use Permission 3.. ah well.
     
  6. Offline

    mohan0704

    Hey, I was using this plugin and found out that you haven't updated the plugin.yml in the jar file, it still says v1.3
    (I got around it by editing the file, my autoupdater was annoying me [creeper])
     
  7. Please add Permissions 3.x support! :)
     
  8. Offline

    skeletonofchaos

    Sorry about that....
    No I was going to use the Bukkit integrated one because I never could figure out how to set up permissions 3 :)
     
  9. Offline

    Danton1983

    what about group manager in essentials?
     
  10. Offline

    Ethneldryt

    Not work in bukkit 1000 :(

    error log :

    2011-07-21 22:09:33 [SEVERE] Could not pass event PLAYER_INTERACT to EffectiveArrows
    java.lang.ArrayIndexOutOfBoundsException: 2
    at me.skeletonofchaos.ea.ArrowTypes.all.cycle(all.java:44)
    at me.skeletonofchaos.ea.aePlayerListener.onPlayerInteract(aePlayerListener.java:64)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:139)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:782)
    at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  11. Offline

    DJ_Idol

    Hmm...so I just want to make sure, are you definitely not planning on adding Permissions 3.x support? Because I'd love to use this plugin, but can only use if it has Permissions support :(
     
  12. Offline

    mohan0704

    Yeah, I guess that it needs a little fixing, it completely avoids WorldGuard's config file.
    I like the idea, and it works well for my pvp world
     
  13. Offline

    Dream102

    I would love to have this plugin on my server ! If you can't add permissions could you add something so only Ops can use it ? That woukd be very helpfull for me. This plugin looks amazing btw :D
     
  14. Offline

    skeletonofchaos

    If someone shows me how to set up a permissions config file i will :)... As of the next version ops can use banned arrows so if you want it to be op only set all arrows banned.
    Umm.... no clue I have a Bukkit 1000 server and it works fine. Try downloading the latest version.

    No clue why it avoids WorldGuard maybe because it refers to entities for the listeners not explosions......

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

    ayan4m1

    I am trying to use version 1.5 of this plugin with CraftBukkit version 0.0.0-945-g73697a4-b1000jnks. I am also using WorldEdit/WorldGuard and several other common plugins - I get the same error as another user whenever I left click with a bow in hand:

    Code:
    2011-07-21 12:04:20 [SEVERE] Could not pass event PLAYER_INTERACT to EffectiveArrows
    java.lang.ArrayIndexOutOfBoundsException: 2
    at me.skeletonofchaos.ea.ArrowTypes.all.cycle(all.java:44)
    at me.skeletonofchaos.ea.aePlayerListener.onPlayerInteract(aePlayerListener.java:64)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:139)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:782)
    at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
    The fact that it is an ArrayIndexOutOfBoundsException and the stack trace lead me to believe it's being caused by EffectiveArrows (potentially a conflict with another plugin, as you indicated that it works for you), but as there doesn't seem to be a link to any source code so I can't figure it out beyond that.

    If you can host the source code somewhere, I'd be happy to help resolve the issue.
     
  16. Offline

    Dream102

    Okay then really waiting for your next version now :p
     
  17. Offline

    skeletonofchaos

    It is most likely a conflict I have done extensive testing on this build and this version I have never seen the issue, now today two cases pop up! Like you guys I have world edit and world guard so I do not believe they are the issue... As far as the source code goes just use a decompiler, I will try to put a github up soon. Trust me I am working on this. To help out please try this as the only plugin temporarily to see if it is this or a conflict, then please send me the results.

    Also really odd thing it's an array index out of bounds exception right? There is no array being called within 15+ lines of the line it says the error is on... Ah wait a second do you guys have a config file if you do not that would be the cause! Make sure to check your plugin folder for a EffectiveArrows config folder else you will get that error. If a config file is not showing up I will release a version with a prefab config file. Simple fix delete the EffectiveArrows folder.

    K now this bug just started popping up on my test version (no clue why all I did was recompile and boom there it was) Make sure that on start-up it says banned arrows set otherwise something is going horribly wrong.

    OK it is now fixed enjoy! P.S. all features I said were coming version 1.6 will now be coming in 1.7 aside from the ones I mentioned in the changelog which are here now.

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

    Dream102

    Thanks for the 1.6 version of your plugin ! I'm going to try this tomorrow on my server it looks awesome
     
  19. Offline

    mohan0704

    Yes, most likely. Is the explosion caused by the arrow or an invisible TNT block?
     
  20. Offline

    skeletonofchaos

    Technically it is caused by nothing it just generates an explosion at the arrows location.
     
  21. Offline

    SplenectomY

    Can't wait for 1.7. Also, any chance of forcing the explosion to throw an event? That would be awesome.
     
  22. Offline

    omnija

    small question, how come there is 2 uses for diamond?
     
  23. Offline

    SplenectomY

    Although the ammo is the same, you simply cycle through which attack you want to use by left clicking with a bow in your hand.
     
  24. Offline

    Koutacles

    Will it ever be possible to customise what each arrow type uses for ammo? That way I can make it so lightning arrows take lapis lazuli and fire arrows take redstone :D
     
  25. Offline

    skeletonofchaos

    Eventually the next step on my todo list is to make a more configurable config.
     
  26. Offline

    Kanati

    Still causes Permissions 3.1.6 to die if I have it in the plugins directory. Still can't use it.
     
  27. Offline

    skeletonofchaos

    As I said talk to the permissions people about that I have no clue why are you sure it is my plugin? Is there a conflict? If so what is it? What error do you get? If you want me to fix something I need the problem info.
     
  28. Offline

    Koutacles

    Works fine with Permission 3.x for me. I suspect another conflict maybe?
     
  29. Offline

    EMOberger

    tip: let us decide what item to use for said type of arrow.
     
  30. Offline

    skeletonofchaos

    I am working on it...

    Is it working with CreeperHeal yet have been busy in real life so I havent checked... Also everyone else can be expecting an update here soon (major feature configurable explosive arrow blast size).

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

    lemonzap

    -how about a slime arrow. an arrow that only works if it hits an entitya and launches it upwards causing it to take fall damage or just disorient.(I would suggest making a block bouncy when the arrow hits it but how would you mark the block thats hit as being bouncy?)
    -also I still like the idea of ice arrows, when it hits an entity it could encase it in a 4x4x4 rectangle of ice, but when it creates the ice it works by replacing air blocks so that you dont end up turning stone into ice because someone was standing next to it.
    -lastly(this might be difficult) an arrow that pierces through entities. you can shoot an arrow and if its kined up right it will go through the first guy and the second guy hitting the floor while hurting both of them. This might be a bit far fetched though.
     

Share This Page