Archers (by 1337 & TechGuard)

Discussion in 'Archived: Plugin Requests' started by Taemera, Apr 16, 2011.

  1. Offline

    1337

    I can do that,but i want to see what the op thinks first
     
  2. Offline

    Aramillio

    youd be my hero, my elves are just dying for new arrows
     
  3. Offline

    pedrofrq

    I am not the OP, but I would like it.
    Or you could make two versions, one with the thunder arrows, one without, like the OP requested.
     
  4. Offline

    1337

    Hmmm I wanted to not have any commands, but I have started to add the thunder arrows :)
     
  5. Offline

    Aramillio

    you rock dude, i know commands arent the easiest but they make for a super slick plugin :) rock on :D
     
  6. I really like this Idea!
    I need some sleep now, but tomorrow I will try to make something too :D
     
  7. Offline

    Aramillio

    its like a plugin contest!

    May the best archery plugin win!!
     
  8. Offline

    1337

    Competition:)

    Ok lightning is in,just adding the commands

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  9. Started making the plugin now :)
     
  10. Offline

    1337

    Ive finished mine :) just testing now then making the release thread

    all works just making thread now will post link when done

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  11. I'm looking forward to see yours :D
    I will upload a video, when I have time :)
     
  12. Offline

    1337

    I hate permissions, they dont want to work for me, how is yours doing?
     
  13. I had A LOT of issues with it, but it is working fine for me now.
    Try this code:

    Code:
    public static PermissionHandler Permissions;
    
    private void setupPermissions() {
            Plugin test = this.getServer().getPluginManager().getPlugin("Permissions");
            if (this.Permissions == null) {
                if (test != null) {
                    this.Permissions = ((Permissions)test).getHandler();
                } else {
                    sM("Permission system not detected! Disabling..");
                    getPluginLoader().disablePlugin(this);
                }
            }
        }
    That is what I use :)
     
  14. Offline

    1337

    Thats what i do, its not the code, its the setting up in the yml that gets me. all i would recommend this code instead:
    Code:
    private void getPermissions() {
            // TODO Auto-generated method stub
           Plugin permissions = this.getServer().getPluginManager().getPlugin("Permissions");
    
              if (this.permissions == null) {
                  if (permissions != null) {
                      this.permissions = ((Permissions)permissions).getHandler();
                      log.info("[ELVENARCHER] Permissions found");
                  } else {
                      log.info("Permission system not detected, Defaulting to ops!!");
                  }
              }
        }
    and this code to check permissions:
    Code:
    public boolean HasPermission(String permission,Player player){
        if(this.permissions != null && this.permissions.has(player, permission)){
            player.sendMessage("permission given!");
            return true;
        }
        else if(this.permissions != null &&  !this.permissions.has(player, permission) ){
    
            player.sendMessage("no permission");
            return false;
        }
        else if(this.permissions == null && player.isOp()){
            player.sendMessage("permission given!");
            return true;
        }
        else{
            player.sendMessage("no permission");
            return false;
        }
    
    }
    this allows it to still work without permissions, the sending the player messages is debuging
     
  15. You can also use that, but for this plugin it would be useless if only OP's, can use it :p
     
  16. Offline

    1337

    Ok good point :) ive finished my version now, do you want me to wait till you have and release them together or can i release mine now? how close are you?
     
  17. I'm uploading a Youtube video right now. 90%)
    Can you make one too? (Maybe we can combine it)
     
  18. Offline

    1337

    Want to make one together? i got a server we can use pm a link to dl your plugin and we can test each others :)
     
  19. Here is the result! (Have patience, the quality will be better in a minute)


    There is a little bug, when you don't have the resources. And It blocks you to shoot arrows, you will lose the arrow, but you won't shoot.

    PERMISSIONS: (Really easy)
    archers.bow.NAME OF BOW MATERIAL
    So, if you want to give permissions to use the tnt bow:
    archers.bow.tnt

    You can see the list of materials, in the "/plugins/Archers/config.ammo" file
    You can also define what material you need to use to use the bows.
     
  20. Offline

    1337

    How did you make that so quick?

    And how do you do something when a arrow lands? i had a very good idea that needed that

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  21. I created a new Arrow Object what extends the normal Arrow.
    Also, the bows are using the data values of durability. Easy way to save the bow material.
     
  22. Offline

    1337

    I know this sounds a bit rude but could i see the source for the arrow object? you have lost me a bit with that

    Would you like to work together with me on this plugin? 2 heads are better than one

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  23. I think we are spamming the forums a bit..(PM)
     
  24. Offline

    1337

    Ok to anyone wondering whats going on with this plugin, me and techguard have team up, to make this plugin twice as awsome! you can veiw the code and see whats going on here: https://github.com/X1337X/Archers
     
  25. Offline

    anon

    WOW, epic.
    Tnt bows seems awsome. Any way that it could work even with worldguard nerfing tnt?
     
  26. Offline

    1337

    It depends what does the worldguard nerf do to tnt?
     
  27. Offline

    anon

    It does not blow :(
    U can place the tnt block thou.
     
  28. Offline

    1337

    Might still work as it spawns a primed tnt, does it let you set it off?
     
  29. Yes, It will still work. As you know, you see the explosion, but then the blocks pop back. (But damage won't get blocked (right?)) :)
     
  30. Offline

    1337

    ^ he made the tnt arrow he knows what he is talking about :)
     

Share This Page