No Friendly Fire (GM/Permissions?)

Discussion in 'Archived: Plugin Requests' started by Pencil, Mar 10, 2011.

  1. Offline

    Pencil

    Alright, I run a faction based PVP server, and we have always wanted some sort of a plugin, that stops people from hurting each other inside groups. We currently use Groupmanager, but it really doesn't matter, we could switch over to permissions if required :D Maybe someone could do it?

    Just something like: Player A is in Group A, Player B is in group A, Player C is in Group B.

    Player A and Player B can't hurt each other, player C can.
    [MERGETIME="1299786306"][/MERGETIME]
    anyone up for this? Please? ^^
     
  2. Offline

    black_ixx

    good idea,i will test it for my server

    where I can download this?

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

    Celeixen

    He is asking for someone to make it for him, he hasn't made it.
     
    TfT_02 likes this.
  4. Offline

    black_ixx

    ohhh.... sry....... Im not from England,and im not the best in English.....Does any Plugin with this function is created?
     
  5. Offline

    Adamadz

    I think I could do it :) Im thinking like having a permissions for each group, and using PermissionsBukkit? What should the plugin be called? Btw your a plugin dev you should be able to do this :D. Im also thinking of having like Group 1 when someones talks next to there name, which can be configurable.
     
  6. Offline

    Celeixen

    Would be pretty simple...
    Code:
    if (group1.contains(player)){
    event.setcancelled(true)}
    
    you would just need to hook into the groupmanager groups or then make your own group system.

    Edit:
    Better way:
    Code:
    if (group.getplayergroup(attacker) = group.getplayergroup (reciver)){
    //cancel event
    }
    ^^ of course those getgroup methods dont exist but you can create them.
     

Share This Page