Inactive [MECH] PvP Control v1.6 - Allows players to control if they can be attacked [818]

Discussion in 'Inactive/Unsupported Plugins' started by LRFLEW, Jan 18, 2011.

  1. Offline

    LRFLEW

    My first plugin release. After numerous threads, arguments, and issue suggestions and bugs, it's finally here.

    NOTE: version 2.0 in the works. Follow the progress here.

    PvP Control allows players to decide themselves if they want to fight other players. No longer will you have to worry about PvP griefers (and I have seen a few in my day). Whenever a player logs in, it tells him that PvP is off for him/her, and allows them to run the command "/pvp on" to turn it on. Only if the two combatants have PvP on will the attack work, otherwise it will cancel.

    WARNING:
    This plugin WILL NOT WORK if you do not change the pvp setting in the server.properties to true. To reiterate: in server.properties make sure it reads pvp=true

    Downloads (to all my projects and source):
    http://lrflew.ismywebsite.com/bukkit.html
    Mirror:
    http://dl.dropbox.com/u/22202470/PvP.jar
    Source: http://dl.dropbox.com/u/22202470/PvP.zip

    Version History:

    NOTE: A version 2.0 is very soon to come. It will add much wanted features such as cooldown, killswitch, and even sparring
    • 1.6: Removed redundant source code hidden in the jar file
    • 1.5: Added ebean dependency and small details updated
    • 1.4: My hand was forced, and I changed from onPlayerCommand() to onCommand() (it was going to be a feature of v2.0)
    • 1.3: changed to onEventDamage() as per the newest build (also removed long caller). Make sure to use the latest build from http://ci.bukkit.org/ or use 1.2
    • 1.2: changed package name to comply with EvilSeth's request (don't worry, v2.0 is coming)
    • 1.1: allowed arrows to be controlled by PvP Control
    • 1.0: fixed issue; now PvP cancel event is set to priority Low
    • h.1: first release, had an issue I wanted worked out
    NOTE: this only cancels bad PvP attacks, doesn't make good ones work. If another plugin prevents PvP in an area, or the PvP setting in the server settings file is set to false, it will still stop PvP attacks even if PvP Control is set to on for both combatants.

    LRFLEW
     
  2. Offline

    TnT Retired Staff

    Your link is broken. Also, do you need to have pvp=true, or pvp=false in the server.properties file for this to work? Can players turn it back off?
     
  3. Offline

    LRFLEW

    1) no it's not. The download is next to the mandatory ad.
    2) pvp=true
    3) yes. /pvp on and /pvp off are usible commands.
     
  4. Offline

    Direct1221

    Your link IS broken. White page when click on link. Nothing else is there. Direct link please. Will even host a mirror for you if link is posted. (Or can send me the file somehow)
     
  5. Offline

    Livewire

    It's @ http://lrflew.ismywebsite.com/bukkit/PvP.zip

    With NoScript enabled it actually pops the link fine; with NoScript disabled, the javascript advert breaks something -bad- cause it doesn't even show anything more than a white page.
     
  6. Offline

    Direct1221

  7. Offline

    LRFLEW

    It's part of the host ismywebsite.com
    I couldn't remove the ad if I wanted.

    updated the url to now load links before mandatory ad, and included source.

    /bump

    Updated!!!

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

    SeeD419

    Death messages pl0x
     
  9. Offline

    LRFLEW

    ? If your requesting something, please elaborate.
     
  10. Offline

    stevo

    um, the link still says 1.0
     
  11. Offline

    Sniper_Bob

    It would be awesome if all the players in the server were able to type /pvp to see who has pvp enabled.

    Edit: Would be even awesomer if their name appeared in red text above their heads, but this may not be possible yet.

    And since I'm on a roll... maybe add a configureable cooldown too. As in, once you turn pvp on it has to be on for at least x amount of seconds... AND once they attack someone it stays on for at least y amount of seconds.

    Lastly, in addition to /pvp to check to see who has it enabled, have the server announce something like "Player has enabled PVP" and "Player has disabled PVP"
     
  12. Offline

    LRFLEW

    I like the feedback.

    That would compromise the safety of PvP Control. I thought about it, but decided against it.

    Nope, but it would be nice.

    I thought about it, and still concitering it. In the end, I may find some way to merge this with http://forums.bukkit.org/threads/170/ if that dev allows, and when I do, I'll work on this.
     
  13. Offline

    Sniper_Bob

    I don't understand. The reason I suggested it was because then players couldn't just enable it when they're standing right next to someone and then kill them and run off.

    Also, thanks for looking at my suggestions :)
     
  14. Offline

    LRFLEW

    Both would have to have PvP enabled, so he couldn't exactly run up to anybody and kill them, and anybody who has it on should be aware that people are going to attack them. If it is announced that someone has it off, it is no longer a guess if that person can be attacked and you situation would be more common. I am working on adding some sort of announcement system as it has been requested more than once.
     
  15. Offline

    tips48

    PERMISSIONS!!!!
    Please?
     
  16. Offline

    tickleman

    What about extending it to "mob attacks protection", saying if the player can be injured by mobs, or not ?
     
  17. Offline

    LRFLEW

    You think it should require permission to turn on PvP for yourself? The main reason I didn't implement it was that there is nothing in this plugin that anybody shouldn't have permission to do anyways :p.

    PvP Control, as the name implies, controls PvP attacks, and I don't plan on expanding this to other creatures. On that note, the source is at the link supplied, and if you create a thread on Plugin Request, it can be easily made. I, personally, don't really have much time as-is to work on a mob-control plugin.
     
  18. Offline

    tips48

    Sorry!! I should have said:

    I want it so pvp is by default on (can u add a config file?), and if you are a admin/mod, you can turn it off... That way mods can break up fights, ect...
     
  19. Offline

    LRFLEW

    Interesting Idea. The thing is PvP Control isn't a universal system. PvP Control allows players to control PvP Personally. One player doesn't just turn it on and anybody can attack each other, each player must turn it on individually to fight. What you are asking for is a sort-of extension to the setting in server.properties, which isn't what this is about. The main idea of this was that admins wouldn't have to deal with aggressive players, and players can chose themselves if they want to fight.

    If what you are wanting is what you described, this isn't the place to look. Repeating what I said above, the source code would only need alterations to work that way, and if you want it to, create a post in Plugin Requests.

    Sorry I wasn't much help.
     
  20. Offline

    acegiak

    i thought aidan was saying that they would like pvp to be on by default but have players be able to turn it off for themselves. Aidan also suggested, as far as I can tell, the option for ops to be able to turn players pvp flags on and off for them, such as stopping fights or executing misbehavers in game.
     
  21. Offline

    LRFLEW

    Ah.

    I had been asked before to make a setting to make it default to on, but the reason I don't is that you can not be killed, turn PvP on, and get killed, but you cannot get killed, turn PvP off, and not have been killed :p. I am working on a revamp of this, though, and v2 may include many of these wanted features.

    Thanks for explaining, though.
     
  22. Offline

    Mahngiel

    Any chance you can work this into Permissions v2.0? Would be nice if various groups had default pvp options.
     
  23. Offline

    Fo0lz

    Hi, I would like to know if there is any way to change the messages when you activate "/pvp on" as well as "/pvp off"
     
    huze likes this.
  24. Offline

    Penorzilla

    One thing this plugin dev neglects to do is make this plugin configurable. Seems like he shoots down ideas just because he wouldn't want them. But in the grand scheme of things if he added the ideas like global pvp messages when someone turns it on and off than just added a setting for the server admin to enable or disable that feature than his plugin would be to par with most other decent plugins. And yea I'm being a prick cuz you advertised on someone elses plugin after they said they will update.
     
  25. Offline

    LRFLEW

    Actually, I'm working with DylanG as we speak on incorporating our sources together, so we will get all the features that his plugin has and the operability of mine. Yes, he said he will update, but he told me he's really busy right now, and if I finish the combined code before he updates his, we'll just keep the one.

    lol true, but I had to get this plugin out there somehow :p.
     
  26. Offline

    Penorzilla

    Doesnt work with build 302

    /pvp on doesnt toggle pvp on for you.
     
  27. Offline

    Shiruninja

  28. Offline

    LRFLEW

    I can't replicate the issue.
    The issue may be the fact that bukkit is working it's way from onPlayerCommand() to onCommand(), which may be your problem. I'm am completely rewriting the plugin as we speak, so that should be fixed in v2.0

    I am asking the owner of that plugin if he would let cross-plugin communication for that. Keep your fingers crossed.
     
  29. Offline

    shadydeath999

    can u add a global command to allow/disable pvp for like pvp hour or something like that
     
  30. Offline

    LRFLEW

    I am currently working on a killswitch. An admin (OP if permissions isn't on the server) can activate the killswitch and set PvP on of off universally for everybody, and set it back to letting the players decide at any time.

    It that's not what what you are asking about, please re-itterate, but v2.0 will have this.

    Edit: Grammar fail :p
     

Share This Page