PVP Add-to Target List

Discussion in 'Archived: Plugin Requests' started by Xodz, Jul 20, 2014.

  1. Offline

    Xodz

    Plugin category: Anti-Grief Tools

    Suggested name: PVP Target List

    Plugin Description: When a player adds you to their "Target List" it notifies the player with something like "Player1 has added you to their target list! Be cautious or get to a town/safe zone!". 1 minute after the player adds you to his Target List, he is able to attack you. I would like for them to not be able to damage you unless they have added you to their target list. Please let me know how you think this can be done, feel free to post.

    Ideas for commands:
    !target add (name)
    !target remove (name)
    !target list

    Ideas for permissions:
    targetlist.add
    targetlist.remove
    targetlist.list
     
  2. Offline

    ImDeJay

    So just so im clear you want to disable PVP for all players unless the player they are trying to PVP are in their target list?

    Lets say player PEANUT wants to attack player BUTTER but PEANUT does not have BUTTER in his target list so is not allowed to attack.

    Do you want to remove the player from target list after PEANUT has killed BUTTER
     
  3. Offline

    Xodz

    Correct... I use worldguard to make zones where players damaging each other is disabled. However apart from those zones, the rest of the world is default pvp enabled

    In the case of peanut and butter, yes Peanut is not targeting Butter so he cannot attack him.

    Yes they can be removed on death or it can be timed out
     
  4. Offline

    Xodz

    Please let me know if there are some impossibilities with this request. I would want it to work with Bukkit and not some client side mod
     
  5. Online

    timtower Administrator Administrator Moderator

    Xodz Possible with bukkit.
     
  6. Offline

    Xodz

    I am wondering if anyone has decided to take this on - so I may offer as much assistance as possible.

    Thanks
     
  7. Offline

    izarooni

    Xodz
    Exclamation marks for commands or slashes?
    Both are possible.
     
  8. Offline

    ImDeJay

    I will check back on this page tomorrow, if izarooni doesnt take on this plugin, ill make it for you
     
  9. Offline

    Xodz

    izarooni
    Typed exclamation points on accident!
    Priority: whichever is easier
    Preference: exclamation points
     
  10. Offline

    izarooni

    ImDeJay
    Go ahead, I'm not going to do this one
     
  11. Offline

    Xodz

    Any luck guys? let me know if u guys need anything to make the task easier so I can see what I can do
     
  12. Offline

    Xodz

    Is anyone interested in this? Commands can be / instead of !
     
  13. Offline

    izarooni

    Xodz
    Are the names added to the player's list saved to a file or something or are you okay with it being cleared through restarts/reloads?
     
  14. Offline

    Xodz

    izarooni

    cleared through restarts/reloads is perfectly OK, either way (whichever is easiest)
    Thanks!
     
  15. Offline

    kps1796

    I can do this.
    Cleared through restarts? Or a config?
    Should a player only be removed from another player's target list when the target is killed?
    Or after a timeout?
    And this should only happen in certain regions?
    Can a player be in multiple target lists?
    Xodz
     
  16. Offline

    mjpjr12

    I'm going to try this also, just for the hell of it.
     
  17. Offline

    kps1796

    I'll just let you take over - let me know if you don't end up doing this.
     
  18. Offline

    Xodz

    I appreciate all of the interest,

    I will wait for izarooni to finish this. If he is unable to complete I will let one of you know. If one of you finish this, feel free to post your result here for us to check out! Thanks!

    Change/addition: If it could say "User1 is thinking about killing you..." that would be cool!

    kps1796

    - Cleared through restarts or on command preferably. (no need to hold targets over through next restart)
    - Player removed from target list after death or timeout (30 mins? idk)
    - it should happen in the main world
    - A player should be able to add multiple people to target list and be on multiple target lists
     
  19. Offline

    izarooni

    Xodz
    I'm actually not doing this. I'm a bit caught up with other things
     
  20. Offline

    ImDeJay

    I have been a bit busy this week, but im hoping to get some time later this week, and i will be doing this plugin for Xodz
     
  21. Offline

    Xodz

  22. Offline

    ImDeJay

    Xodz Sorry, been really busy this week, but i will start on this today, and hopefully have it for you tonight sometime.
     
  23. Offline

    Xodz

    ImDeJay Thank you a lot man. waiting patiently with gratitude!
     
  24. Offline

    ImDeJay

    Xodz Just wanted to give you an update... Didn't have alot of time today, but i've got the plugin started with commands done, all i need to do is the timeouts and removing when the player dies etc.

    just wanted to let you know i didnt forget.
     
  25. Offline

    Xodz

    ImDeJay Awesome, Can it alert the person added to PlayerX's target list with "PlayerX is thinking about killing you..." , then proceed to allow PlayerX to damage by that person after 60 seconds

    I think that sounds cool xD!! thanks again!
     
  26. Offline

    ImDeJay


    Yes, this is the way it works.
    I have the plugin done, i need to actually test it first before i upload it, but it should be uploaded and sent to you tomorrow.
     
  27. Offline

    ImDeJay

    Xodz Here ya go.

    Everything should work like you wanted, if it doesnt or if something doesnt work right let me know and ill get it fixed.

    Commands:
    /addtarget - Adds a target to your list
    /removetarget - Removes a target from your list.
    /listtargets - Show all your current targets.

    Player has 1 minute to hide before the other player is allowed to attack.
    The player gets a warning which is configurable in the config.

    No permissions, didnt see a point in it.

    https://www.dropbox.com/s/xj4hpcez8fxvqk2/targetList.jar
     
  28. Offline

    Xodz

    Very Excited to try it out!! Thanks so much ImDeJay
     
  29. Offline

    Xodz

    Hey @ ImDeJay

    Thanks again for the plugin, it works great!!

    Just wondering if I could request a couple changes from it's use i've noticed these are pretty necessary!

    1. When someone adds you to their target list they should be auto-added to yours! (so you can retaliate)
    2. (less necessary/required) A timer that removes the person from your list in 30 minutes

    Thanks again ImDeJay,
     

Share This Page