[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

    1337

    Erm Damage and stuff in configable now, so it isnt named in the EnumBowMaterial anymore. new arrow types. Few new Permissions. Look at the github commits for the full list :p
     
  3. Offline

    Flenix

    Thats already possible really, just use 1-9 with the bows set to the right slots.
     
  4. Offline

    gamerguy14

    When the server loads Archers, it says this:

    Code:
    15:34:18 [SEVERE] Could not load 'plugins/Archers.jar' in folder 'plugins': Permissions
    org.bukkit.plugin.UnknownDependencyException: Permissions
        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:109)
        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)

    Also, in my plugins folder, there is only the .jar file. There is no config.txt file or config.ammo file.
     
  5. Offline

    1337

     
  6. Offline

    MojoManagement

    Fast Bow Switch would be nice
     
  7. Offline

    gamerguy14

    I have permissions
     
  8. Offline

    1337

    Show me what archers says when it is enabled
     
  9. Offline

    Afforess

    You tagged me, so I feel compelled to explain the full potential of BukkitContrib. With the client/server plugins both installed, players COULD use a hotkey to swap to each arrow/bow/whatever just fine. There is an InputListener that registers key press and key release events, as well as a key binding manager.
     
  10. Offline

    Flenix

    :p
    but what about using something similar to the custom skins, to give custom textures to each bow type?
     
  11. Offline

    gamerguy14

    Is it possible that I have the wrong permission plugin? The permissions work with some of the plugins but for others it says that it doesn't detect it when I know I put it in.

    When Archers is enabled it says:

    Code:
    [SEVERE] Could not load 'plugins/Archers.jar' in folder 'plugins': Permissions
    org.bukkit.plugin.UnknownDependencyException: Permissions
        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:109)
        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)
    
    I think it is a problem with when I downloaded it though, because I don't have the config files.
     
  12. Offline

    Afforess

    Not at the moment - but that doesn't rule out the possibility in the future.
     
  13. Offline

    1337

    :D How does the keyBindings manager work?

    Where did you download permissions from?

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

    gamerguy14

  15. Offline

    1337

    Hmm you change the name of the jar or anyting?
     
  16. Offline

    gamerguy14

    No

    I just tried opening the .jar file with Archive Utility and in the file I got; A folder called META-INF with one text file that says Manifest-Version: 1.0. There is also a plugin.yml file that says information about the plugin. Then there is a folder called TechGuard that had a folder called x1337x in it and that was the only thing in the folder. The x1337x folder has one folder called Archers in it. The Archers folder has 5 class file and four folders. The folders are called Arrow, Commands, Crafting, and Data. Arrow, and Crafting have 3 class files, Command has 2 class files, and Data has 1 class file. That makes a total of 11 class files. Does that sound right? Am I missing anything?

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

    Afforess

    You create a class that implements a keybinding, and attach it to a specific key on the manager. It's really up to you how you build it, but the key manager will call pre and post key press and key release methods on the class, so you know when a player presses and releases a key.

    It's pretty similar to how command executors already work in bukkit.

    If you prefer not to use it, there is also an inputListener you can extend, and just listen to the events there.
     
  18. Offline

    gamerguy14

    I may have found the problem. I checked the source for the plugin and looked at some of the class files. I then opened the class files from the .jar file in Xcode. I found that the code in each file didn't match. For example, it seems that in the three files I looked at (Archers.class, CraftUpdate.class, and Properties.class) every time the source said import then a file, the line wasn't in the class file I opened up. Does this seem like it could be the cause? Could this have happened since I used Xcode to look at the file? I also considered copying and pasting the code from the source into the files and saving it but I decided to ask what I should do first.

    I checked more files and none of them had any lines with import on them. It also seems that for the most part, the only lines there start with public then it just goes down a few lines with either nothing or just a }.

    An example is the Archers.Class file comes up as this:

    Code:
    package TechGuard.x1337x.Archers;
    
    public class Archers extends org.bukkit.plugin.java.JavaPlugin
    {
        /* Fields */
        private TechGuard.x1337x.Archers.eListener eL;
        private TechGuard.x1337x.Archers.pListener pL;
        private TechGuard.x1337x.Archers.Crafting.iListener iL;
        private TechGuard.x1337x.Archers.Properties p;
        public static com.nijiko.permissions.PermissionHandler Permissions;
        boolean contrib;
        public int rb;
        public static boolean enable;
    
        /* Constructors */
        public Archers() {
        }
     
        /* Methods */
        public void onDisable() {
        }
    
        public void onEnable() {
        }
    
        private void registerEvents() {
        }
    
        private void setupPermissions() {
        }
    
        public java.lang.String getName() {
        }
    
        public java.lang.String getVersion() {
        }
    
        public void sM(java.lang.String) {
        }
    
        public org.bukkit.entity.Player getPlayer(java.lang.String) {
        }
    
        private void loadCommands() {
        }
    
        private void rightBuild() {
        }
    
        public static int getSpeed(java.lang.String) {
        }
    
        public static int getDamage(java.lang.String) {
        }
    
        public void getContrib() {
        }
    
    }
    

    Does this look right?
     
  19. Offline

    davesadler

    Hi there, getting a strange error in the console. sometimes it will spam, and sometimes just randomly occour.

    Code:
    2011-06-17 03:36:10 [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$76.execute(JavaPluginLoader.java:776)
    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:226)
    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)
    Archers seems to work perfectly fine however, i can select different ammo, fire, etc. it all works

    archers 3.1

    permisions 2.7

    bukkit 860
     
  20. Offline

    1337

    Thanks for reply :~D

    That error is harmless and i will fix next update :p

    Yes but did the methods have anything in them? you can compare the code the the github source :D try redownloading archers

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

    n00balakis

    Okay, 1337.
    I have been working for hours trying to figure this out. Do you have a tutorial, or a quick list of what is needed to be done to get this to work? I cant even get the arrow commands to work. This is actually my first plugin because i just made my server yesterday.. I have permissions up and working, and i have downloaded bukkitcontrib although i barely understood how to install that, and may have done it wrong. But from what I've seen, this is an epic plugin, and i would be happy to get it to work. Btw, i already read EVERY post and none of them really helped.
    -n00balakis
     
  22. Offline

    1337

    Have you watch the video in the main post?
     
  23. Offline

    n00balakis

    Yeah i did. That's what made me want this plugin. But i mean how exactly do i install? i tried just placing the archers.jar file in plugins, that tripped out my server. then i extracted the files from archers and put those in plugins, and that just made absolutely nothing happen. So do you have any idea how to assist me? Like, what is the normal routine after downloading?
    Thanks,
    -n00balakis
     
  24. Offline

    1337

    What error did you get when running it?
     
  25. Offline

    n00balakis

    [SEVERE] 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.java.SimpleJavaPluginLoader.loadPlugin<SimpleJavaPluginLoader.java:194>
    at org.bukkit.plugin.java.SimpleJavaPluginLoader.loadPlugin<SimpleJavaPluginLoader.java:117>
    at org.bukkit.craftbukkit.CraftServer.loadPlugins<CraftServer.java:109>
    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>
     
  26. Offline

    Phaeroth

    Tried installing Archers, had this error on server start-up:

    [SEVERE] 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:109)
    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)

    Server is running CB 860. Still on Permissions 2.7 (Haven't gotten around to upgrading to 3.0 yet.)

    Think an update could be in the works soon?
     
  27. Offline

    Ubermatik

    Same problem as everyone else, getting this error message:


    Code:
    19:43:43 [SEVERE] 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:109)
        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)
    
     
  28. Offline

    The PC Tech Guy

    It appears that this plugin depends on "BukkitContrib." I do not know if this is a plugin, but I will search now (the results popped up with this plugin...)
     
  29. Offline

    Willower

    BukkitContrib is a required plugin for this plugin, just as Permissions is.
    The PC Tech Guy, Ubermatik, Phaeroth, and noobalakis: You all need to download and install BukkitContrib. It is required.
    Not to sound like an jerk, but this is in the OP. Read the OP carefully.

    And have a lovely day! :)
     
    1337 likes this.
  30. Offline

    Phaeroth

    Oh. Ok! That makes sense then.

    I probably missed it. After I while I get tired of reading wall after wall of text.
     
  31. Offline

    The PC Tech Guy

    Oh I see it in the OP now... And for some reason I did not see Willower's message.

    So many dependencies... I don't like it when plugins have dependencies, it takes a little more time when I check and do my plugin maintenance...
     

Share This Page