[MECH/MISC/FUN] SecretSwitch - Create a hidden switch on any block. [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by Paulpkyou, Sep 30, 2011.

  1. Offline

    Paulpkyou

    [​IMG]
    SecretSwitch - Create a hidden switch on any block:

    This plugin will allow you to create a hidden button or lever on any block, this is very easy to do and can be useful in many ways. I'm not sure if I'm going to add permissions to this but if someone requests that i do i will. Please post any (constructive) suggestions and ideas here.

    Tutorial:
    1. Place any block where you want your switch to be.
    2. Place a sign on the back of the block, on the second line of the sign put "[SecretSwitch]", on the third line put the word "Button" or "Lever", if you did this properly you will get a message saying you created a SecretSwitch sign.
    3. Connect redstone to the sign and to your piston / door / other block.
    4. Right click the block to activate your switch.
    Features:
    • Create a hidden Button on any block.
    • Create a hidden Lever on any block.
    • Allow hidden switches to be used by some or all groups.
    Permissions:
    • SecretSwitch.create => Allows you to create a SecretSwitch.
    Download:

    http://dev.bukkit.org/server-mods/secret-switch/
     
    Michaello98 likes this.
  2. Offline

    false_chicken

    Is the link broken? It wont load. It just says connecting. Eventually it times out.
     
  3. Offline

    Strogglet15

    Not sure if this is even alive, but if it is update it to R5 please. Thanks.
     
  4. Offline

    crazygamer2255

    lol
     
  5. Offline

    zsakker

    How do you install it? I think i have done something wrong becose i cant get it working, and i do not get a message that it would not have gotten it right or that i would have gotten it right...
     
  6. Offline

    Noah_Ivaldi

    This is dead, isn't it? -sigh- That's too bad. It was a good plugin while it lasted.
     
  7. Offline

    blackhawk185

    Links Broken. Fix please.
     
  8. Offline

    PsychoNecrosis

    Link works, plugin is running stable on the latest dev build.


    It'd be nice to be able to set a delay (in ticks) on line 4 of the sign.
     
  9. Offline

    Paulpkyou

    You most likely downloaded this when it wasn't updated for the latest build of Bukkit, It has been updated since then and i will continue to develop this plugin until Bukkit or i die (Whichever comes first?).

    Fixed.

    I am currently doing major updates on another plugin of mine but after that i could add that feature. :)
     
  10. Offline

    omega3141

    Been noticing the following error

    [SEVERE] Could not pass event SignChangeEvent to SecretSwitch
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1350)
    at net.minecraft.server.Packet130UpdateSign.handle(SourceFile:41)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:116)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Sign
    at paulpkyou.SecretSwitchBlockListener.onSignChange(SecretSwitchBlockListener.java:40)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.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:301)
    ... 10 more

    I was using simplesignedit(2.0) i guess the 2 are not quite compatible, any way to fix this ?

    running 1.2.3R03 and plugin 1.3

    thanks - nice plugin
     
  11. Offline

    Tak Suyu

    Doesn't throw any error or anything but I think button signs don't work with inverted Piston doors

    [​IMG]

    Why do spoilers not work >:0

    Anyway I think it doesn't work cause the redstone torch is connected to the block the switch:button is on
     
  12. Offline

    Paulpkyou

    If you want to click the block from the outside, you would remove the sign outside and replace that redstone torch inside with the sign, then you would connect redstone to the sign and cover it up, currently diodes and redstone torches do not work with it but i will soon add support for that.
     
  13. Offline

    TheFallenGod

    Amazing, now to get wireless redstone and wa-la
     
  14. Offline

    PTluzitano

    This addon is super :) Im usign it with MAze pluggin.. i hide some treasures behind secret door marked with a block liek that one on image:
    [​IMG]

    they simple click it and voile secret passage open with the treasure:
    [​IMG]

    The way of make it open its like have a button or a lever inside.. easy
    [​IMG]

    Very nice plugin - Working wonderfully on 1.2.3 R0-2
     
  15. Offline

    mahari3

    Could you make a demo video?
     
  16. Offline

    Paulpkyou

    People have already made a few videos for it, a quick search on YouTube and I've found 3 videos:



     
  17. Offline

    mahari3

    I've got to say, your the only one that responds to a question(or multiple questions) quickly within a 24hr period... impressive. and thanks.
     
  18. Offline

    Paulpkyou

    No problem, i get a lot of messages and stuff so i check bukkit every once and a while :)
     
  19. Offline

    ratpies

    I love this plugin, but would it be possible to set permissions so that the creator can choose who can use it?
     
  20. Offline

    Paulpkyou

    I'm going to be doing a update for this soon so I'll add a permission and support for PEX :p.
     
  21. Offline

    ratpies

    I believe we are having a small misunderstanding. Just for clarification I am wondering if its possible for the sign's creator can choose who can use his sign.

    for example:
    [SecretSwitch]
    Button:Lever
    Users:Groups
     
  22. Offline

    Paulpkyou

    No but I'll add something like that soon, i get what your saying. :p
     
  23. Offline

    Dodge34

    Really awesome mod, one of the best I've seen so far and a lot less CPU intensive, makes it possible for admins and ops to hide our spot from regular members, (for the protection you just have to protect the sign with LWC and I'm quite sure its safe from others, will confirm monday or tuesday when my brother is back from easter vacations). Now if there was a way to make hidden traps inside of any kind of blocks and same thing for doors that could be hidden (I know we can make some with pistons and redstone, that's what I've done and wanted to use the SecretSwitch plugin first) and its awesome, but that would be insane if we could hide doors and traps in normal blocks too, I understand that for the door that could be trickier cause it takes 2 blocks space, but at least for the trap that would be insane.
     
  24. Offline

    Snipe76

    its awesome!
    but one problem...
    it does not works directly to doors...

    example:
    X = Block
    D = Door
    S = Sign on block

    X X X X S X
    X D X or X D X
    X D X X D X
    X S X X X X
     
  25. Offline

    Paulpkyou

    Yea, Its not made to do that, Its made to search for a redstone wire or torch behind the sign, not a door lol.
     
  26. Offline

    Snipe76

    it would be cool if it could work on a door :)
     
  27. Offline

    krdzd

    I am having a small problem. I have the node and op but I still don't have permission to place a sign. Why?
     
  28. Offline

    Paulpkyou

    What permission plugin are you using and is it updated to the latest version?
     
  29. Offline

    krdzd

    I am using PEx and I am assuming it is the latest version as I just re-installed it from their bukkit dev site. I am also fairly sure that this is updated as I just re-installed it. I could give you my IP and op you on my server and have you help me.
     
  30. Offline

    Paulpkyou

    Actually, i use PEX on my server and i can verify it's working, maybe you're doing something wrong? Have you tried using other permissions for other plugins?
     
  31. Offline

    krdzd


    I got some help and it was in my permissions file. My spacing or something. Anyway Paulpkyou, thank you for this epic plugin and if you ever want to come on my server, MCRoles.servegame.com
     

Share This Page