ElectricFence
Electric Fence
Originally written by darksoft, this is a plugin to mimic Electric Fences. When a fence is powered by redstone, it shocks players when they get near or when they touch it. That's it. If you do not want to be shocked, op yourself or give yourself the 'ElectricFence.bypass' Permission node.
Source
Changelog
Copyright stuff: I have received permission from darksoft to continue this plugin. If you need to see the pm he sent me I'd gladly submit it. Prior to that, EvilSeph said I could continue it as long as darksoft remained inactive and there were no copyright claims.
Disclaimer: This project includes bStats (https://bstats.org/), a way of collecting anonymous usage statistics. It can be disabled by setting "enableMetrics" to false in the configuration file. A full list of what data is being collected can be found here: https://bstats.org/getting-started. The collected information will be publicly available, but will be entirely anonymized.
How Do I Make It. Its Not Working. 1.3.1
Works Great! I use it to keeps mobs away from meh house.
Is there going to be a 1.2.5 release? the lightning effect does not seem to work.
@seanskroht
@Kelinni
@BUddler91
Sorry, I have my other plugin bookmarked in chrome so I kept forgetting to check this page. I finished exams so I'll be updating more frequently, I'll get a fix for this out soon.
As for the no redstone thing, are you saying you want it to be triggered by like a block instead?
Greetings,
Would really like it to have a no redstone required bolean in config, and maybe even a no redstone if certain block underneath with a seperate block id. I'm using it in a jail situation, thanks for the great mod.
Hi PatrickFreed,
Any update on this plugin? ElectricFence doesn't appear to be working in CB 1.2.5-R3 despite the fact that it's not throwing any errors in console. People simply aren't getting electrocuted when walking up to a fence. Hopefully you can have a look at it.
Thanks
Hey,
i have the same Proplem like iponu7. There are no errors in the log. The fence donĀ“t shock anything.
@iponu7
What isnt working? Are there errors in the server log?
um this isnt working for my server.. i have pex.. and this is my config file
radiusDamageEnabled: true earthBlockEnabled: false damage: 10 radiusDamage: 5 earthBlock: 12 Shock: Players: true Mobs: true FenceTypes: Wood: true Iron: true IsSendingMessages: true useLightningEffect: true
server ip.. 209.236.122.234:25625
Could you add a feature that allows the fence to set a player/mob on fire in addition to, or instead of shocking?
Can you PM me when you update to 1.2?
Really looking forward to it
@steamyshiner
Yeah, next version (next RB, which is looming) will have all said features. Thanks for the suggestions.
Hey,
Just installed your plugin. Seems to work fine except I'm not a fan of the lightening effect which is initiated every time the player touches an electric fence. Any chance of a config boolean to switch it off? On another note, it'd be awesome to have the ability to configure the chat message sent to a shocked player. Maybe even a boolean to say if the message is sent at all. But I'm more interested in the lightening effect. If you get time, these would be awesome additions to the plugin.
Cheers, Steamy
@seanskroht
1.8.1 should fix that.
@seanskroht
Nah its fine :P Thanks for the report.
@PatrickFreed
Yeah sure, but the list is pretty big :)
AntiCreeper, AnyoneSleep, BetterMechanics, BetterShop, BigCatch, BlocksOnGlass, ChairCraft, ChessCraft, ChestShop, Citizens, ControllerBlock, dynmap, dynmap-residence, Elevators, FlamingArrows, Flight, GetStairs, Giant Trees, iConomy, Inn-0.3, LivingForest, Lockette, LWC, LyTreeHelper, MCMA_compat, MinecartManiaAdminControls, MinecartManiaAutocart, MinecartManiaAutomations, MinecartManiaChestControl, MinecartManiaCore, MinecartManiaSignCommands, MinecartManiaStations, MinecartPermanence, MineMail, MusicCraft, MyWarp, noEnderman, PermissionsBukkit-1.2, PTM173, QuickStrasse, Residence, SecretDoors, SecretPassage, Silence, SimpleSignEdit, SpongeRestore, Spout, Stackable, StainedGlass, StreetLamps, SuperpermsBridge-1.2, Tables, Tetris, TrainCarts, TrainTicket, Vault, WorldBorder, WorldEdit, WormholeXTreme, ZeeSlag, ZeldaChickens.
Phew. Good luck!
Oh! And my apologies! Just saw your message about not posting here anymore. Should I move this over to the other thread?
@seanskroht
Yes that is debug code left in, will upload a fix soon. Can I have a list of plugins you're using?
For as long as i can remember this plugin has been throwing the following errors, even in v1.8:
2011-12-31 15:39:42 [SEVERE] java.util.ConcurrentModificationException
2011-12-31 15:39:42 [SEVERE] at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
2011-12-31 15:39:42 [SEVERE] at java.util.AbstractList$Itr.next(Unknown Source)
2011-12-31 15:39:42 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWorld.java:492)
2011-12-31 15:39:42 [SEVERE] at org.darksoft.electricfence.ElectricFence$1.run(ElectricFence.java:82)
2011-12-31 15:39:42 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
2011-12-31 15:39:42 [SEVERE] at java.lang.Thread.run(Unknown Source)
2011-12-31 15:40:12 [SEVERE] java.util.ConcurrentModificationException
2011-12-31 15:40:12 [SEVERE] at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
2011-12-31 15:40:12 [SEVERE] at java.util.AbstractList$Itr.next(Unknown Source)
2011-12-31 15:40:12 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getEntities(CraftWorld.java:492)
2011-12-31 15:40:12 [SEVERE] at org.darksoft.electricfence.ElectricFence$1.run(ElectricFence.java:82)
2011-12-31 15:40:12 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
2011-12-31 15:40:12 [SEVERE] at java.lang.Thread.run(Unknown Source)
Will this ever be fixed? It completely lags the server up. So i have to keep deleting each new version of this plugin I try. Using CB 1597.
Hi
Just wondering if it's necessary for the plugin to cause the message "is fence" to be displayed each time a part of a normal fence is tapped or destroyed. The message is actually quite annoying.
@Daedalus11069
Sorry, wasn't able to respond because I completely forgot about BukkitDev. Download a new version here to see if it fixes your problem. Also, don't post comments here any more. Use this thread.