[ADMN] GroupBasedPVP v2.0.3 - Disable PVP for groups [1.4.5-1.4.7]

Discussion in 'Archived: Plugin Releases' started by homerbond005, Jun 16, 2011.

  1. Maybe this page is outdated. Please see Bukkit Dev.

    Hello together!

    This is already my 4th plugin. This idea is from poiuyt580.
    This is a plugin that disables PVP with groups. If you are in group1 and it is configured, you can't attack people form group2, for example. Players with with special permission nodes can't be attacked (are protected), can't attack other players (are disabled) or can attack everyone, ignoring the other cofigurations. A complex PvP structure can be set and nearly :p everything is configurable. Have fun!

    All Groups are set in PermissionsBukkit or PermissionsEx or bPermissions or GroupManager.

    Uses Metrics for sending completly anonomous data to http://mcstats.org for usage tracking. See http://mcstats.org and GitHub for more info.

    Requirements:

    PermissionsBukkit v1.2k
    or
    PermissionsEx
    or
    bPermissions
    or
    GroupManager


    Installation:
    1. Copy Group Based PVP.jar in your /plugins/ folder.
    2. Restart or reload your server.
    Configuration:
    1. Open penalties.yml in /plugins/GroupBasedPVP/
    2. "HealthAttackingPlayer" has to be a number. It adds live to the attacked player if the attacking player is not allowed. A minus in front of the number means damage. (Could be a gift)
    3. "HealthAttackedPlayer": Like 2. for the attacking player. (Could be a penalty)
    4. "CannotBeAttacked": Message for a protected player
      • %p for the player that is attacked
    5. "NoPermAttackAnyone": Message for a player that can't attack anyone
    6. "GroupNoPermAttackAnyone": Message for a player in a group that can't attack anyone
      • %g is the group that can't attack anyone
    7. "Group1NoPermAttackGroup2": Message for player in group1 that can't attack group2
      • %g1 will be replaced with group 1
      • %g2 will be replaced with group 2
    8. Open config.yml in /plugins/GroupBasedPVP/
    9. Add/edit lines like the following:
    Code:
    User: Admin #The group User cannot attack the group Admin
    Visitor: User, Admin #The group Visitor can't attack the groups User and Admin

    Permissions:

    GroupBasedPVP.pvp.protect
    -> Users with this node can't be attacked by anyone
    GroupBasedPVP.pvp.disallow
    -> Users with this node can't attack anyone
    GroupBasedPVP.pvp.everyone
    -> Users with this node can attack everyone even if they have GroupBasedPVP.pvp.protect

    Download:


    Changelog:
    • v2.0.2:
      • Fixed bug that showed errors in console when someone get shot by an arrow
      • Added class for permission checking
    Show Spoiler

    • v2.0.1:
      • Fixed bug that prevented configs of worlds generated by Multiverse being created/loaded
      • Fixed auto updater, added timeouts
      • All Multiverse users should update! - Now working with Multiverse!
    • v2.0:
      • PvP can be disabled in the settings.yml
      • Renamed GBPPL class to GBPListener class
      • Changed updater
    • v2.0-Beta-Build1:
      • Added multiworld support
      • See /plugins/GroupBasedPVP/ for more informations
      • Added WorldGuard region support
      • See /plugins/GroupBasedPVP/ for more informations
      • Renamed penalties.yml to settings.yml
      • Added new permission nodes
      • GroupBasedPVP.pvpgroup.<groupname>: Allows someone to attack another group, even if his group is not allowed to
      • Added Vault support
      • Renamed GBPPL class to GBPListener class
      • Changed way how YAMLs are loaded
      • Resource-conserving
      • Removed useless code
      • Now documented API on Github
      • Fixed some bugs
    • v1.9.3:
      • Added update reminder
      • Fixed several bugs
      • Updated configuration handling
      • Performance optimization
    • v1.9.2:
      • Added GroupManager support
      • Now sending anonymous usage data via Metrics to http://mcstats.org
    • v1.9.1:
      • Less code
      • Fixed bug with non registered user in PermissionsBukkit
    • v1.9:
      • Ready for Minecraft 1.2 and Bukkit 1.1-R5
      • Added bPermissions support
      • Fixed console messages
      • Fixed some potion bugs
    • v1.8.6:
      • Not sending empty messages
      • Now supporting other PVP mangers and Citizens.
    • v1.8.5:
      • FIXED a serious bug: Please update!
    • v1.8.4:
      • Arrow monitoring added: Players can't attack protected players with arrows
    • v1.8.3:
      • Added customizable messages
    • v1.8.2:
      • Fixed logical (stupid:)) bugs
      • PEX permissions fixed
    • v1.8.1:
      • Permissions added
    • v1.8:
      • PermissionsEx support
    • v1.7:
      • Puuh. It's a long time ago, that I've submitted the last update. That meant incompatibility :(
      • But now!!!! It is compatible to #1240 :)
    • v1.6:
      • "Wildcard"-Update
      • Added Wildcards for groups:
        Code:
        AttackingGroup: '*';
      • Removed more senseless things from console
    • v1.5:
      • Updated for #1060
      • Removed more unused stuff from console
      • Bug fixes at penalty-/gift-system
    • v1.1:
      • Bug fix: It doen't spam your console now. :)
    • v1.0:
      • Added penalties and gifts.
    • v0.9.1:
      • Released important bug fix! Please update.
    • v0.9:
      • First release

    [​IMG]
     
  2. Offline

    poiuyt580

    I approve, am currently using it!
     
  3. Offline

    ChrizC

  4. Offline

    poiuyt580

    There seems to be issues, if I attack someone that I'm allowed to, the server crashes!
     
  5. Offline

    kahlilnc

    Is it possible to set it up to where you are in group1 and make it to where group1 can not attack group1?
     
  6. @kahlinlnc: Yes, of course you can do that.
    @ChrizC: I didn't say that I'm a professional! :D
     
  7. Offline

    Justin Hawtree

    my set up is
    Prisoner: Pacifist
    Pacifist: Prisoner, Pacifist
    but when pacifist attacks pacifist it says group pacifist is not allowed to attack Prisoner even tho both players are in group Pacifist so i think you made it auto get the first group you set for the message.

    also when i had
    Prisoner: Pacifist
    Pacifist: Prisoner
    Pacifist: Pacisfist
    my server timed out lol.

    you probably had like
    group1: group2
    group1: group1
    group2: group1
    just combine like
    group1: group2, group1
    group2: group1
    if you do two same group lines the server times out

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

    poiuyt580

    Ah, thanks.
     
  9. Oh thanks Justin Hawtree. I'll release a fix if I find the failure.
    Edit:
    There's no way to fix this.
     
  10. Offline

    poiuyt580

    Seems like it didn't fix anything, my config is like this:
    Code:
    Guest: Local, Shade, Mercenary, Guardian, Stalker, Knight, Protector, Nightwalker, Warlord, Shield
    Shade: Shade, Stalker, Nightwalker
    Mercenary: Mercenary, Knight, Warlord
    Guardian: Guardian, Protector, Shield
    Stalker: Shade, Stalker, Nightwalker
    Knight: Mercenary, Knight, Warlord
    Protector: Guardian, Protector, Shield
    Nightwalker: Shade, Stalker, Nightwalker
    Warlord: Mercenary, Knight, Warlord
    Shield: Guardian, Protector, Shield
     
  11. ---------------------------------------------------------------------------------------------------------------------------------
    I released a bug fix. Very important! Please update so that your server does not crash anymore.
    ---------------------------------------------------------------------------------------------------------------------------------
     
  12. Offline

    Justin Hawtree

    so is the pvp message of the groups fixable?
     
  13. In the next update I'll make customizable messages, penalties and gifts.
     
  14. Offline

    poiuyt580

    Gifts! Oh, the fun!
     
  15. Offline

    capsar

    the plugin i want thanks but it spawns my console!! please fix that!
    keep working on it!
     
  16. What? Please send me a screenshot or paste the data.
    Thanks for good review :).
     
  17. Offline

    capsar

    it's that debug mode i tink it says like

    it's of killing 1 zombie

    Code:
    21:59:29 [INFO] EntityDamageByEntityEvent
    21:59:29 [INFO] Not a Player attacked
    21:59:29 [INFO] EntityDamageByEntityEvent
    21:59:29 [INFO] Not a Player attacked
    21:59:30 [INFO] EntityDamageByEntityEvent
    21:59:30 [INFO] Not a Player attacked
    21:59:30 [INFO] EntityDamageByEntityEvent
    21:59:30 [INFO] Not a Player attacked
    21:59:30 [INFO] EntityDamageByEntityEvent
    21:59:30 [INFO] Not a Player attacked
    21:59:30 [INFO] EntityDamageByEntityEvent
    21:59:30 [INFO] Not a Player attacked
    21:59:30 [INFO] EntityDamageByEntityEvent
    21:59:30 [INFO] Not a Player attacked
    21:59:30 [INFO] EntityDamageByEntityEvent
    21:59:30 [INFO] Not a Player attacked
    21:59:31 [INFO] EntityDamageByEntityEvent
    21:59:31 [INFO] Not a Player attacked
    21:59:31 [INFO] EntityDamageByEntityEvent
    21:59:31 [INFO] Not a Player attacked
    21:59:31 [INFO] EntityDamageByEntityEvent
    21:59:31 [INFO] Not a Player attacked
    21:59:31 [INFO] EntityDamageByEntityEvent
    21:59:31 [INFO] Not a Player attacked
    
     
  18. Oh thanks. These were some private notices. I though I removed them. There'll be a bug fix at Tuesday, tomorrow.
     
    capsar likes this.
  19. Offline

    capsar

    say thanks!
    i like the plugin alot and also like it that you reacting fast!
    keep working on it!
    NICE PLUGIN!!!
     
  20. Yes I'm going to. The update is out now. Please report more errors or things I could make better.
     
  21. Offline

    capsar

    thanks!
     
  22. Offline

    m5k

    For some odd reason it doesn't work completely.
    cb953, mc1.7.2, no errors in log.
    Config file:
    Code:
    Default: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Gladiator: Default, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Sage: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Farmer: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Lumberjack: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Fisherman: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Merchant: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Locksmith: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Hunter: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Innkeeper: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    BlackSmith: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Miner: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Crusader: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    PaladinSwordsman: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    PaladinArcher: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Page: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Thief: Fox, Thief, Tunneler, DarkArcher, Slayer, Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Tunneler: Fox, Thief, Tunneler, DarkArcher, Slayer
    DarkArcher: Fox, Thief, Tunneler, DarkArcher, Slayer
    Slayer: Fox, Thief, Tunneler, DarkArcher, Slayer
    Though I really doubt there's anything wrong with the config file. The groups are case sensitive.
     
  23. What does not work?

    Look at the title: Not 1.7.2 support yet. I'll update it.

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

    m5k

    Ah, sorry, my bad.
     
  25. Offline

    m5k

    Any plans on updating? This is the best pvp control plugin out there.
     
    homerbond005 likes this.
  26. Yeah, I'm working at it but I can't find the failure. Now I'm going to continue the search.
     
  27. Offline

    m5k

    Ah, good to know this hasn't been abandoned :)
     
  28. On my local server it is working fine. Try adding one group after another. Not at the same time.
    Edit:
    Describe what is not working. Every player can attack every player? No one can attack?

    Btw: Nice server. I saw your trailer and I think it is good, but you should show something of your server.

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

    m5k

    everyone can attack everyone. Here's the config:
    Code:
    Default: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Gladiator: Default, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Sage: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Farmer: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Lumberjack: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Fisherman: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Merchant: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Locksmith: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Hunter: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Innkeeper: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    BlackSmith: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Miner: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Crusader: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    PaladinSwordsman: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    PaladinArcher: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Page: Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Thief: Fox, Thief, Tunneler, DarkArcher, Slayer, Default, Gladiator, Sage, Farmer, Lumberjack, Fisherman, Merchant, Locksmith, Hunter, Innkeeper, BlackSmith, Miner, Crusader, PaladinSwordsman, PaladinArcher, Page
    Tunneler: Fox, Thief, Tunneler, DarkArcher, Slayer
    DarkArcher: Fox, Thief, Tunneler, DarkArcher, Slayer
    Slayer: Fox, Thief, Tunneler, DarkArcher, Slayer
     
  30. Are there two folders? GroupBasedPVP and Group Based PVP?
     

Share This Page