Inactive [FUN] PvPToggle v2.2.1 - Allows players to enable or disable individual pvp status [1.3.2-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by Sleelin, May 22, 2011.

  1. Offline

    Sleelin

    PvPToggle - PvP Toggling Plugin:
    Version: v2.1.0

    Project moved to BukkitDev
    (this thread will no longer be updated)

    Show Spoiler

    Allows players to decide whether or not they want PvP to be enabled or disabled, and stops PvP attacks when either the attacker or defender has PvP disabled. Also allows admins to toggle global or world-specific PvP, or the PvP status of a specific player, in a specific world. Muti-world compatible, Permissions combatible.

    Features:
    Pretty much stated above, but hey, here they are anyway:
    • Individual, player-specific enabling or disabling of PvP
    • Global PvP control
    • World-specific PvP control
    • Permissions support - only allow certain groups or players access to specific functions
    • Multiworld support - configure which world you want the plugin to be active in
    • Cooldown timer - set time since last conflict in seconds before users can disable PvP again
    Download: here (see BukkitDev)​
    Source Code: here

    Commands:
    • /pvp [on|off|status] [player] [world] - Toggles or checks status of PvP for you or a specific player
    • /tpvp [on|off|status] [player] [world] - Alias for /pvp
    • /gpvp [on|off|status] [world] - Toggles or checks status of global or world-specific PvP
    Installing:

    • Place in your Bukkit plugins folder, run/reload once, this autogenerates a config file.
    • For each world, set logindefault to either true or false depending on whether you want it enabled or disabled for each player on login, and pvpenabled to either true or false to depending on whether you want world-wide PvP enabled or disabled on startup
    • The autogenerated config file should contain a list of all your worlds, but if it doesn't, add them manually as follows:
      • Edit the config file, and add the name of each world you run under the "worlds" parameter, in the YAML format (see sample config below).
      • In addition to entering your worlds, you must also specify whether or not you want PvP to be enabled or disabled by default. To do this, under the name of the world, enter both pvpenabled and logindefault as mentioned above (see config example below).
    • Make sure your world config files have PvP set to allowed, or this plugin won't work.
    Sample Config File:

    Replace all "----" with 4 spaces (i.e. 4 of this: " ")
    Show Spoiler
    globalDiabled: false
    cooldown: 5
    worlds:
    ----world:
    --------logindefault: true
    --------pvpenabled: false
    ----testing:
    --------logindefault: true
    --------pvpenabled: true
    ----herp:
    --------logindefault: false
    --------pvpenabled: false
    ----derp:
    --------logindefault: true
    --------pvpenabled: true

    Permissions nodes:
    • pvptoggle.use
      • Enable usage of the pvptoggle plugin (i.e. status check when hit)
    • pvptoggle.command.toggle
      • /pvp [on|off]: individual pvp toggling
    • pvptoggle.command.status
      • /pvp status: check individual pvp status
    • pvptoggle.admin
      • /pvp [on|off|status] [player]: modify or check status of specific player in sender's current world
      • /pvp [on|off|status] [player] [world]: modify or check status of specific player in specified world
      • /pvp [on|off] *: modify status of all players in sender's current world
      • /pvp [on|off] * [world]: modify status of all players in specified world
    • pvptoggle.gcommand.status
      • /gpvp status: checks global pvp status
      • /gpvp status [world]: checks pvp status in specified world
    • pvptoggle.gadmin
      • /gpvp [on|off]: toggles global pvp status
      • /gpvp [on|off] [world]: toggles pvp status in specified world
    To-Do:


    - Create automatically enable PvP on combat flag

    Changelog:
    v0.3.1:
    - Added support for Citizens NPC plugin: no longer spews console errors when players attack NPCs
    v0.3.0:
    - Added option for cooldown between last conflict and disabling PvP
    - Added console support for toggling PvP status of specific players, or all players in a specific world, or across all worlds
    v0.2.5:
    - Updated multiworld support to use bukkit-dependent world detection (fixes issues with misconfiguration causing errors)
    - Swapped to YAML config file format for ease of use
    Show Spoiler
    v0.2.3:
    - Added persistence across player sessions
    - Fixed bug in /pvp with no arguments
    v0.2.1:
    - Fixed severe errors on reload (to do with initialising players)
    - Fixed /pvp status [player] [world] - it actually works now
    v0.2.0:
    - Added multiworld support
    - Tidied up command handling
    v0.1.0:
    - Initial release
     
    AS1LV3RN1NJA likes this.
  2. Offline

    ScottSpittle

    CB 1060

    Show Spoiler
    07:55:02 [SEVERE] Could not pass event ENTITY_DAMAGE to PvPToggle
    java.lang.NullPointerException
    at com.sleelin.pvptoggle.PvPToggle.pvpEnabled(PvPToggle.java:196)
    at com.sleelin.pvptoggle.PvPToggleEntityListener.onEntityDamage(PvPToggleEntityListener.java:36)
    at org.bukkit.plugin.java.JavaPluginLoader$59.execute(JavaPluginLoader.java:656)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:427)
    at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:180)
    at net.minecraft.server.EntityHuman.d(EntityHuman.java:566)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:883)
    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:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:434)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  3. Offline

    XZeenon

    Players can set eachother on fire even when they have pvp off, how do I resolve this? URGENT.
     
  4. Offline

    SilencShadoW

    Its broken in 1060? got a error with entity_dmg
     
  5. Offline

    ScottSpittle

    CB 1060

    Show Spoiler
    05:20:12 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'pvp' in plugin PvPToggle v0.3.1
    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:352)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
    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:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at com.sleelin.pvptoggle.commands.pvpPluginCommand.checkCooldown(pvpPluginCommand.java:133)
    at com.sleelin.pvptoggle.commands.pvpPluginCommand.togglePlayer(pvpPluginCommand.java:121)
    at com.sleelin.pvptoggle.commands.pvpPluginCommand.onCommand(pvpPluginCommand.java:53)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 13 more
     
  6. Offline

    MrKrucible

    ya this is broken for CB 1060 and needs to be fixed fast.
     
  7. Offline

    ScottSpittle

    Its not broken, it works.. it just spamms errors all the time, which is annoying. BUT the plugin still works
     
  8. Offline

    50l3r

    i have this problem. HELP MEEE AND HELP XZEENON
     
  9. Offline

    AlexDGr8r

    I can possibly update this plugin. I'm waiting to see if I can get a response from sleelin, but if I don't get a response in a couple of days I will update the plugin.
     
  10. Offline

    XZeenon

    Okay, thank you :)
     
  11. Offline

    spunkiie

    Can't wait.
     
  12. Offline

    AlexDGr8r

  13. Offline

    Kaosvf

    Hi,
    why don't you use http://dev.bukkit.org/ that the people can subscribe to updates via e-mail?
    Regards.
     
  14. Offline

    Silentshok23

    it toggles fine but wont actually work ...
     
  15. Offline

    ViZiT

     
  16. Offline

    xBlueXFoxx

    Is arrow blocking supported yet? I would like to get this plugin back into my server!
     
  17. Offline

    MasterFisherYYZ

    PVP won't work no matter what. I enabled it in server.properties and the pvptoggle config files too. No matter what it just won't turn on. Please help me resolve this issue.
     
  18. Offline

    Delta-One

    lol wtf this doesnt work, i can change what i want and it says pvp enabled blabla but its not enabled. SHIT
     
  19. Offline

    kingwow34

    DOESNT WORK USELESS PLUGIN!
     
  20. Offline

    Sleelin

    Did you go to the BukkitDev page? Did you get the latest version? Did you read the configuration and commands pages on BukkitDev? No? Then no wonder it doesn't work.
     
  21. Offline

    user_90563788

    Works for us but it seems to toggle all players back to PVP "ON" whenever server restarts.
     
  22. Offline

    JoseKaito

    What is the permission for others to have / pvp on / off?
     
  23. Offline

    grid21

    I get this error

    2012-06-12 19:20:18 [SEVERE] Could not pass event EntityDamageByEntityEvent to PvPToggle
    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.NullPointerException
    at com.sleelin.pvptoggle.PvPToggle.checkLastAction(PvPToggle.java:341)
    at com.sleelin.pvptoggle.listeners.EntityListener.eventMagic(EntityListener.java:97)
    at com.sleelin.pvptoggle.listeners.EntityListener.onEntityDamage(EntityListener.java:57)
    at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
    ... 16 more
     
  24. So im using PermissionsEx on my server and when i try to disable pvp for myself even with every permissions i apparently don't have the permission for /pvp at all and even those who i give specific permissions to and even those i want to not have PvP
     
  25. Offline

    diannetea

    All I'm seeing is that my pvp is set to null when I try to attack someone
     

Share This Page