[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

    gdea73

    hmm using the Dev version, the created default conf is completely blank.

    And also, with either Stable or Dev, I never receive damage when being struck by fence lightning (however, regular lightning kills me.) I'm not an op.

    Great plugin idea, but it doesn't actually hurt the player in my case.
     
  3. Offline

    Persian7

    mmmmm could you make it so players and most importantly mobs/animals gets hurt when they stay in contact with the fence like 1 heart per second or something. Because i usually want to protect myself from mobs more than players and they dont break fences :p
     
  4. Offline

    ddubois89

    fixed my previous error with not getting hurt once i upgraded to new dev version. however this error pops up every once in a while.





    19:50:45 [SEVERE] java.util.ConcurrentModificationException
    19:50:45 [SEVERE] at java.util.AbstractList$Itr.checkForComodification(Unk
    nown Source)
    19:50:45 [SEVERE] at java.util.AbstractList$Itr.next(Unknown Source)
    19:50:45 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWo
    rld.java:527)
    19:50:45 [SEVERE] at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:93)
    19:50:45 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    19:50:45 [SEVERE] at java.lang.Thread.run(Unknown Source)

    also config file is definitely blank. After multiple saves and restarts, re install it never showed up.
     
  5. Offline

    compgurusteve

    I think I'm going to name my first-born after you. Thank you for implementing my idea :)
     
  6. Offline

    yakasuki

    as soon as i updated to 1.4 dev the damage is gone :(:'(
     
  7. Offline

    iamjimwood

    great plug in! so much fun to see the first time someone new to the server finds it! :) thanks for all the hard work.
     
  8. Offline

    L3sher

    for some reason, the electric fences only kill ops. when a regular guest tries go break it, nothing happens.can some one help me?
     
  9. Offline

    darksoft


    Gah, I'm so sorry about that delay, last week in education.
    Stupid schoolboy error on my behalf. Check the 1.3.2 fix which I've just uploaded.
    And check the changelog too.

    And I'll fix that issue now, because that is very important.
     
    ddubois89 likes this.
  10. Offline

    ddubois89


    Hey, school is way more important than a game dude. Thanks for the fix.

    One suggestion would be to add the version number to successfully loaded text that way us admins can tell we have the latest version! lol
     
  11. Offline

    darksoft

    I'll include that now!
    However, as it's such a tiny change, I won't change the version title from 1.4.1, I'll just include it quietly. :p
    Feel free to download it now from the same link.
     
  12. Offline

    ddubois89

    Perfect, Now Ill be able to bug you ever upload a new version and it didn't change and it will make it easier to troubleshoot when your positive you have the latest version!

    Sounds great, now to just wait for the blank config file fix! haha thanks again for the hard work on this plugin.

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

    Fliwatt

    Hi, you have created a great plugin but i have a got problem:
    I want, that the lightning is killing people.
    But when i open the config file, it's clear.
    Thx for help
    Fliwatt
     
  14. Offline

    Kccool2

    Quality plugin! Something I will be using on my server for sure. :) Thank you! ;D
     
  15. Offline

    darksoft

    If you took a look at the last page of people talking, you'd notice that this is a bug I am currently working on.
    Check back soon to find the fixed version!

    Thank you very much for the feedback! Glad you like it!
     
    Kccool2 likes this.
  16. Offline

    ddubois89

    is this error fixed? running latest EFence with build 860







    Code:
    19:51:47 [SEVERE] java.util.ConcurrentModificationException
    19:51:47 [SEVERE]       at java.util.AbstractList$Itr.checkForComodification(Unk
    nown Source)
    19:51:47 [SEVERE]       at java.util.AbstractList$Itr.next(Unknown Source)
    19:51:47 [SEVERE]       at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWo
    rld.java:527)
    19:51:47 [SEVERE]       at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:94)
    19:51:47 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    19:51:47 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    19:51:50 [SEVERE] java.util.ConcurrentModificationException
    19:51:50 [SEVERE]       at java.util.AbstractList$Itr.checkForComodification(Unk
    nown Source)
    19:51:50 [SEVERE]       at java.util.AbstractList$Itr.next(Unknown Source)
    19:51:50 [SEVERE]       at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWo
    rld.java:527)
    19:51:50 [SEVERE]       at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:94)
    19:51:50 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    19:51:50 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    19:51:51 [INFO] ddubois89 [/192.168.1.1:55911] logged in with entity id 44296 at
     ([ Start] -42.0, 66.0, -3.0)
    19:51:52 [SEVERE] java.util.ConcurrentModificationException
    19:51:52 [SEVERE]       at java.util.AbstractList$Itr.checkForComodification(Unk
    nown Source)
    19:51:52 [SEVERE]       at java.util.AbstractList$Itr.next(Unknown Source)
    19:51:52 [SEVERE]       at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWo
    rld.java:527)
    19:51:52 [SEVERE]       at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:94)
    19:51:52 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    19:51:52 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    19:51:53 [INFO] Connection reset
    19:52:14 [SEVERE] java.util.ConcurrentModificationException
    19:52:14 [SEVERE]       at java.util.AbstractList$Itr.checkForComodification(Unk
    nown Source)
    19:52:14 [SEVERE]       at java.util.AbstractList$Itr.next(Unknown Source)
    19:52:14 [SEVERE]       at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWo
    rld.java:527)
    19:52:14 [SEVERE]       at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:94)
    19:52:14 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    19:52:14 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    19:52:15 [SEVERE] java.util.ConcurrentModificationException
    19:52:15 [SEVERE]       at java.util.AbstractList$Itr.checkForComodification(Unk
    nown Source)
    19:52:15 [SEVERE]       at java.util.AbstractList$Itr.next(Unknown Source)
    19:52:15 [SEVERE]       at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWo
    rld.java:527)
    19:52:15 [SEVERE]       at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:94)
    19:52:15 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    19:52:15 [SEVERE]       at java.lang.Thread.run(Unknown Source)
     
  17. Offline

    yakasuki

     
  18. Offline

    darksoft


    860 is not the latest build, you should update to the latest (928) as there are a lot of changes on entities.
     
  19. Offline

    BlastingAgent

    Hi ,
    when i open my config file its blanc and i don't know what i have to do now

    Can you help me?
    Thanks before, BlastingAgent.
     
  20. Offline

    G1R Productions

    02:43:50 [SEVERE] Nag author: 'darksoft' of 'ElectricFence' about the following: This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin
     
  21. Offline

    darksoft

    This is an issue I'm fixing right this very second!

    Thanks for the error message, I'll get that sorted too!
     
  22. Offline

    ValBGaming

    Great plugin, but I ran into an error. :/

    Bukkit Version: 928
    Plugin Version: 1.4.1

    Config: I have an "ElectricFence.conf" file but its blank?

    Error (open)
    08:15:40 [SEVERE] java.lang.NumberFormatException: null
    08:15:40 [SEVERE] at java.lang.Integer.parseInt(Unknown Source)
    08:15:40 [SEVERE] at java.lang.Integer.parseInt(Unknown Source)
    08:15:40 [SEVERE] at org.darksoft.electricfence.ElectricFence.radiusStrike
    (ElectricFence.java:169)
    08:15:40 [SEVERE] at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:114)
    08:15:40 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    08:15:40 [SEVERE] at java.lang.Thread.run(Unknown Source)
     
  23. Offline

    ddubois89


    not being rude but
    if you read the last 2 pages he says he is working on it multiple times lol
     
    darksoft likes this.
  24. Offline

    ValBGaming

    Oh... Yeah that was my bad... I forgot to read the last few posts, was just focusing on posting the error. >.<

    Sorry about that.
     
    ddubois89 likes this.
  25. Offline

    yakasuki

    i ran into error ill post it up soon cuz im on mah laptop not my big computar
     
  26. Offline

    G1R Productions

    Whats progress on fix?
     
  27. Offline

    columb

    Animals/Mobs support?
     
  28. I cant seem to modify the damage for the fences i found the config file (ElectricFence.conf) but its empty. Srry again haha just saw the other peoples post lol my bad
     
  29. Offline

    G1R Productions

    Does config work yet?
     
  30. Offline

    iKickAss27

    HELP! it doesent Damage anyone on the server and the config file is empty :( im new to this, it only shock ppl it doesent do any damage
     
  31. Offline

    Maxis010

    Being worked on...
     

Share This Page