Inactive [SEC/GEN] PvPplus v1.4 - Total PvP control, including personal PvP! [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Randy Schouten, Jun 4, 2011.

  1. Offline

    Randy Schouten

    PvPplus - PvP customization to the max!
    Version: v1.4

    If you don't want global PvP, just use this plugin and everyone can have their own PvP status!

    Features:
    • Personal PvP
    • Custom delay on turning PvP off
    Download:

    ZIP
    RAR

    Just to be sure, remove the players from the config file to prevent possible errors.

    How to install:
    Just copy paste the contents of the .rar file to your plugins folder.
    Then go into the config file and change your delay (in seconds).

    How to use:
    Commands:
    Code:
    Normal players:
    /pvp on, turns pvp on
    /pvp off, turns pvp off with the set delay
    /pvp check, shows current pvp status
    
    OPs:
    /pvp off [player], turns a certain players PvP off+ overrides delay. (Case sensitive name)
    /pvp on [player], turns a certain players PvP on.
    /pvp delay [seconds], sets the delay/cooldown in seconds
    Permissions:
    Code:
    OPs:
    pvpplus.delay - Gives access to /pvp delay.
    pvpplus.override.other - Gives access to the commands to change other players PvP status.
    pvpplus.override - Overrides delay
    Todo:

    Suggestions are always welcome!
    • Override delay permission
    • Worldedit implentation
    • Override /god command
    • Show exact time left in the /pvp check command
    Green: high priority

    Yellow: mid priority
    Red: low priority
    Crossed have been done.

    Changelog:
    • v1.4
      • Added arrow tracking
      • Removed essentials as a need plugin
    • v1.3.4
      • Fixed bug
    • v1.3.3
      • Fixed a typo in the plugin that stopped it from detecting players in the config
    • v1.3.2
      • Fixed that the config was getting erased
    • v1.3.1
      • Possibly fixed bug that made people still able to PvP
    • v1.3
      • Updated for Bukkit 1000
      • Rewrote the whole plugin, should be a lot more efficient and bug proof
    • v1.2.3
      • Fixed major bugs:
        • Fixed checking so it now properly cancels damaging
        • Fixed typing /pvp off twice turning it off, bypassing the timer
        • Fixed /pvp check from giving an error if the server was restarted when somebody was in timing mode
        • Fixed the plugin giving an error message when the arguments failed to match
        • Probably some other stuff I forgot
      • Cleaned up the whole code
      • Automatically changing players who were on cool down to off when server restarts/plugin reloads to prevent errors
    • v1.2.2
      • Fixed /pvp on not working when a player has never used godmode
    • v1.2.1
      • Added a few more handy commands
      • Added override permission
    • v1.2
      • Override /god commands
      • Shows exact time in the /pvp check command on delay
      • Changed name of plugin
      • General cleaning up of code
    • v1.0
      • Initial release
     
    moselekm likes this.
  2. Offline

    Disparate

    Hi - since the update this plugin just isn't working at all. Everything was fine with the previous version and Bukkit build 1000 but now I've updated no one can toggle PVP (or at least you can toggle it, but you remain PVPable regardless...)
     
  3. Offline

    Randy Schouten

    That is weird.

    No error messages or anything?

    I've tested it on my private server and it worked perfectly there...
     
  4. Offline

    Disparate

    It wasn;t to begin with. IT has started working - but only partly. People are sometimes PVP disabled but you can still attack them and often people cannot change their status. An error has started to be thrown too:

    Code:
    22:21:09 [SEVERE] Could not pass event ENTITY_DAMAGE to PvPplus
    java.lang.NullPointerException
            at randy.pvpp.pvppEntityListener.onEntityDamage(pvppEntityListener.java:
    71)
            at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.j
    ava:649)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
            at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:423)
            at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:179)
    
            at net.minecraft.server.EntityHuman.d(EntityHuman.java:561)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:858)
            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:85)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    This doesn't throw all the time adn is not when people are attacked, but when they attack other things it seems.

    Very odd.
     
  5. Offline

    Randy Schouten

    I've uploaded a possible fix.

    Try it now.
    Make sure to have your users relog after you installed the plugin, if you are able to install it without stopping the server.
    This will make them appear in the config file, which was possibly the bug.
     
  6. Offline

    ohmydoddtv

    Testing time :D

    Final results: Not working at all... :( Yes even after relogging

    Hmmm seems that only 1 player is appearing in the configs at a time? Oh and there's nothing to do with being able to change the Delay in the configs...it just has the players name.

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

    Randy Schouten

    Gotcha, should be fixed now.

    It erased the config when somebody joined for some reason.

    The like means it works or...? :p

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

    ohmydoddtv

    The PVP problem still occurs, not sure about the configs :/

    EDIT: Is there meant to be a delay setting? Also do you not have a server to test this on yourself? :p
     
  9. Offline

    Randy Schouten

    Could you check it for me?

    I can only do it with a maximum of 2 players, 1 online mode, 1 offline mode.
    So I can't really test that thoroughly :p
     
  10. Offline

    ohmydoddtv

    Configs don't reset themselves, all my players are on 'false' but still getting hurt. I also don't see a 'Delay' config which I thought was meant to be there?

    I'm more than willing to test developmental builds before you release them?
     
  11. Offline

    Randy Schouten

    Oki dokie.
    I made a stupid mistake.

    Should work now, download again :p
     
  12. Offline

    ohmydoddtv

    IT WORKS :D

    Now back to work on Epic Quest! xD
     
  13. Offline

    Randy Schouten

    SIR YES SIR!

    I'll post a status report in the thread, show that I'm still working :p
     
    ohmydoddtv likes this.
  14. Offline

    ALLix

    Problem :

    PHP:
    17:33:38 [SEVERECould not pass event ENTITY_DAMAGE to PvPplus
    java
    .lang.NullPointerException
            at randy
    .pvpp.pvppEntityListener.onEntityDamage(pvppEntityListener.java
    31
    )
            
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.
    ava:649)
            
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.ja
    a
    :58)
            
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.
    ava:332)
            
    at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:423)
            
    at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:179

            at net
    .minecraft.server.EntityHuman.d(EntityHuman.java:561)
            
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:858)
            
    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:85)
            
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    last version for 1000, thx!
     
  15. Offline

    Randy Schouten

    Should work now :)
     
  16. Offline

    coankid

    The configfile is erased again. Only the players are listed. And the normal Users can not use /pvp on and there are no permission to give them :(
     
  17. Offline

    vasil7112

    Hey this plugin is really great..
    Do you know what you can do to be perfect?
    Add an option like pvp time...
    that when its time night..pvp of all users turn on
    and when day the pvp turn off and if the user want to make it on the he will with that code..pvp on
    what do you say?
    Thnx
     
    soulreaver797 likes this.
  18. Offline

    alfskan

    can you please another command version?

    or make it configurable ?

    cause it conflicts with pvpreward plugin.:'(
     
  19. Offline

    Steelstiletto

    Could you add permission nodes for a user's default status? So you can have a hard-core group that has it on by default and can't turn it off?
     
  20. Offline

    scrub88

    i don't suppose it turns the players name (above their head not in chat) green when they have pvp disabled and turns it red when enabled? :D would be a great feature.
    im not actually using the plugin atm (my server isn't public yet) but I will.. along with npc quester and epic quest :D keep up the good work!
     
  21. Offline

    iceguru

    This one wont work either :(
     
  22. Offline

    topsub

    Is there a permissions so i can only give this ability to certain user groups? I would like my normal users not to be able to set this flag.

    Also the /pvp clashes with other plugins. Could you change it to maybe /pvpp on Or something?

    Or have it where we can set this in the config?
     
  23. Offline

    Casier

    Can you send me the source code because i can translate in french if you want...
     
  24. quick question, does the delay recent when someone enters combat?
     
  25. Offline

    G1R Productions

    16:51:46 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to PvPplus
    java.lang.NullPointerException
    at randy.pvpp.pvppPlayerListener.onPlayerCommandPreprocess(pvppPlayerListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:272)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:706)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  26. Offline

    ItsQ

    Can you make the config file so i can set off the "You have both pvp off" Spam?
    its really annoying when player spleef and mobarena.
    Can you set it that is a players die the pvp is auto to set pvp off?


    Great plugin! really like it alot.
    I use Commandsigns and it lets you warp into a arena and set pvp on for you ;)
     
  27. Offline

    frozencanadian

    Similar error at G1R's, If you want any more info then this just ask.


    PHP:
    03:43:35 [SEVERECould not pass event ENTITY_DAMAGE to PvPplus
    java
    .lang.ClassCastExceptionjava.lang.String cannot be cast to java.lang.Integ
    er
            at randy
    .pvpp.pvppEntityListener.onEntityDamage(pvppEntityListener.java:
    50)
            
    at org.bukkit.plugin.java.JavaPluginLoader$58.execute(JavaPluginLoader.j
    ava
    :649)
            
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a
    :58)
            
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava
    :332)
            
    at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:423)
            
    at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:179)
            
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:561)
            
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:858)
            
    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:85)
            
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  28. Offline

    Jany95

    getting this error when normal players want to use /pvp off:
    2011-08-11 17:27:49 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'pvp' in plugin PvPplus v1.3.3
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at randy.pvpp.pvpp.onCommand(pvpp.java:207)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    2011-08-11 17:28:09 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'pvp' in plugin PvPplus v1.3.3
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at randy.pvpp.pvpp.onCommand(pvpp.java:207)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
     
  29. Offline

    Curthiany

    i'm also getting this weird error it runs fine but its just spamming my console and i dont like it...

    Bukkit Version 1000
    And Your Recent Plugin Build

    [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to PvPplus
    java.lang.NullPointerException
    at randy.pvpp.pvppPlayerListener.onPlayerCommandPreprocess(pvppPlayerListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:272)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:706)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  30. Offline

    Keniski

    Bukkit version: 1000 :(
    [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to PvPplus java.lang.NullPointerException at randy.pvpp.pvppPlayerListener.onPlayerCommandPreprocess(pvppPlayerListener.java:22) at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:272) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:706) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85) at net.minecraft.server.NetworkListenThread.a(SourceFile:105) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361) at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  31. Offline

    freefish

    I am also seeing the above-discussed NPE on my logs frequently. Have Spout installed and that is about it. CB #1060.
     

Share This Page