Auto-Torch

Discussion in 'Archived: Plugin Requests' started by pnupy, Oct 16, 2012.

  1. Offline

    pnupy

    i would like a plugin that turns a specific sign into a redstone torch when there is someone on the server and turns back into a sign when there is no-one on. i would also like there to be a config for anyone "not counted" as being on. thanks in advance
     
  2. Offline

    Ytry

    Read the sticky's about formatting your plugin requests please.
     
  3. Offline

    the_merciless

    Was his request difficult to read/understand. Stop telling ppl to format thier threads, it is not mandatory it is just a guide for those making long confusing posts.
     
    TwistedMexi likes this.
  4. Offline

    Kiakaha

    You could do this really well with Variable Triggers mate

    Two scripts. so simple that i wrote them here for you already.

    First is an Event trigger "on player join"
    Code:
    @IF b <haspermission:dontcount.thisguy> = true
        @ADDINT $online.total 1          (counts online players except those with "dontcount.thisguy" permission
        @SETBLOCK 76:0 x,y,z             (set redstonetorch)
    @ENDIF
    Second is for the Event "on player disconnect"
    Code:
    @IF b <haspermission:dontcount.thisguy> = true
        @SUBINT $online.total 1          (counts online players except those with "dontcount.thisguy" permission
        @IF i $online.total = 0
            @SETBLOCK 0:0 x,y,z            (remove redstone torch)
        @ENDIF
    @ENDIF
     
    TwistedMexi likes this.
  5. Offline

    pnupy

    im not quite sure how to add the scripts. i tried but i only got an error
     
  6. Offline

    jacklin213

    how does this look
    Suggested name: Sign-RedstoneTorch (Or you can suggest one)

    What I want: I would like a plugin that turns a specific sign into a redstone torch when there is someone on the server and turns back into a sign when there is no-one on. i would also like there to be a config for anyone "not counted" as being on. thanks in advance

    Ideas for commands: /srt - Allows you to select the sign with the function

    Ideas for permissions: srt.set - Allows people to use the srt command

    Would u mind if you add the player names for "not counted" manually in the config.yml file?
     
    AndyMcB1 likes this.
  7. Offline

    pnupy

    can anyone make a plugin that does that. thanks in advance
     
  8. Offline

    jacklin213

    what name would u like the plugin to be?
     
  9. Offline

    pnupy

    how about 'auto-torch'
     
  10. Offline

    jacklin213

    k ill get started

    i made to so u dont need to command you just need to right click a sign when u have the permission

    does anyone wanna take over im a bit busy atm

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

    pnupy

    Can anyone make this?
    And for anyone who does make it, can it be done as soon as possible. Thanks in advance.
     
  12. Offline

    wristdirect

    I can try and tackle this, but no guarantees on delivery time today (I'm usually pretty good about delivering in a reasonable time, but I am at work for a good chunk of the day).
     
  13. Offline

    TwistedMexi

  14. Offline

    pnupy

    I already have variable triggers. I'm just not sure how to add the script.

    anyone?

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

    jorisk322

    just use variabletriggers as said before. There are instructions on how scripts work, etc on their bukkitdev page. This is already possible, so please have a close look at how variabletriggers works. IF you really don't get it. You can ask for help on their forum, or in a help thread on the bukkit forum.
     

Share This Page