[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. Offline

    homerbond005

    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

    homerbond005

    No, but I will add the support in version 2.0.
     
  3. Offline

    LihP

    Thank you for the work on this plugin, we struggled to find one that works great with Dwarves vs zombies. Could i request that the console messages be optional, and snowballs be included in the projectile pvp please.
     
  4. Offline

    homerbond005

    I've added these features and they will be included in the v2.0 :)
     
  5. Offline

    Tigerius

    great plugin!
    keep it up
     
  6. Offline

    Darthmineboy

    Can you make this for groupmanager? Loads of people use it, i want to use it on my faction server. i have groups such as giants orgs etc. but they are attacking each other. Thanks
     
  7. Offline

    HamsterTwink

  8. Offline

    homerbond005

    Okay, obviously I forgot to add it to the description. Thanks ;)
     
  9. Offline

    HamsterTwink

    This works for GroupManager already, he just forgot to write it in the description ;)
     
  10. Offline

    worstboy32

    Is there a possible way to remove messages?
    When i leave it blank it's spamming errors.
     
  11. Offline

    reshaf

    Code:
    [SEVERE] Could not pass event EntityDamageByEntityEvent to GroupBasedPVP
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:304)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:363)
    at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:381)
    at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:608)
    at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:595)
    at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:215)
    at net.minecraft.server.EntityHuman.attack(EntityHuman.java:750)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:998)
    at net.minecraft.server.Packet7UseEntity.handle(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NumberFormatException: For input string: "-0.5"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:481)
    at java.lang.Integer.parseInt(Integer.java:514)
    at de.HomerBond005.GroupBasedPVP.GBPPL.loadConfig(GBPPL.java:94)
    at de.HomerBond005.GroupBasedPVP.GBPPL.onEntityDamage(GBPPL.java:63)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
    

    I use GroupManager, And I would like the group Warrior can just attack his group
     
  12. Offline

    homerbond005

    The numbers in the config.yml have to be integers, with out a decimal point. If you want some ones live to be reduced by one heart -1 is the right number.
     
  13. Offline

    reshaf

    Ok, I want the warrior is the only group that has the power to do pvp on themselves.

    Warrior vs. Warrior

    Here is the config

    Code:
    Guerrier: Default, Builder, Moderator
    Default: Guerrier, Builder, Moderator
    Builder: Guerrier, Builder, Moderator
     
  14. Offline

    homerbond005

    Sorry but I can't help you, because I don't know the configuration of the groups on your server.
     
  15. Offline

    reshaf

    Or just tell me to only one group has the power of pvp?
     
  16. Offline

    homerbond005

    If you have the groups Default, Builder, Guerrier and Warrior the code you've posted before should work.
     
  17. Offline

    malthemail

    i have one thing i wodt love you to put in hte plugin. an PvP: off/on button, so pvp will be totaly off or on​
     
  18. Offline

    homerbond005

    Okay, that is a thing for v2.0.
     
  19. Offline

    hungercraft

    Please, i want to fight with other player but i'm OP, well nobody can attacted me. So how have fair PVP if i'm OP ?
     
  20. Offline

    cornand34

    yea got the same problem
     

Share This Page