[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

    m5k

    Only GroupBasedPVP which was created by default.
     
  3. Hmm. I'll create a debug build that you could install.
    Are there any errors while enabling the plugin?
     
  4. Sorry for late answer. Which Permission-System do you use? (This plugin requires Permissions 3.x)
     
  5. Offline

    m5k

    P3 cb953 mc1.7.2
     
  6. Shit. I don't know where the failure is but I continue trying to find it.
     
  7. Offline

    djrazr

    Well its not working -.-'

    config.yml
    penalties.yml
    still everyone can kill everyone...
     
  8. You have to put all bBauarbeiter in one group:
    bBauarbeiter: bTischler, bBauarbeiter, etc.
    Don't forget the space after the comma.
     
  9. Offline

    warchicken

  10. Offline

    Monkey78

    I used the following very basic config to try and stop players in the 'Unregistered' group (my 'default' group in Permissions 3.x) from griefing other players:
    Code:
    Unregistered: Admin, Moderator, Member, Rookie, Unregistered
    But any player in the 'Unregistered' group could still damage any players they wanted.

    On top of this, all my WorldGuard regions which were previously non-PvP areas due to the "pvp: deny" flag also stopped preventing PvP and any player could hit any other player in these regions regardless of which group they were in.

    Seems there are some incompatible plugins after all. :oops:
     
  11. @warchicken and @Monkey78: Hmm. Seems like there is a failure in the source code. I'll fix it when I'm back because now I'm in my holidays.

    Beta-Version: <Edit by Moderator: Redacted mediafire url>

    I think this will work now. Please give me a reply, so that I can publish it.
    Thanks for error reporting.
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 27, 2016
  12. Offline

    Monkey78

    Well, the WorldGuard regions are now working again, and people can no longer PvP in 'no-PvP' flagged regions.

    However, it's still not preventing my 'Unregistered' ranked players from PvPing other people, and the penalties don't apply either.
    Using the previous Code in the config did not seem to change how the 'Unregistered' members could interact with the other players.

    Also, when installing the plugin, it created the "GroupBasedPVP" folder in my '/plugins' folder containing config.yml and penalties.yml in it as normal, and I added the above used code into config.yml.
    After a restart of the server, I noticed there was another identical folder in my '/plugins' folder named "Group Based PVP" (with spaces) which also had the default config.yml and penalties.yml in it.
    I put the code into that one also, but still nothing changed.
     
    Last edited by a moderator: Nov 27, 2016
  13. Some other people informed me about this but I don't understand how this folder is created....
     
  14. Offline

    Monkey78

    It didn't work regardless of putting the code in the config in both the folders, and was spamming my logs with errors relating to being unable to find the right file, so I've removed the plugin again.
     
  15. I'll do my best to find the failure.
    So keep your files.

    By the way: which failures do you get?
     
  16. Offline

    rediem

    Updates for permission bukkit?
     
  17. I have to update all my plugins (below) for #1060. Maybe I'll include Bukkit permissions. But I do Not really Know how to. I don't work with them, because I think Permissions-Plugin has more features. I'll think about it tomorrow.

    Edit:
    I have looked at the API. There is no possibility of implenting this in Group Based PvP. I think you have to become friends with Permissions-Plugin.
     
  18. Offline

    rediem

    Too bad :( Because all the plugins that I use, are already on BukkitPerms. :/
     
  19. The problem is that BukkitPerms do not have an integrated function to check the groups. But I'll keep on searching for an alternative.
     
  20. Offline

    rediem

    Any updates? :/
     
  21. No sorry. I think we have to wait for a Bukkit update. But I am searching for an alternative.
     
  22. Offline

    Machete.Panda

    can you add wildcards. so in the config file default: * would mean that the default group cant attack anyone, and *: default would mean no one can attack the default group.

    EDIT:
    Also. Great plugin! sadly it wont work with bukkit permissions. Could you please set this up to work with bukkit permissions? My server is moving to this as it becomes the standard. Cheers!
     
  23. You are the second one, who asks for bukkit permissions. Look at this thread:
    The idea with wildcarts is good I'll try adding it.
     
  24. Offline

    Keav

    Plugin works really well, but my only problem is that you can still hurt others with a bow :(.
    Would be awesome if you could fix that.
     
  25. With a bow, hmm? Yeah that could be.... I try fixing it. Thanks!

    I added the feature but I have Problems with the upload. Tomorrow I'll try it again.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  26. ----Update is out now!------
    Wildcard for groups:
    Code:
    AttackingGroup: '*':
    and Bugfixes!
    *: default; is a bit difficult. Maybe in version 2.0.
     
    Machete.Panda likes this.
  27. Offline

    Lexington

    Doesn't work for me ... Console says its loaded and active but defined groups can still pvp.
    Bukkit 1185 with Permissions 3
     
  28. Currently it only Supports #1060. I'll update it in the next days.
     
  29. Offline

    JohnPulse

    Any feedback regarding te update?
    Regards,
    John
     
  30. I found a solution. I'm adding PermissionsBukkit.
    Edit: Update in about 3 hours if everything works.
     
  31. Offline

    JohnPulse

    Hi!
    Thank for the update, but I still have a problem.
    I got the following config:
    Code:
    default: Constructor, Arquitecto, Engenheiro, Moderador, Admin
    And whenever someone from the group Default punches someone from the other groups, like Constructor, the damage passas and I get the following error in the console:
    Show Spoiler
    23:53:20 [SEVERE] Could not pass event ENTITY_DAMAGE to GroupBasedPVP
    java.lang.NullPointerException
    at com.bukkit.HomerBond005.GBP.GBP.getGroups(GBP.java:86)
    at com.bukkit.HomerBond005.GBP.GBPPL.onEntityDamage(GBPPL.java:86)
    at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.j
    ava:684)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
    at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:570)
    at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:202)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:721)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:916)
    at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    Thanks for your time.
    Running BK #1240 with PermissionBukkit 1.2k
    Regards,
    John
     

Share This Page