[MECH] Archers v1.0 - Advanced Archery [1.5R0.1]

Discussion in 'Archived: Plugin Releases' started by 1337, Apr 27, 2011.

  1. Offline

    1337

    Archers (Reborn) - Made by [1337]
    I - Introduction
    Archers, makes archery way more powerful and fun! It has a big list of special arrows who can be enabled/disabled easily with Permissions.
    Here is a quick list of its possibilities:
    • Powerful Arrows Light things up with Fire and Lighting arrows, Blow things up with TNT arrows, morph monsters, and the mighty Nuke arrow
    • Fun Arrows generate new trees, make mobs fly up and teleport
    II - Download
    III - Installation and configuration
    • Check the Permission nodes below:
      • Code:
        archers.bow.(arrow name) - Needed to fire the bow
    IV - Usage
    It is really easy. If you type /arrow a list with available arrows will pop up, if you need more information. Just type /arrow (arrow name), and you can see what ammo it uses, and what you too enable it. Also if you dont have permission for a arrow it shows up red, if you do have permission it shows up green

    V - Final note
    Suggestions, Questions or bug reports: Post them in this Thread!
    You can also post, what you want to be updated first. That would also really help me :)
     
  2. Offline

    Kevin Forte

    Okay, so I have a really, really crazy request. Could you possibly create and submit onPlayerFireArrow event to CraftBukkit? I think it would really help a lot of people, especially myself.
     
  3. Offline

    Jellifish

    Hey! Thanks for the update :)

    I was very excited...

    It's running OK-ish at the moment, a few console errors:-
    2011-06-06 17:26:45 [SEVERE] Could not pass event CUSTOM_EVENT to Archers
    at TechGuard.x1337x.Archers.Crafting.iListener.onInventoryCraft(iListener.java:19)
    2011-06-06 17:26:45 [SEVERE] Could not pass event CUSTOM_EVENT to Archers
    at TechGuard.x1337x.Archers.Crafting.iListener.onInventoryCraft(iListener.java:19)

    And also:-

    2011-06-06 17:40:53 [SEVERE] Could not pass event PLAYER_INTERACT to Archers
    2011-06-06 17:40:54 [SEVERE] Could not pass event PLAYER_INTERACT to Archers

    Which may be a clue to the cause of my problem, which is...guess what!! Only that the archers.craft permission seems to be getting ignored :(

    I set my permissions up using Essentials GroupManager and I do see this in the console:-

    2011-06-06 16:17:55 [INFO] [Archers : 3.1] Found BukkitContrib crafting permissions enabled!

    At the moment I have everyone with archers.bow.* and archers.arrow, but everyone still seems to be able to get a bow and click it on a block to change /craft it to another type. My idea was that I'd be able to give/sell certain bows to certain players, they could use those, but not be able to change their type or craft their own bows. (I think that's what the point of archers.craft was)

    I even tried putting -archers.craft on everyone, but it still seems to ignore it.

    Is this perhaps another plugin interferring or do other people have this similar problem?

    Thanks,

    J.
     
  4. Offline

    1337

    What plugins do you have?
    I could, but the chance of it being submitted are very low :p
     
  5. Offline

    Kevin Forte

    Well, regardless, it would be completely awesome if you did that :) I've tried reading your source to try to use your methods, but you have 800x my Java knowledge so I just get stuck. :p
     
  6. Offline

    1337

    Ok, make your plugin that needs the event. pm me it. use onPlayerFire(Player p, Arrow a) as the method. It will be a Archers arrow. When its done ill make Archers call that method.
     
  7. Offline

    Taemera

    The amount of damage my normal arrow does is not 12, but instead it is a single shot kill.
    My speed is set t0 10 000, but the speed of the arrow is not affected.

    Show Spoiler
    #usage is arrowname:damage:speed
    #Do not change the arrowname
    #lines starting with a # will be ignored
    #example making tnt move 20 blocks a second and setting its damage to 20
    #TNT:20:20
    #------------------------------------------------------------------------
    Normal:12:10000
    Ice:7:1
    Fire:10:10
    TNT:0:2
    Thunder:0:1
    Monster:0:1
    Thrice:8:10000
    Zombie:0:1
    Tree:0:1
    Pig:0:1
    Zeus:20:3
    TP:0:1
    Fly:0:1
    Web:0:1
    Steal:0:1
    Sniper:100:70



    EDIT: I figured out that it gives 10000 damage instead of 12, so I'll try to swap the numbers.
    EDIT2: Swapping the numbers did work for the damage part, but speed is still unaffected.
    Could you fix this please?
     
  8. Offline

    Joy

    See this often:

    Code:
    22:21:18 [SEVERE] Could not pass event CUSTOM_EVENT to Archers
    java.lang.NullPointerException
            at TechGuard.x1337x.Archers.Crafting.iListener.onInventoryCraft(iListener.java:19)
            at org.bukkitcontrib.event.inventory.InventoryListener.onCustomEvent(InventoryListener.java:41)
            at org.bukkit.plugin.java.JavaPluginLoader$69.execute(JavaPluginLoader.java:727)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at org.bukkitcontrib.ContribNetServerHandler.a(ContribNetServerHandler.java:222)
            at net.minecraft.server.Packet102WindowClick.a(SourceFile:28)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  9. Offline

    rdemanta

    I'm positively sure. I made the code for normal arrows Normal:3:1 and it had one damage. Then I made it Normal:3:3 and it did 3 damage. Also the arrow speed isn't affected also.
     
  10. Offline

    Taemera

    @rdemanta @1337
    I can confirm that it is not working right.
    Look at my post above
     
    Aramillio likes this.
  11. Offline

    ToitagL

    Getting this with CB 830 :
    Code:
    00:38:40 [GRAVE] Could not load 'plugins/Archers.jar' in folder 'plugins': BukkitContrib
    org.bukkit.plugin.UnknownDependencyException: BukkitContrib
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:132)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:194)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:117)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:106)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Thanks for your amazing plugin :)
     
  12. Offline

    Joy

    You need to download the BukkitContrib plugin, as the error states.
     
  13. Offline

    1337

    You need BukkitContrib,look in the op for the link :p

    4.0 is nearly done, which will fix the speed and damage and put them the right way round :p and add a few new arrows

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

    Jellifish

    Hmm, I have 63 plugins, probably quicker to list the plugins I don't have!
    Still, can anyone confirm that this new permission things works for them? I may be the only person who actually wants it or has tested it? Here's the plugins I have (luckily on quite a powerful server):-

    Archers 3.1
    AutoRepair 1.92
    Backpack 2.1.0
    BananaChunk 4.6
    BankAccount 0.4
    BigBrother 1.8-SNAPSHOT
    BorderGuard 3.1
    BukkitContrib 0.0.4
    Cleaner 1.7
    CookieMonster 1.3.3
    DataLog 0.2
    DiamondDetector 0.2
    DungeonReward 0.4.1
    Essentials 2.2.22
    EssentialsChat 2.2.22
    EssentialsGeoIP 2.2.22
    EssentialsProtect 2.2.22
    EssentialsSpawn 2.2.22
    FallProtect 0.2.1
    Flight 2.3
    FoundDiamonds 1.666
    GroupManager 1.0(alpha-5)
    Helios 0.4
    HeroicDeath 1.7.2.147
    iConomy 4.63
    iConomyPunga 0.1
    LastSeen 1.1
    LightVote 1.59
    MapClone 0.2
    MapMarkers 0.3.2
    milkAdmin 1.1.1-05.28
    McartManiaAdminControls 1.2.7
    McartManiaAutomations 1.2.3
    McartManiaChestControl 1.2.5
    McartManiaCore 1.2.7
    McartManiaSignCommands 1.2.7
    McartManiaStations 1.2.5
    MobRider 0.32
    MotherNature 1.2
    MultiVerse 1.7
    MusicCraft 1.4.3
    NoCheat 0.9.5
    PailStone 2.3
    Permissions 2.7.2
    PhatLoots 0.5.1
    Picasso 2.5
    PortalStick 2.2.1
    PorteCoulissante 1.2.1
    PumpkinDiver 0.16
    RealTeleporter 0.02
    RemoteToolkitPlugin 0.4b
    Residence v2.1.3
    ShelfSpeak 0.6
    SimpleCensor 0.2.2
    ThisBiome 1.0
    TieDyeSheep 0.1.1
    Tombstone 1.2.9
    Tunnelr 1.2.1
    Turnstile 1.4.3
    uQuest 1.2
    War 1.4.2 (Slim)
    WorldEdit 4.4
    WormholeXTreme 0.833

    (Some of these might need updating, but all the ones I want to work are working and I get no errors in the console)

    I'm running craftbukkit 819 (to fix teleporting chunk loading problems)

    I use permissions to keep different classes of players having access to different commands so the server isn't as crazy as it looks. (If anyone wants to have a go, feel free to connect to newfunk.info )

    At some point I'll try removing different (or all ) plugins and adding them back in one by one, but of course that can be pretty disruptive to what is usually a moderately busy server.

    Just to re-iterate my problem (and confirm that it's not doing what you'd expect). What I want is all players to have access to all bows (so I have a Guest group which has archers.bow.* and I also don't mind them seeing the list of bows so I give everyone archers.arrow. I then have a group called Admin which has archers.craft. What I'm expecting to be able to do is have admins craft a particular bow, hand it to another player and they then have that bow's power, but if they hit that bow on grass (or anything else) because they don't have the archers.craft permission it should ignore that and not change the type of bow they have. If they lose their bow (perhaps they died and didn't go back to their tomb) then they have no way to make another one.

    Many thanks,

    J
     
  15. Offline

    1337

    What about a archers.change permission? To change there bow type and a archers.change.bowname? Just been on your server by the way, took me ages to work out jellifish is not you :p
     
  16. Offline

    Jellifish

    Ah yes, Jellifish is my son, he stole my usual Nickname (which is jellifish) so I had to take TheJellifish!!
    Sometimes I also am on as j3ll1f1sh just to confuse matters further (which is my character that has no admin powers etc, so that I can test permissions etc.)

    Does archers.change exist already as a permission then? Did I misunderstand the archers.craft permission?

    Thanks,

    TheJellifish!
     
  17. Offline

    1337

    Archers.craft only stops people from making bows, they can use any bow if they have the resouces. in 4.0 i will add a archers.change.bowname permission :D
     
  18. Offline

    anon

    halp!

    Code:
    09:45:58 [SEVERE] Could not pass event CUSTOM_EVENT to Archers
    java.lang.NullPointerException
            at TechGuard.x1337x.Archers.Crafting.iListener.onInventoryCraft(iListener.java:19)
            at org.bukkitcontrib.event.inventory.InventoryListener.onCustomEvent(InventoryListener.java:40)
            at org.bukkit.plugin.java.JavaPluginLoader$69.execute(JavaPluginLoader.java:727)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
            at org.bukkitcontrib.ContribNetServerHandler.a(ContribNetServerHandler.java:222)
            at net.minecraft.server.Packet102WindowClick.a(SourceFile:28)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    09:45:58 [INFO] [King] §fanon§f: flowergod me abençoou com seu poder
     
  19. Offline

    1337

    You got bukkitContrib?
     
  20. Offline

    Taemera

    Yes, Archers is disabled if you don't have bukkitContrib plugin. I got the error as well.
     
  21. Offline

    anon

    I do. I use it for archers, and logblock as well, and that other one works fine.
     
  22. Offline

    1337

    Ok I look into the error :D
     
  23. Offline

    Joy

    Yes same issue here, posted 2 days ago.
     
  24. Offline

    Bronski

    I'm not sure if this is a bug or a misunderstanding of mine, but previously I was able to left-click on a lit piece of Netherrak to activate the fire arrow but now it just seems to put out the fire. I'm not getting any feedback. I haven't altered the perms from when it previously worked on the last version. Is there a command-line way to activate these things? On a creative server but I always feel like I'm scrabbling to find the right item (making it harder to fully enjoy :p). Anyway, CB820 here. Thanks and keep up the good work :)
     
  25. Offline

    1337

    Hit under the netherrack :D
     
  26. Offline

    Bronski

    Not sure if this was reported by getting "An internal error has occurred..." with some or maybe all of the new arrow types on CB820/Archers 3.1.

    Code:
    07:32:25 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'arrow' in plugin Archers v3.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
            at TechGuard.x1337x.Archers.Commands.ArrowCommand.onCommand(ArrowCommand.java:61)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
     
  27. Offline

    1337

    deleate the files in the Archers folder then reload archers :D

    4.0
    download : http://bit.ly/Archersfourpointzero
    MASSIVE thanks to @Jellifish for letting me test on his server :D
    changelog :
    added storm arrow - toggles rain/snow off and on
    added rocket arrow - thrice arrow with tnt(bit buggy)
    fixed - the order of damage and speed in the config file
    made archers listen to protected zones like worldedit
    as a result of this tnt arrow zeus and rocket behave a little differently now - sorry
    added the item id of the bow to the /arrow command for example
    the item id of a TNT bow is 261:3
    Added archers.change.bowname permission - select which bows the person can select

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

    Jellifish

    Excellent stuff, this is a fantastic plugin that really makes bows and arrows fun. The new permissions mean that you can set things up in a way that allows you to sell specific bows and people can use them but not change them. The TNT system is different but actually makes things a little less predictable and I find that quite fun too.
     
  29. Offline

    Korvis

    just updated, and my furnaces dont work now. they just never light.
     
  30. Offline

    Jazy Lopez

    For some reason when I use the /arrow command nothing happens. And when I use it in the
    council I get

    Code:
    11:40:26 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'arro
    w' in plugin Archers v4.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    8)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    79)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:428)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:413)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.Coloured
    ConsoleSender cannot be cast to org.bukkit.entity.Player
            at TechGuard.x1337x.Archers.Commands.ArrowCommand.onCommand(ArrowCommand
    .java:26)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 6 more
    I was also wondering if the Bukkit Contrib plugin is required that we install the Client side too?
     
  31. Offline

    Taemera

    No, not the client version, jsut the bukkit plugin.
     

Share This Page