[INACTIVE][FUN]/[ADMN] groupPvP v0.4 - handles PvP permissions between groups and their members[740]

Discussion in 'Inactive/Unsupported Plugins' started by FlingeR, Apr 3, 2011.

  1. Offline

    FlingeR

    WARNING: This plugin is INACTIVE and I won't mantain it any more.
    Use instead "ManagePvP": A fork created by Orcem12.
    http://forums.bukkit.org/threads/ad...manage-group-pvp-using-permissions-953.26767/

    +++++++++++++++++++++++++

    Requires:
    • Permissions or GroupManager + FakePermissions.
    Version: v0.4
    This plugin allows you to:
    • Block PvP between members of a group (Friendly-Fire).
    • Block attacks from a group to players.
    • Protect a group against PvP attacks.
    Special thanks to:
    - LRFLEW:
    Plugin developer of PvP Control, i read his code to manage the ENTITY_DAMAGED event.

    Features:
    • Fully customizable messages.
    • Permissions/GroupManager+FakePermissions support.
    - Download v0.4
    - Source Code

    Example config.yml:
    Show Spoiler
    deny-attack: '- You are not allowed to attack other players.'
    deny-protected: '- you can not attack %d, his group is protected.'
    deny-own-group: 'You are not allowed to attack members of your own group.'

    %g: Group
    %d: Defender

    Permissions Nodes:
    Code:
    groupPvP.denyattack - Block attacks from a group to players.
    groupPvP.protected - Protect a group against PvP attacks.
    groupPvP.blockgroup - Block PvP between members of a group.
    
    Known Bugs:
    • None so far!
    Changelog:
    Show Spoiler
    Version 0.4
    • Fixed for CB-670.
    Version 0.3
    • Fixed for Multi-World Permissions.
    Version 0.2
    • Fixed for CB-617.
    Version 0.1
    • Releasing.

    Donate:

    [​IMG]
     
  2. Offline

    FlingeR

    Sorry, but i dont know with witch version of bukkit should i make it compatible (CB<>B).

    EDIT: i will try to do so.
    EDIT 2: are you sure that groupPvP isn't working on 617 ?
     
  3. I am group "Owner" on my server(obvious), I got every permission, the problem is,
    I ALSO got "groupPvP.denyattack". How can I avoid, that I can attack people, EVEN if I have every permission.
     
  4. Offline

    OrtwinS

    Currently I am unable to run a test server, I didnt test it, I just wanted confirmation there was a working version for 617 (I believe a lot changed between 617-677? I couldn't just throw my server into chaos to test it).

    I've been forced to upgrade anyway now, thank you for your effort.
    Its just nice for people to be able to pick an older Craftbukkit RB if they -for some reason- need it.
    You could also put [617&677] in the title if the same product indeed works on both.

    Thank you for your plugin, it makes large scale combat a lot better between my factions!
     
  5. Offline

    FlingeR

    It should work without problem in CB 617, i keep a record of all the versions, but i was released after CB-617.
     
  6. +1 I've got exactly the same issue, thanks.
     
  7. Offline

    darkwarriors

    how i can set that group1 can only attack group2? like a group war declaration ?
     
  8. Offline

    Sh00ck

    Link is Down

    Edit//
    Forum.. :p

    Edit2//
    Is Back !
    Thansk
     
  9. I got it..
    -'-groupPvP.denyattack'
    use a minus
     
  10. Offline

    m5k

    Quick question. Does this work with inheritance? I have 2 main groups as enemies, and a bunch of groups that inherit one of the two main groups (roleplay classes).
     
  11. Offline

    Phaedrus

    You might wanna mention the permissions inheritence thing on the main page and using negative permissions to allow players to attack each other even when they inherit a protection/deny flag from the group below them.

    As in, default group has protect and deny, but you want the group above to be able to attack and be attack, you need to give them:
    - '-groupPvP.denyattack'
    - '-groupPvP.protected'
     
  12. Offline

    snatch182

    Are you still updating this plugin? I want to use it at mine server but I have to be sure it will be ok in future... :)

    GZ.
     
  13. Thank you!
     
  14. Offline

    snatch182

    Hi if I have 3 groups at server 1 2 3, and I dont want to 1 and 2 to fight each other but i want them to fight against 3 how can I do that?
     
  15. Code:
    2011-04-27 22:54:22 [SEVERE] Could not pass event ENTITY_DAMAGE to groupPvP
    java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getGroup(Ljava/lang/String;)Ljava/lang/String;
        at com.bukkit.FlingeR.groupPvP.groupPvPEntityListener.onEntityDamage(groupPvPEntityListener.java:35)
        at org.bukkit.plugin.java.JavaPluginLoader$42.execute(JavaPluginLoader.java:458)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.EntityHuman.a(EntityHuman.java:403)
        at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:147)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:515)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:763)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    ON CB 684

    Do you plan to update to 733? It's very usefull
     
  16. Offline

    FlingeR

    It seems working on CB733.

    @snatch182
    That's on the TODO list.
     
  17. Offline

    m5k

    Finally I can turn off whitelist with permissions build off and pvp off for guests :) Thanks a bunch.
     
  18. Offline

    cholo71796

    This is a plugin I have been looking for forever! Awesome- could you maybe add support for color codes (e.g., &c).
     
  19. i recommend you add in a feature to make it so groups can attack eachother but add a feature to make it so you can protect certain groups form that one group.

    Example: on my server i have two factions (ill just call them team A and B) but i also have leaders for each faction and i want to be able to protect the leaders from freindly fire from their respective faction without giving them "god mode". and same with protecting the team from the leader but i still want the two factions to be able to fight eachother

    do you get what im trying to say here? i know it's a bit unclear sorry.
     
  20. Offline

    m5k

    I'd like to request a feature.
    Would it be possible to set like 10 or so permission nodes that don't allow people to fight amongst themselves if they have the same node (very simple factions). For example, groupPvP.faction.1, groupPvP.faction.2, etc.?
     
  21. i ahve the '*' node (duh) and i set myself to have the '-groupPvP.denyattack' AND the '-groupPvP.protected' nodes

    but i still cannot attack anyother players and can not take damage (even with /god disabled)
     
  22. Offline

    m5k

    That's how it works. God, I hate that.

    Actually, I think changing the whole way this plugin works seems to be the best answer. Make a separate config file, which is like:
    Code:
    Settings:
        Group1:
            denyattack:
                - Group2
                - Group3
            protectfrom:
                - Group4
                - Group5
    Messages:
        Group1:
            onattack: '&cYou are unable to attack &6$group.'
            onprotect: '&8Your fists fly through the ghastly apparition.' #optional. This overrides other group onattack messages.
        Group2:
            onattack: '&4Your class is incapable of combat.'
        Group3:
            onattack: '&aYou may not attack a player of the same faction.'
    
    Permissions nodes have too many limits for such a diverse plugin.
    This does seem like a ton of work but I think if it was done this way, it would end up being the best PvP handling plugin out there permanently.
     
  23. so this config actually works?? if it does that solves my problem for the teammates attacking their leaders :eek:

    im going to go try it now and if it works ill give you, uhh, well a virtual hug :D
     
  24. Offline

    m5k

    This config is an example of what I would want to be made, it's not a real config. -.-
     
  25. Offline

    OrtwinS

    Oh ****, a month no posts, is this still active? I really need this.
    It still works on 766 now, but will it on 812+ (when we get an 1.6 RB)
     
  26. Offline

    Pomme72

    Is this awesome plugin working with 818 ?
     
  27. Offline

    Stahlbrand

    I will be testing in a few hours I am doing a pvp plug change, and this is exactly what I need. So will let you know when I finish my update. If this fails then pvp is enabled for everyone on my server.

    I can confirm working with 818.

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

    Pomme72

    Yep, working fine with 818 ! :D
     
  29. Offline

    (AVE(N)GER)

    i have read through all posts but still am not sure if it is possible to have two or more groups vs each other but not fight amongst there own groups if so how would the permissions be set up because i have been trying to figure it out all day... people have sort of addressed this question by asking wether they can have certain teams not attack other team but attack other certain team. this is not what i want i just want to be able to have one team vs another but have it so they cant attack them selves

    i thought this would be possible by adding - 'groupPvP.blockgroup' under the each teams permissions but this doesnt work when i hit a team mate its tells me 'You are not allowed to attack other players.' so tried this

    - 'groupPvP.blockgroup'
    - '-groupPvP.denyattack'
    - '-groupPvP.protected'

    under each team that made it so it said the correct thing to each of my team mates but i couldnt do anything to the enemy team either it would say anything.... hope you understand and if you dont i will most likely check back here soon ...unless i die ;p ,if you want to ask anything to clear up my question thank you.


    -fixed problem :D



    oh yeh and for all those that are having problems that don't make sense trying turning god mode off ;p
     
  30. Offline

    fyrus12345

    My same situation. Im trying your fix.

    Works. But What If I have two groups??
     
  31. Offline

    Asphodan

    Trying to get it so that Default users can't attack or be attacked, so to prevent the camping of newbies.

    But it's having no effect at all, on the entire rank.
     

Share This Page