How to test if 2 players from the same <LIST> damage each other

Discussion in 'Plugin Development' started by Zankz, Dec 17, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Zankz

    I have 2 lists setup as followed:
    Code:
     private static List<String> redTeam = new ArrayList<String>();
    private static List<String> greenTeam = new ArrayList<String>();
    I need to test if 2 players from the same list damage eachother, and if they do cancel the damage.
    What is the easiest way to do this?
    Thanks,
    Zankz
     
  2. Offline

    Skionz

    @Zankzm if the list contains player1 and the list also contains player2
     
  3. Offline

    Zankz

    @Skionz what event would you put this in
     
  4. Offline

    Skionz

    @Zankz There are Javadocs for a reason :p
     
  5. Offline

    Zankz

    @Skionz i know but i need to know witch event has and getDamager() and getEntity() values in it!
     
  6. Offline

    Skionz

    @Zankz Considering the Javadocs have every Bukkit related class, constructor, method, return type, and parameter... You should probably look there.
     
  7. Offline

    Webbeh

    They're named really well and are actually really easy to find, with 10 seconds of research.
     
  8. Offline

    Zankz

    @Skionz @Webbeh i have looked and cant find anything that meets what i need.
    Do you guys have any ideas?:)
     
  9. Offline

    Webbeh

    We do, because we found them where we told you to look.
     
  10. Offline

    teej107

  11. Offline

    Zankz

Thread Status:
Not open for further replies.

Share This Page