[INACTIVE][SEC/MECH/FUN] Electric Fences v1.4.1 - Shock your intruders [928]

Discussion in 'Inactive/Unsupported Plugins' started by darksoft, Jun 5, 2011.

  1. Offline

    darksoft

    So yeah, I looked around for a plugin like this and could not find anything close to it!
    So I decided to make my own and submit it here as I thought I should give something back to the community. This is my first submission to Bukkit.org, so please don't flame me for it!
    Working on the latest builds, no issues found as of yet, but if you find any, don't be afraid to shout!
    If you have any requests, post them here and I'll be sure to let you know.

    Features:
    • Configurable Damage (See config files)
    • Picks up a current from up to two blocks away.
    • Does not cause spreadable fires.
    • Electric fences can be up to 10 high.
    1.4 Beta Features
    • Electrocutes players near the fence for a customizable amount of damage.
    • Option for a specific block the have to be under the electric fence (For example Iron Ore as suggested by a user)
    • Changes to the configuration file
    NOTE: DELETE YOUR CONFIGURATION FILE WHEN UPDATING VERSIONS.
    YOU MIGHT MISS OUT KEY NEW FEATURES!


    If you're having issues with the video loading (EG Country content restrictions) then use this link:
    http://www.youtube.com/watch?v=FKJ_YS85r2Q


    Review by the user jamescosten on the 1.1 release (Highlighted issues contained have now been fixed as of 1.3)

    Example Usage of Fence:
    A current can be acquired up to two blocks below, or one block on any side and then running a current through.
    Then, just wait for someone to try and get through your fence!
    [​IMG]

    Code:
    CHANGELOG:
    
    1.0
    - First Version
    
    1.2
    - Fences cannot be broken, unless using a super pick
    - Fires from the lightening do not spread
    - Actually stopped the fences from being broken
    - Added XML settings to allow the user to change the damage dealt.
    
    1.3
    - Fences are now electrified up to 10 blocks high from the point of the redstone wire.
    - The configuration file is now automatically created for you, and is found at /plugins/ElectricFence/ElectricFence.conf
    - [BUG] Permissions have been added. If you have the permission ElectricFence.bypass or you are an OP on the server, you can now avoid being damaged by the lightening and can destroy the electric fences.
    
    1.3.1
    - Removed permissions section due to bug issue, expect it to come out in 1.3.2
    
    1.4
    - Electrocutes players near the fence for a customizable amount of damage.
    - Option for a specific block the have to be under the electric fence (For example Iron Ore as suggested by a user)
    - Changes to the configuration file
    
    1.4.1
    - Fixes OP/Player shocking permissions
    
     
  2. Offline

    PatrickFreed

    Okay, redownload. :p
    Let me know if it still gives you trouble with permissions. (SuperPerms btw)
     
  3. Offline

    Ahagen550

    Startup errors are gone, But it still seems to want to shock me. :(

    I have been using PEX (link) for my permissions since before SuperPerms was implemented, and have continued using it as everything seemed to still work the way it was supposed to, and I didn't really feel like redoing permissions at the time.
    If that's a problem then tell me and I will get to learning SuperPerms and switch over. :)

    Other things: Stackability still does not work, and the "shock" breaks through worldguard godmode.
     
  4. Offline

    PatrickFreed

    PEX supports SuperPerms, I'm actually about to switch over to it myself. As far as stackability, I might need to find a new dev. I have a lot of projects to work on right now, and I don't really want to add another. (Updating to latest RB is nothing, developing is another ;))

    As far as your problem, are you sure you are Op?
     
  5. Offline

    Ahagen550

    Very. Just checked ops file, and my name is in there. Also did the op command in console just to be sure, went and ran into a fence and it shocked me.
     
  6. Offline

    PatrickFreed

    Does it shock you when you hit it or just when you get near it?
     
  7. Offline

    Ahagen550

    Both.

    Also, there are two files in the ElectricFence folder.
    Config.yml
    ElectricFence.conf

    As far as I know it doesn't seem to use the .conf any more. Is it safe to delete it?
     
  8. Offline

    Xertez

    @PatrickFreed
    PONG! :p

    lol. sorry i havent been keeping up to date with this plug-in for a while. we just finished moving our server to a new host and fixing the bugs that go along with it :p. oh and if you ever need a server to test on give me a hollar :p
     
    PatrickFreed likes this.
  9. Offline

    PatrickFreed

    the .conf can be deleted, yes. I'm going to be testing the permissions issues out now. :p

    @Xertez @Ahagen550
    Re-download, I had it as || instead of &&, lol. (Permissions fixed)

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

    cvxx7q

    *selects appropriate response*

    Pong! (im serious, google it XD)


    EDIT: AWW DAMN! you @Xertez :p

    when i run server i get an empty config :s

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

    Jonchun

    same here =/
     
  12. Offline

    Ahagen550

    @PatrickFreed

    Permissions are working now. Thanks a bunch!
    I also tested the issue cvxx7q reported and it generates an empty .conf for me as well.

    @cvxx7q @JagCraft
    Heres the <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 27, 2016
    cvxx7q likes this.
  13. Offline

    PatrickFreed

    Okay fixed. Forgot to add config.save(); redownload lol.
    Delete your config.yml and config.conf. :)
     
    Last edited by a moderator: Nov 27, 2016
    cvxx7q likes this.
  14. Offline

    Jonchun

    The redownload still doesn't work? ._.
     
  15. Offline

    cvxx7q

    will test now

     
    Last edited by a moderator: Nov 27, 2016
  16. Offline

    Ahagen550

    Yes it does, your just using the wrong link ;)
    I gave you the yml not JagCraft :cool:

    @PatrickFreed
    Will test now
     
  17. Offline

    Jonchun

    I just want to clear up that it was @Ahagen550

    edit: Woops beat me to it :D
     
  18. Offline

    Ahagen550

    @PatrickFreed

    Correctly Generates the ElectricFence.Yml

    Although as stated by @cvxx7q it still generates an empty .Conf

    Edit:
    I tend to be fast. I should probably get a life :)
     
    cvxx7q likes this.
  19. Offline

    cvxx7q

    oh shi- SORRY! :eek:

    Ahagen550

    i read wrong post :p

    yeah post first edit 10 times later :cool:

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

    Ahagen550

    I tend to notice typos AFTER it's posted. ;)

    And sometimes I change my mind on which smiley I want multiple times.

    No worries :p

    Edit: You know what, Your right I edit my posts way too much :eek:
     
    cvxx7q likes this.
  21. Offline

    cvxx7q

    hey me too im really bad for typos every one of my posts has at least 4 edits (or i present my idea badly, and rewrite it)
     
  22. Offline

    AudieMurphy

    Ah, thanks!
     
  23. Offline

    PatrickFreed

    Ahagen550 and cvxx7q like this.
  24. Offline

    Ahagen550

    Just tested, and NO bugs to report.

    Great job! :)
    Heres some cake [cake]
     
  25. Offline

    AudieMurphy

    The .yml file doesn't seem to be doing anything either. Changing the damage or block type does nothing. The fences always do half a heart of damage to mobs that come in contact with it, regardless if there's an iron ore block underneath it or not.
     
  26. Offline

    Ahagen550

    Ah! I forgot mobs were suposed to be damaged too.

    Knew I forgot to test something.

    Will test and report back. :cool:
     
  27. Offline

    AudieMurphy

    Oh, are players supposed to take damage too? I wasn't taking any damage when I was next to it.

    Also, I thought the fences required redstone to be able to damage enemies? Or was that removed?
     
  28. Offline

    Ahagen550

    Yes players are supposed to take damage when touching/Trying to break them.
    If your account is op, or have the * permission they won't take any damage. Change offline mode to false and test with the "Player" account (Log in with an invalid login and click play offline, then connect to the server)
    They do require redstone current.
    Remove all of the ' from the config file, and it should work correctly.

    On to bugreport for @PatrickFreed

    All of the ' need to be removed from the config file, Otherwise plugin is broken.
    I can't get mobs to get shocked, but im not sure if they are even supposed to.
    Also, The shocks still break through worldguard's godmode (Haven't tested with any other godmodes)


    I also have a feature request (Small and should be easy one)

    Add configuration option to turn off the console spam for "Ahagen550 tried to break through and electric fence" and"Ahagen550 got zapped by an electricfence"
    They might be worded slightly differently I went off of memory. But you know what im talking about :)

    Edit: For the server console not the ingame notification.
     
  29. Offline

    AudieMurphy

    @Ahagen550

    Alright, so I thought that you would take damage simply by walking near them. I tried punching it, and got struck by lightning.

    The the mobs/animals on the other hand (I only tried this on pigs and chickens so far) only take half a heart of damage when they come in contact with it (no lightning bolt), regardless if it's powered or not, and regardless if the required block is underneath or not.

    EDIT: Also, it seems to be striking me just by going near it now. :D Unfortunately, it still isn't striking the pigs, though. It does seem to deal half a heart of damage when they touch it, though. Does it only strike hostile mobs?
     
  30. Offline

    PatrickFreed

    @AudieMurphy
    You do take damage by walking close to it, you have to have 'radius-damage' enabled or some config like that
    @Ahagen550
    I'm not a big fan of the spam either, I might just remove it by default ;)
    I'm not sure whether WorldGuard has an API for godmode, but I'd have to check. (i.e isGod(player)) The way it works is by removing some of the players health, thus bypassing WG /god which just cancels onEntityDamage events (I think).

    And at the moment it only shocks players, although it looks easy to add mobs to it as well.

    Finally, I'm thinking about making a new thread and actually developing this one, only problem being that it isn't in inactive and I don't have the author's permission. :(
     
  31. Offline

    Ahagen550

    It's possible it avoids actually using lightning on them, as that would turn them into zombie pigmen.:cool:
    Although, From what I can tell it's not even supposed to shock mobs at all.

    :D
    If it's too hard to do it's not much of a problem for me. Because now that I think about it, While the plugin is working properly, Anyone that has access to /god shouldn't be getting shocked by it at all. ;) (The way I have my server setup only me and the other co owners have access to anything hackish.)

    If you do add the ability to strike mobs, Be sure it's configurable :)

    I believe that plugins get moved to inactive if they are >3 RB's behind in updating the title.
    So next RB it should be moved to inactive. (I might be wrong on this)
     

Share This Page