[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

    soloman981

    I think there is a bug that you can attack everyone with a bow
     
  3. Offline

    homerbond005

    Oh shit. Error log?
     
  4. Offline

    jesuspunk

    this version 1.8.4 i have this error in log file:
    Code:
    14:59:37 [SEVERE] Could not pass event org.bukkit.event.entity.EntityDamageByEntityEvent to GroupBasedPVP
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftSpider cannot be cast to org.bukkit.craftbukkit.entity.CraftArrow
            at com.bukkit.HomerBond005.GBP.GBPPL.onEntityDamage(GBPPL.java:91)
            at org.bukkit.plugin.java.JavaPluginLoader$66.execute(JavaPluginLoader.java:729)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
            at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:598)
            at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:213)
            at net.minecraft.server.EntityMonster.d(EntityMonster.java:105)
            at net.minecraft.server.EntityMonster.a(EntityMonster.java:111)
            at net.minecraft.server.EntitySpider.a(EntitySpider.java:101)
            at net.minecraft.server.EntityCreature.m_(EntityCreature.java:70)
            at net.minecraft.server.EntityLiving.d(EntityLiving.java:945)
            at net.minecraft.server.EntityMonster.d(EntityMonster.java:27)
            at net.minecraft.server.EntitySpider.d(EntitySpider.java:26)
            at net.minecraft.server.EntityLiving.y_(EntityLiving.java:339)
            at net.minecraft.server.EntityMonster.y_(EntityMonster.java:31)
            at net.minecraft.server.EntitySpider.y_(EntitySpider.java:30)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1258)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:110)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1240)
            at net.minecraft.server.World.tickEntities(World.java:1147)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:528)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    
    bukkit version R3 and R4.
     
  5. Offline

    homerbond005

    Yes, I know. Bugfix will be released in a few seconds.

    Fixed. Thanks for error reporting. :)

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

    Milkywayz

    Thanks very much man, I wanted to get this plugin awhile back but it wasn't updated. Keep up the good work.
     
  7. Offline

    jesuspunk

    hmm this me don't fixed error

    GBP 1.8.5 Bukkit R4.

    Code:
    08:26:24 [SEVERE] Could not pass event org.bukkit.event.entity.EntityDamageByEntityEvent to GroupBasedPVP
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftSkeleton cannot be cast to
     
    org.bukkit.entity.Player
            at com.bukkit.HomerBond005.GBP.GBPPL.onEntityDamage(GBPPL.java:91)
            at org.bukkit.plugin.java.JavaPluginLoader$66.execute(JavaPluginLoader.java:729)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
            at net.minecraft.server.EntityArrow.y_(EntityArrow.java:209)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1262)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:110)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1244)
            at net.minecraft.server.World.tickEntities(World.java:1151)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:528)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
    08:35:41 [SEVERE] Could not pass event org.bukkit.event.entity.EntityDamageByEntityEvent to GroupBasedPVP
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftSpider cannot be cast to org.bukkit.craftbukkit.entity.CraftArrow
            at com.bukkit.HomerBond005.GBP.GBPPL.onEntityDamage(GBPPL.java:91)
            at org.bukkit.plugin.java.JavaPluginLoader$66.execute(JavaPluginLoader.java:729)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
            at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:598)
            at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:213)
            at net.minecraft.server.EntityMonster.d(EntityMonster.java:105)
            at net.minecraft.server.EntityMonster.a(EntityMonster.java:111)
            at net.minecraft.server.EntitySpider.a(EntitySpider.java:101)
            at net.minecraft.server.EntityCreature.m_(EntityCreature.java:70)
            at net.minecraft.server.EntityLiving.d(EntityLiving.java:947)
            at net.minecraft.server.EntityMonster.d(EntityMonster.java:27)
            at net.minecraft.server.EntitySpider.d(EntitySpider.java:26)
            at net.minecraft.server.EntityLiving.y_(EntityLiving.java:341)
            at net.minecraft.server.EntityMonster.y_(EntityMonster.java:31)
            at net.minecraft.server.EntitySpider.y_(EntitySpider.java:30)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1262)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:110)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1244)
            at net.minecraft.server.World.tickEntities(World.java:1151)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:528)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  8. Offline

    homerbond005

    Humpf... Sorry my fault. I uploaded the wrong file. Now it will work. No, it is going to! :D
     
    jesuspunk likes this.
  9. Is this plugin ready for 1.1 ?
     
  10. Offline

    homerbond005

    No answer. Read the description before posting any question.
     
  11. Offline

    jesuspunk

    big thanks. now my logs is clear it great!
     
  12. Offline

    Imkingofthehill

    Code:
    AttackerGroup: AttackedGroup
    default: Police, Veteran, Moderator, V.I.P, Admin, Admin*, Op, Owner
    Builder: Admin, Admin*, Op, Owner
    Police: Admin, Admin*, Op, Owner
    Veteran: Admin, Admin*, Op, Owner
    Moderator: Admin, Admin*, Op, Owner
    V.I.P: Admin, Admin*, Op, Owner
    Admin: default, Builder, Police, Veteran, Moderator, V.I.P
    Admin*: default, Builder, Police, Veteran, Moderator, V.I.P
    Op: default, Builder, Police, Veteran, Moderator, V.I.P
    Owner: default, Builder, Police, Veteran, Moderator, V.I.P 
    For some reason default-mod cant hit admins but admins can hit them help! plz
     
  13. Offline

    homerbond005

    The groups are case-sensitive. Try Default.
     
  14. Offline

    soloman981

    I dont have error log
     
  15. Offline

    homerbond005

    Update.
     
  16. Offline

    noonzark

    This is realy good for my rpg server for my different races thx man great plugin lol i would even pay you for this but i dont have the money best pvp plugin do u have a video i can make one for you
     
  17. Offline

    homerbond005

    If you want to make one you can do it of course ;) A good tutorial is nice for the description. If you really want to make one, start a private conv :)
     
  18. Offline

    teenspirit7

    It'd be great if you could ad bPermisisons support, or Vault support (so it works for all permisisons)

    Thanks
     
  19. Offline

    Axa

    Is it update for MC 1.2.4 and CB 1.2.4-R1 ??
     
  20. Offline

    homerbond005

    At the moment I'm in my holiday. When I'm be home, I'll update it.
     
  21. Offline

    Axa

    So ... have nice holiday ....
     
  22. Offline

    ViruS181

    Hello. I love Your plugin and i very need it :<. So if u can update it, i'll be very gratefull :D.
     
  23. Offline

    homerbond005

    It works with 1.2.5 :) Have fun
     
  24. Offline

    adri49400

    Hello,
    I have craftbukkit 1.2.5 and last vesion of this plugin and the plugin work fine but I have a problem the plugins flood log serveur :


    Code:
    [SEVERE] Could not pass event EntityDamageByEntityEvent to GroupBasedPVP
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:360)
    at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:378)
    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:997)
    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:551)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
    at com.bukkit.HomerBond005.GBP.GBP.getGroups(GBP.java:130)
    at com.bukkit.HomerBond005.GBP.GBPPL.onEntityDamage(GBPPL.java:107)
    at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    ... 16 more
    
     
  25. Offline

    homerbond005

    You are using PermissionsBukkit, right? Does this error shows up when a player without any groups is attacked / attacks someone?
     
  26. Offline

    adri49400

    Yes i use permissionsBukkit. :(
     
  27. Offline

    homerbond005

    Please answer my seconde question.
     
  28. Offline

    adri49400

    Yes, have you a solution ?
     
  29. Offline

    homerbond005

    Probably. I will make a dev build for you.
     
  30. Offline

    adri49400

    Big thank ! :) The dev build workd fine, I have any bug with permissionsbukkit !

    thank! thank! thank !
     
  31. supports your plugin group manager from essenstials?
     

Share This Page