HiddenSwitch
Ugly buttons, pressure plates, or levers making your secret passages obvious? Need a way to make your hidden rooms really hidden? Then this is the plugin for you...
HiddenSwitch adds a number of options for hiding buttons and levers, and can be set up using signs or commands. Switches can be hidden behind, above, or below a specific 'switch' block that can be made of any material. Hit your switch block and activate your hidden switch. Simple right?
Features
Sign based hidden switches
- Sign tags (or headers) can be set in the config to anything you want (that will fit on a sign of course)
- Signs can be set by the creating player to only function for them or any single player they choose
- Signs can be set by the creating player to only function if the activating player is holding a specific item
Command Based Hidden Switches
- No signs required
- Users can set a block to be a hidden switch simply by pointing at the block they want to use and using a simple command.
- Command Based Hidden Switches (KeyBlocks) can be locked by user or held item just like sign based blocks.
Permissions
- Groups for easy setup
- Individual permissions to control access to almost every individual feature for more advanced setups
Demonstrations
YouTube Video: Basic Feature Demo (v0.0.8+):
YouTube Video: Short Command Demo (v0.0.8)
YouTube Video: Basic Sign Use (v0.0.2)
YouTube Video: Basic Sign Feature Demo (v0.0.1)
Links
HiddenSwitch Permissions explanation
Default config.yml
HiddenSwitch on Github
Suggestions & Issues
Need help?
Found a bug?
Have a feature request?
Create a ticket! ;)
Awesome plugin, if only it was updated to work...
The command part was the one that had me the most interested
Hi. I've seen some updated servers running this and this is working, but i seem to not be able to make it work. I created the config.yml and the plugin.yml. when i run it, permissions are correct as I can "use" the commands, but i receive an internal error. when i setup using signs, nothing happen. any help would be appreciated!
This plugin is a great alternative to the cpu hog -craftbook (mechanics). I would love to be able to use it again :(
Man this is such a wonderful idea. I would love to see it updated...
Hasn't worked since 1.3. No errors on start up but the moment you try to use a hiddenswitch it gives an error. While it was working it was a excellent plugin and I hope to see it up and running again.
[SEVERE] Could not pass event PlayerInteractEvent to HiddenSwitch org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:324) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:331) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:650) at net.minecraft.server.Packet15Place.handle(SourceFile:58) at net.minecraft.server.NetworkManager.b(NetworkManager.java:281) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NoSuchMethodError: net.minecraft.server.Block.interact(Lnet/minecraft/server/World;IIILnet/minecraft/server/EntityHuman;)Z at lc.Luphie.hiddenswitch.activity.playerListener.pushButton(playerListener.java:288) at lc.Luphie.hiddenswitch.activity.playerListener.onPlayerInteract(playerListener.java:257) at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:322) ... 16 more
Not sure this is working in 1.3, didn't see any errors for it though. Care to check it out?
@Zankla
ok finally got it working some what but can not use items as keys yet
AWESOME idea if it only worked ... wasted way to much time trying to get it to allow me to use all I get is
you do not have permission to use this
Maybe if it wasn't so permission based and more config based to use
GOOD luck for anyone else attempting to use this plugin
can someone explain to me y the mod wont work with items. when i put an item on the third line it opens with anything. i tried to put bone like the vid shows and i can still open it with my bare hands or even a stock if i tried.
is this up-to date?
any working link? :(
@HolySteward
It's down, the computer I was running that had the build server on it died and I forgot to remove the link...
is the latest build link broken or is it just me?
@darthobnoxious2
I think that's permissionsbukkit's build permission, I just copy/pasted the whole default group from my permissions config on my test setup :P
As for top vs. bottom of the list, I don't know why that would be, HiddenSwitch doesn't really do enough to have many incompatibilities, but it's very possible I suppose.
@devLuphie
That worked, thank you very much. It gave me some trouble at first, but when I put the permisisons at the top of the list, as opposed to the bottom, it worked... well, after the config file for permissionsbukkit suddenly became empty, and I had to use a version of the config file I have backed up.
Is the permissions.build string something from your plugin? Seems a little odd to incorporate something like that when it's name is nowhere near the name of your awesome plugin.
@darthobnoxious2
Herp derp, my fault for terrible documentation.
The permission for the commands is not included in the default
hiddenswitch.use
, and the commands are disabled by default in the hiddenswitch config.To enable commands, the config option "
lchs.dbcontrol.allow-db
" needs to be set to true, and the permission "hiddenswitch.user.command
" added to your permission list (or replace "hiddenswitch.use
" with "hiddenswitch.user.*
") thesuperpermbridge.
prefix shouldn't be neededHeres the settings for hiddenswitch and permissionsbukkit that I used when i tested:
Permisssionsbukkit:
Hiddenswitch
Also if you want to update the hiddenswitch config without stopping your server, the regular reload command won't save the changes, you have to use lchsreload to save the hiddenswitch config.yml
@devLuphie
I do have the superpermsbridge plugin installed, and here is my config file. Pardon the mess, I have a lot of permissions in there. I uploaded it to scribt.
http://www.scribd.com/doc/95510884/Config
(This is my permissionsBukkit config file. If I'm supposed to put the string elsewhere, I don't know where.)
I have tried just using the permissions as listed there, but nothing happens. I can't even use the plugin as an operator.
@darthobnoxious2
Would it be possible to see your permissions setup?
I have yet to have any dealings with permissionsbukkit, but it does say it works with superperms ._.
I might be messing something up, maybe I'm a n00b when it comes to setting permissions, but for some reason, whenever I try to use the commands to set switches, I get this message.
"I'm sorry, but you do not have the permission to perform this command. Please contact the server administrators if you believe this to be in error"
I have permissionsbuckit on my server, and I have used it before for many other plugins, but for this one It won't register it. I'm probably just doing something stupid at my end, but I figured I'd ask here, since this is the only plugin I've had this problem with. If you could offer me any assistance, I'd be most grateful. A secret door to somewhere really doesn't do much good without a hidden button, now does it?
@gibbly96
That's a good idea :D
the only issue would be the price being on the 3rd line removes the option of item locks... or what if the 4th line was the option line like:
and:
where the first example requires a bone to activate the switch, but then costs $10 to use it; and the second example just eats a bone when the switch is used...
...or maybe that's over complicating it #_#
Either way, expect some form of it in the next update (won't have time to work on it 'till the weekend though)