[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

    Pencil

    andy1992 likes this.
  3. Offline

    bizzybusk

    does this work for 600+?
     
  4. Offline

    FlingeR

    have not tried it yet, I'll fix it when I update my server to version 1.4.

    Working on CB-617.

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

    NainPorteTout

    But... What are the commands in game ?
     
  6. Offline

    FlingeR

    for what reason do you need a command?

    You only need to stablish the Permissions, you can use the command of your Permissions/GroupManager plugin to do so.
     
  7. Offline

    eateren

    I hope you dont mind me reposting this here and also asking one more question.

    1.
    This is so useful for me to manage guests! I can get rid of an entire plugin now.

    2. So to have Group1 not be able to pvp Group2 and vise versa, we add groupPvP.blockgroup to their permissions?
     
  8. Offline

    FlingeR

    you shoud use "groupPvP.blockgroup" to disable the Friendly-fire between members of the same group.

    With "groupPvP.denyattack" you block all the attacks from that group.

    And with "groupPvP.protected" the group will be protected against attacks from any other player, no matter from which group the attacker is.


    I should add support to manage more direct relationships between groups like:

    Group1 can attack Group2.
    Group1 can't attack Group3.
    Group2 can attack Group3.

    Becouse this is imposible with this version of the plugin, you can't specify permissions from a group to another, the nodes are very general and affect to the relationship of the group with any other group.
     
    Crown3r likes this.
  9. Offline

    eateren

    Ah, okay. That works fine for me, this is a really light weight solution! :p
     
  10. Offline

    m5k

    Was waiting for this since I started my RP server. Now finally the Dark Fox clan of thieves and the townspeople will only fight against each other, instead of accidental attacks and etc. Thanks a lot.
     
  11. Offline

    FlingeR

    you're welcome.
    It's nice to know that someone else find it useful.
     
  12. Thanks! Very useful
     
  13. Offline

    andy1992

    Hello i am having some problems with your plugin.
    i am using bukkit 617 and have permissions set out like so
    Code:
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'groupPvP.blockgroup'
    But i keep getting this error when someone hits someone else. they don't even need to be in that group
    Code:
    2011-04-07 19:50:56 [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$41.execute(JavaPluginLoader.java:452)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:504)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:722)
        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)
    I have checked and i am definalty running 617. i look forward for your help as i would really like to use this plugin. thanks
     
  14. Offline

    Crown3r


    I get the same error too.
     
  15. Offline

    FlingeR

    @Crown3r
    @andy1992

    What permissions plugin are you people useing ?
     
  16. Offline

    Crown3r

  17. Offline

    andy1992

    same as Crown3r
     
  18. Offline

    FlingeR

    I'm in a hurry now, but is son i get home i will look into it, it was tested with GroupManager, maybe there is some incompatibility.

    @Crown3r
    @andy1992
    Please, do me a favor, could you guys test this version ?
    http://www.opentz.com.ar/MinecraftProjects/groupPvP/groupPvP.jar

    I think that it's fixed but i haven't test it yet.

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

    Crown3r

    Works, but with the Permissions "'groupPvP.blockgroup'" the group can´t attack another groups.
     
  20. Offline

    FlingeR

    with 'groupPvP.blockgroup' a group cant attack another group ?
     
  21. Offline

    Crown3r

    Exactly...
     
  22. Offline

    FlingeR

  23. Offline

    Hapistorique

    This is the same thing as Party plugin, but without the chat feature :/

    Add this feature :D
     
  24. Offline

    FlingeR

    I dont think that this plugin is the same as Party, this is for GROUPS defined by the Permissions plugin.
    If you need a chat you can use HeroChat, it has Chat channels with permissions integration.
     
  25. Offline

    Crown3r

    Thanks much, its works perfectly :)

    Edit: Sometimes is get this error:

    Code:
    2011-04-08 21:01:29 [SEVERE] Could not pass event ENTITY_DAMAGE to groupPvP
    java.lang.NullPointerException
        at java.lang.String.replace(Unknown Source)
        at com.bukkit.FlingeR.groupPvP.groupPvPEntityListener.onEntityDamage(groupPvPEntityListener.java:31)
        at org.bukkit.plugin.java.JavaPluginLoader$41.execute(JavaPluginLoader.java:452)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:504)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:722)
        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)
     
  26. Offline

    Retribution831

    Great Plugin!

    But, I was hoping so that players cant attack higher ranks, but could attack lower ranks. I think thats what you meant in your other post.
     
  27. Offline

    Fasgort

    Code:
    2011-04-09 15:44:04 [SEVERE] Could not load plugins\groupPvP.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 99
        at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:68)
        at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:159)
        at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:117)
        at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:106)
        at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:964)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:237)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:200)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:104)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:73)
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:149)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:103)
        ... 8 more
    Bukkit 617, groupPvP v0.3
     
  28. Offline

    FlingeR

    @Fasgort
    You have a problem with the config.yml file, you are useing an illegal character, you can use this parser to fix it: http://yaml-online-parser.appspot.com/
    @Crown3r
    I will check that error, thanks for reporting it, besides i have to update the plugin for CB-670.

    - Fixed for CB-670.
    @Crown3r
    It seems fixed.

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

    Crown3r

    Thanks, it works fine :)
     
  30. Offline

    OrtwinS

    Can you make the 0.3 cb617 compatible version availeble? I cant upgrade yet because not all plugins are updated yet.
    Sorry for the inconvenience, but it add a lot if you keep the last few recommended builds online :D.
     

Share This Page