[FUN] ElectricFence v1.7 - Shock intruders [1337]

Discussion in 'Inactive/Unsupported Plugins' started by PatrickFreed, Oct 20, 2011.

  1. Offline

    PatrickFreed

    This thread will look good at some point. Until then, here's the link the the bukkitdev thread.

    This thread's purpose is a centralized comments system that smooths communication between myself and other users.

    To file a bug report, post here.

    To comment on that bug report, suggest something, or anything other, post a comment here.
     
  2. Offline

    Daedalus`

    The plugin still isn't working for me. I'm running build 1337 and this is the only plugin installed on my server. Here's an error I found in my server log:

    Code:
    2011-10-20 21:17:27 [SEVERE] java.util.ConcurrentModificationException
    
    2011-10-20 21:17:27 [SEVERE]     at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819)
    
    2011-10-20 21:17:27 [SEVERE]     at java.util.ArrayList$Itr.next(ArrayList.java:791)
    
    2011-10-20 21:17:27 [SEVERE]     at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWorld.java:515)
    
    2011-10-20 21:17:27 [SEVERE]     at org.darksoft.electricfence.ElectricFence$1.run(ElectricFence.java:73)
    
    2011-10-20 21:17:27 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    
    2011-10-20 21:17:27 [SEVERE]     at java.lang.Thread.run(Thread.java:722)
    
     
  3. Offline

    PatrickFreed

    Can you post the entire log from when you start the server until this occurs?
     
  4. Offline

    Daedalus`

    Sorry, I forgot to specify. I have two servers; my dev server, which is running the latest build, and my normal server, which is running a few plugins. Due to the nature of a few, I feel it may be conflicting with MagicTorches on that side, as it seems from my testing that I only get it on that server. As to my dev server, there are no errors, but it doesn't work. I've tested the redstone sources both under and next to the fence, both iron and wood fences, hit, destroyed, stood on them, but still there is no shock.

    On the public server, there was a single instance in which it appeared to work. I was helping a friend set up a piston table, with the piston on a block of wooden planks, which in turn was on a block of smooth stone, the wire on smooth stone leading to the wood, and a lever on sand. Touching the piston or the wire resulted in a shock.. but this only occurred a few times before it ceased happening at all. Attempts to replicate the glitch have failed.

    I'm sorry for not being clear earlier.

    Here is a screen shot of the public server setup glitch that we have been unable to replicate:

    [​IMG]
     
  5. Offline

    PatrickFreed

    Okay, I think the problem here is that I confused the versions. I exported an ElectricFence.jar and an ElectircFence.jar by accident. The ElectricFence.jar contained a bug that made it only shock if you stood on redstone. (Yes you may lol at my failure) Anyways, I'll clear out my dropbox and get the proper build in a second.

    For your dev server, are you running an RB or a dev version of craftbukkit?

    Tested working on #1317 - Download

    Also, if you have '*' permissions and/or are OP, it wont shock you.
     
  6. Offline

    Daedalus`

    I was running RB1337 on my dev server. As to being an op and having '*', I have both. Is there a chance you could include an option for disabling that bit?
     
  7. Offline

    mrchamsone

    This doesnt work, i powered it with redstone but when i go on it doesnt shock me, and i wasn't opped.
     
  8. Offline

    PatrickFreed

    Sure. Did it work on you when you had no permissions and weren't op?
    I need more than "doesn't work" In fact, it does work as Ive tried it myself. You are doing something incorrectly.
     
  9. Offline

    mrchamsone

    Ok, i am not an op, i powered a fence with redstone, and went next to the fence or walked up to it, I don't get shocked, so what am i doing incorrectly?
     
  10. Offline

    Daedalus`

    Doing a quick test on 1317 now.

    It worked for me on my dev server with my permissions plugin and op removed, and it worked on the public server with permissions and op removed. :)

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

    PatrickFreed

    Awesome, I'll add a config option for 'Shock-Ops' and if you want to remove the node, just add
    Code:
    - -ElectricFence.bypass
    to your PEX permissions file. Not sure how it works in bPerms or PermsBukkit
     
  12. Offline

    Daedalus`

    Awesome, thank you. :)
     
  13. Offline

    Daedalus`

    Did you already post the file to your drop-box, or are you still working on it?
     
  14. Offline

    PatrickFreed

    I still need to add the setting for shocking ops, will probably get that out tonight.
     
  15. Offline

    MonsieurApple

    Please upgrade to latest RB
     
  16. Offline

    PatrickFreed

    Done. Ill get the thread looking nice too. :p
     
  17. Offline

    Archelaus

    Moved to releases
     
  18. don't u have permissions like -
    electricfence.use
    electricfence.destroy
    it would be very handy
    cus if u dont have then can everyone make it
     
  19. Offline

    cvxx7q

    hey there!

    i see you have fully taken on electric fences now, congrats!

    on another note where do i download this from are you using bukkit dev to host or just links on this thread? (to your box i assume)

    EDIT: also the plugin still has that problem with spitting out an empty config on first run ;)

    found your config notes and thats all fine, and the fence is working altho i do get some verbose in console ;)

    Code:
    >deop cvxx7q
    16:12:14 [INFO] CONSOLE: De-opping cvxx7q
    16:16:14 [SEVERE] java.util.ConcurrentModificationException
    16:16:14 [SEVERE]       at java.util.ArrayList$Itr.checkForComodification(Unknow
    n Source)
    16:16:14 [SEVERE]       at java.util.ArrayList$Itr.next(Unknown Source)
    16:16:14 [SEVERE]       at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWo
    rld.java:494)
    16:16:14 [SEVERE]       at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:73)
    16:16:14 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    16:16:14 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    16:16:21 [SEVERE] java.util.ConcurrentModificationException
    16:16:21 [SEVERE]       at java.util.ArrayList$Itr.checkForComodification(Unknow
    n Source)
    16:16:21 [SEVERE]       at java.util.ArrayList$Itr.next(Unknown Source)
    16:16:21 [SEVERE]       at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWo
    rld.java:494)
    16:16:21 [SEVERE]       at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:73)
    16:16:21 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    16:16:21 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    16:16:34 [SEVERE] java.util.ConcurrentModificationException
    16:16:34 [SEVERE]       at java.util.ArrayList$Itr.checkForComodification(Unknow
    n Source)
    16:16:34 [SEVERE]       at java.util.ArrayList$Itr.next(Unknown Source)
    16:16:34 [SEVERE]       at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWo
    rld.java:494)
    16:16:34 [SEVERE]       at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:73)
    16:16:34 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    16:16:34 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    16:17:36 [SEVERE] java.util.ConcurrentModificationException
    16:17:36 [SEVERE]       at java.util.ArrayList$Itr.checkForComodification(Unknow
    n Source)
    16:17:36 [SEVERE]       at java.util.ArrayList$Itr.next(Unknown Source)
    16:17:36 [SEVERE]       at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWo
    rld.java:494)
    16:17:36 [SEVERE]       at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:73)
    16:17:36 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    16:17:36 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    during that time i had built an iron bar fence with earth blocks disabled and as u can see i deoped right before it
    hope it helps

    also im running an "unsupported" (by your plugin) build 1493 i think

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

    PatrickFreed

    You get the empty config after using the latest version?
    Also, I'll look into those exceptions. ;)
     
    cvxx7q likes this.
  21. Offline

    cvxx7q

    yeah empty config on latest (and yes i saw the typo, and got the correct version) i got the config notes from your bukkit dev and they worked great ;)

    also there is a shock latency i noticed sometimes its immediate sometimes it takes a second or more, idk if thats related to the Exceptions but just throwing it out there ;)
     
  22. Offline

    cvxx7q

    heres some more Exceptions, i didnt even touch the electric fence (this server only has one), maybe a mob did i dont know :p

    anyways here you go

    Code:
    23:45:57 [INFO] Server permissions file permissions.yml is empty, ignoring it
    23:45:57 [INFO] Done (0.152s)! For help, type "help" or "?"
    00:15:57 [INFO] [ARG] Saved 6 items in Regions.txt
    00:15:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    00:15:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    00:15:57 [INFO] [ARG] 0 players expired.
    00:45:57 [INFO] [ARG] Saved 6 items in Regions.txt
    00:45:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    00:45:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    00:45:57 [INFO] [ARG] 0 players expired.
    00:51:18 [INFO] /213.231.138.16:1567 lost connection
    01:08:02 [INFO] an00bis [/213.231.138.16:1912] logged in with entity id 292 at (
    [ATERNIA] -272.2979955193466, 63.0, 162.87732237553152)
    01:09:45 [INFO] Read timed out
    01:09:45 [INFO] an00bis lost connection: disconnect.endOfStream
    01:13:12 [INFO] Connection reset
    01:15:57 [INFO] [ARG] Saved 6 items in Regions.txt
    01:15:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    01:15:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    01:15:57 [INFO] [ARG] 0 players expired.
    01:45:57 [INFO] [ARG] Saved 6 items in Regions.txt
    01:45:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    01:45:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    01:45:57 [INFO] [ARG] 0 players expired.
    02:15:57 [INFO] [ARG] Saved 6 items in Regions.txt
    02:15:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    02:15:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    02:15:57 [INFO] [ARG] 0 players expired.
    02:45:57 [INFO] [ARG] Saved 6 items in Regions.txt
    02:45:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    02:45:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    02:45:57 [INFO] [ARG] 0 players expired.
    03:15:57 [INFO] [ARG] Saved 6 items in Regions.txt
    03:15:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    03:15:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    03:15:57 [INFO] [ARG] 0 players expired.
    03:45:57 [INFO] [ARG] Saved 6 items in Regions.txt
    03:45:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    03:45:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    03:45:57 [INFO] [ARG] 0 players expired.
    04:15:57 [INFO] [ARG] Saved 6 items in Regions.txt
    04:15:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    04:15:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    04:15:57 [INFO] [ARG] 0 players expired.
    04:45:57 [INFO] [ARG] Saved 6 items in Regions.txt
    04:45:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    04:45:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    04:45:57 [INFO] [ARG] 0 players expired.
    05:15:57 [INFO] [ARG] Saved 6 items in Regions.txt
    05:15:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    05:15:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    05:15:57 [INFO] [ARG] 0 players expired.
    05:45:57 [INFO] [ARG] Saved 6 items in Regions.txt
    05:45:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    05:45:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    05:45:57 [INFO] [ARG] 0 players expired.
    06:15:57 [INFO] [ARG] Saved 6 items in Regions.txt
    06:15:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    06:15:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    06:15:57 [INFO] [ARG] 0 players expired.
    06:45:57 [INFO] [ARG] Saved 6 items in Regions.txt
    06:45:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    06:45:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    06:45:57 [INFO] [ARG] 0 players expired.
    07:15:57 [INFO] [ARG] Saved 6 items in Regions.txt
    07:15:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    07:15:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    07:15:57 [INFO] [ARG] 0 players expired.
    07:45:57 [INFO] [ARG] Saved 6 items in Regions.txt
    07:45:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    07:45:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    07:45:57 [INFO] [ARG] 0 players expired.
    08:15:57 [INFO] [ARG] Saved 6 items in Regions.txt
    08:15:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    08:15:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    08:15:57 [INFO] [ARG] 0 players expired.
    08:45:57 [INFO] [ARG] Saved 6 items in Regions.txt
    08:45:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    08:45:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    08:45:57 [INFO] [ARG] 0 players expired.
    09:15:57 [INFO] [ARG] Saved 6 items in Regions.txt
    09:15:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    09:15:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    09:15:57 [INFO] [ARG] 0 players expired.
    09:45:57 [INFO] [ARG] Saved 6 items in Regions.txt
    09:45:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    09:45:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    09:45:57 [INFO] [ARG] 0 players expired.
    10:15:57 [INFO] [ARG] Saved 6 items in Regions.txt
    10:15:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    10:15:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    10:15:57 [INFO] [ARG] 0 players expired.
    10:45:57 [INFO] [ARG] Saved 6 items in Regions.txt
    10:45:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    10:45:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    10:45:57 [INFO] [ARG] 0 players expired.
    11:15:57 [INFO] [ARG] Saved 6 items in Regions.txt
    11:15:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    11:15:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    11:15:57 [INFO] [ARG] 0 players expired.
    11:45:57 [INFO] [ARG] Saved 6 items in Regions.txt
    11:45:57 [INFO] [ARG] Saved 0 items in FriendsList.txt
    11:45:57 [INFO] [ARG] Saved 2 items in LastOnline.txt
    11:45:57 [INFO] [ARG] 0 players expired.
    11:46:18 [INFO] cvxx7q [/127.0.0.1:53193] logged in with entity id 982 at ([ATER
    NIA] -274.73724672607807, 80.26249812693341, 169.13584902968762)
    12:01:19 [SEVERE] java.util.ConcurrentModificationException
    12:01:19 [SEVERE]       at java.util.ArrayList$Itr.checkForComodification(Unknow
    n Source)
    12:01:19 [SEVERE]       at java.util.ArrayList$Itr.next(Unknown Source)
    12:01:19 [SEVERE]       at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWo
    rld.java:494)
    12:01:19 [SEVERE]       at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:73)
    12:01:19 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    12:01:19 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    12:01:29 [SEVERE] java.util.ConcurrentModificationException
    12:01:29 [SEVERE]       at java.util.ArrayList$Itr.checkForComodification(Unknow
    n Source)
    12:01:29 [SEVERE]       at java.util.ArrayList$Itr.next(Unknown Source)
    12:01:29 [SEVERE]       at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWo
    rld.java:494)
    12:01:29 [SEVERE]       at org.darksoft.electricfence.ElectricFence$1.run(Electr
    icFence.java:73)
    12:01:29 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    12:01:29 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    12:03:19 [INFO] cvxx7q lost connection: disconnect.quitting
    12:03:19 [INFO] Connection reset
     
  23. Offline

    PatrickFreed

    Yeah, right now I have exams so I haven't been able to update any of the plugins to the latest RB. Ill work on it this weekend. :)
     
  24. Offline

    darksoft

    Glad to see you've brought this back to life PatrickFreed!
    Let me know if you need a hand at all.
     
  25. Offline

    PatrickFreed

    I can push the latest code and if you want to update it to the latest RB, that'd be cool. If you don't want to, thats fine. I'm all finished exams so I can get back to bukkit.

    Also, welcome back! :)
     
  26. Offline

    maller

    Any update on this ?
     
  27. Offline

    PatrickFreed

    Updated, check bukkitdev
     
  28. Offline

    sean_skroht

    Thanks PatrickFreed for the 1.8.1 update works well. No more errors in console.

    The only small issue that I noticed is that if you've been zapped a few times by the fence it can tend to lag up your client a bit. Server seems to be fine. It seems the client lags, so when you're doing something like opening a chest, the lid doesn't open properly. If you leave and rejoin then everything is fine. Other than that, it works very well.
    Thanks!!
     
  29. Offline

    PatrickFreed

    Hm, I've heard this from other people, it must be notch code messing up after an unnatural amount of shocks :p
     
  30. Offline

    exato123

    Nice I am going to download it so that i can have a door leading out of my jail but they are still just going to die if they try to walk out the front door

    can u help me out here

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

Share This Page