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

    xsolar66

    its 'EffectiveArrow.use.flaming'

    ...You're welcome

    But I agree there needs to be a short list of permissions on the OP
    hint hint, @skeletonofchaos
     
  3. Offline

    astinax

    In the beginning I could switch arrow and then I restarted the server and I reloaded the plugins and I couldn't switch arrows even with the EffectiveArrow.use.* node. I use CB1000 with PermissionsBukkit.
     
  4. Offline

    skeletonofchaos

    Wait what?

    Are you using the latest version of Spout if you are not that could be the reason. Did you try completely stopping and restarting the server? Which version of my plugin are you using?

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

    Lyiin

    Is there any chance you'll add a 'Sniper Arrow', which has a far larger range? Or perhaps (though I doubt this'll happen), a configurable range for all arrows (this would allow heavy arrows to have short ranges, and light, but weaker arrow, to have a long range)?

    I know it is possible to increase the range, as Archers, a bow-improving plug-in my server has been using, does just that. However, it has way too many arrow types, and doesn't have the smoke particles for fire arrows. This plug-in just seems much better, and with a 'Sniper Arrow', it would be a perfect replacement for Archers.
     
  6. Offline

    skeletonofchaos

    Now that I have got the mechanic for in flight effects finished that will be the next step. Also I was thinking of making the normal arrow have the longest range. As it is the lightest.
     
  7. Offline

    BattleGroundxx

    NO! Can you please add Op support Because i dont use Permissions or SuperPerms!
     
  8. Offline

    skeletonofchaos

    As of version 2.5 I will have the old method of banning arrows while ops can use all. I just finished up a major change to the arrow switching code so as to allow this.
     
  9. Offline

    BattleGroundxx

    THANK YOU!!
     
  10. Offline

    skeletonofchaos

    Actually the optional permission version will be up in about 5 minutes :)
     
  11. Offline

    xsolar66

    this is win =)
     
  12. Offline

    skeletonofchaos

    Version 2.5 is up!
     
  13. Offline

    BattleGroundxx

    EVEN BETTER LOL
     
  14. Offline

    Grrrr159

    How about flaming arrows use 1 coal instead of wool, and have to have flint and steel to 'light' the arrow, which causes a small delay?
     
  15. Offline

    xsolar66

    2011-08-12 02:28:47 [SEVERE] java.util.ConcurrentModificationException
    2011-08-12 02:28:47 [SEVERE] at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
    2011-08-12 02:28:47 [SEVERE] at java.util.AbstractList$Itr.next(Unknown Source)
    2011-08-12 02:28:47 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getPlayers(CraftWorld.java:551)
    2011-08-12 02:28:47 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.playEffect(CraftWorld.java:655)
    2011-08-12 02:28:47 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.playEffect(CraftWorld.java:648)
    2011-08-12 02:28:47 [SEVERE] at me.skeletonofchaos.ea.ArrowTypes.smoke.onGroundHit(smoke.java:83)
    2011-08-12 02:28:47 [SEVERE] at me.skeletonofchaos.ea.ArrowTypes.all.onBlockContact(all.java:267)
    2011-08-12 02:28:47 [SEVERE] at me.skeletonofchaos.ea.ArrowEffectApplier.runArrowEffect(ArrowEffectApplier.java:67)
    2011-08-12 02:28:47 [SEVERE] at me.skeletonofchaos.ea.ArrowEffectApplier.run(ArrowEffectApplier.java:50)
    2011-08-12 02:28:47 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-08-12 02:28:47 [SEVERE] at java.lang.Thread.run(Unknown Source)

    @skeletonofchaos found another bug. and yes, i'm now using permissionsEX to handle things, and have removed my multi-world survival world in order to do so. Truth is, no 1 played there anyway.

    too realistic on a battlefield- you want to be able to change arrows on the fly!

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

    skeletonofchaos

    In the config file you can make it so it takes coal instead of wool.
    Now I got this error once... It was due to world guard not finishing loading before arrows were being used. it is not a bug in the code itself just two things modifying the same area at the same time. Make sure everything is loaded before using smoke arrows. Any more vents related to when this error occurred would be appreciated as it is very very rare and has no obvious effects in-game.
     
  17. Offline

    astinax

    You were right I restarted server and now it works perfectly fine thanks and nice plugin
     
  18. Offline

    xsolar66

    yeah no obvious effects :) I thought it might have something to do with the world loading.

    I'll let you know if anything else comes up - so far so good
     
  19. Offline

    skeletonofchaos

    That's the conclusion I've come to. It only occurs immediately after reload if someone tries to shoot a smoke arrow right away. (hint try crouching while shooting you should find a neat surprise)

    never mind completely lied there.

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

    xsolar66

    while im at it, another feature request - a permission node - EffectiveArrow.unlimitted - people who have this never use up ammo, like diamonds and tnt. Only use up arrows =)

    edit: just so my admins can go around wreaking havoc without having to constantly give items.

    oh and I can't find the surprise!

    edit: but i must sleep for now. I'll be on again tomorrow to see how goes :)

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

    Silentnight18

    I am not sure how to report this as an error because the console and log don't do or say anything when this happens. But when I put this plugin on my server, it runs fine for a bit, then the server itself just times out and server needs to be restarted. I am not sure what this is or whats causing it, have you heard of this happening to any other servers? I have Spout on server, most of my players use Spoutcraft, server has 4gigs of RAM and 5gig Processing, so I am sure thats not the issue.
     
  22. Offline

    mohan0704

    dont think you allocated enough ram...

    anyway, the new smoke arrow...its extremely useful for me :D
     
  23. Offline

    Silentnight18

    4gigs of allocated RAM isnt enough? when my server is only using ABOUT 1600mb ? You sir, deserve a cookie for stupidity.
     
  24. Offline

    skeletonofchaos

    No he doesn't depending on the amount of people on the server/plugins you are running 4gigs could be woefully low. And no I have never heard of this happening on other servers and I cannot help you seeing that I essentially got no information regarding this (possible) error.
     
  25. Offline

    RGadelha

    The link is pointing to version 2.3 :(
     
  26. Offline

    skeletonofchaos

    I'm pretty sure I just forgot to update the version number. It is 2.5
     
  27. Offline

    RGadelha

    I thought it wasn't because the size and even the dates inside the jar are the same as my 2.3 version.
    Edit:
    Well, I'm having the same problem I had before.
    When I right click or type , or . I get "Received invalid widget: Label v: 1 current v: 2" in the Spoutcraft Launcher console.
     
  28. Offline

    skeletonofchaos

    hmm please post config.
    is there a usepermissions in the config?

    Link is most definitely 2.5 (at least now it is, it should've been 2.5 anyways)

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

    RGadelha

    OK:
    Code:
    #Config
    #Sat Aug 13 17:21:12 BRT 2011
    allowFlaming=true
    Lightning_Material=264
    Razor_Material=264
    Smoke_Material=289
    allowExplosive=true
    GUI_y=0
    GUI_x=0
    Explosive_Material=46
    allowIron=true
    allowLightning=true
    Explosion_Size=2
    Flaming_Material=35
    allowRazor=true
    usePermissions=false
    allowSmoke=true
    Iron_Material=265
     
  30. Offline

    skeletonofchaos

    I'm running version 2.5 (same as you) with the above config (same as you). I am not getting this error at all. Do you have the latest version of Spout installed? Latest version of the launcher (this should auto update)? And same problem you had before I do not remember getting this error posted before.
     
  31. Offline

    RGadelha

    Maybe that's because I'm using latest Spout / Spoutcraft / Spoutcraft Launcher dev builds?
     

Share This Page