Alarm plugin (Push button--> message appears in chat)

Discussion in 'Archived: Plugin Requests' started by Luxwilliam, Apr 3, 2012.

  1. Offline

    Luxwilliam

    I need a plugin, where you can create buttons in a house for example, when you push them, an alarm sounds, like a typical red fire alarm button.

    EDIT:
    When you push the button, a customed message appears in the chat.

    Any ideas?
     
  2. Offline

    TobyG123

    Can't add custom sounds without Client modification. Try redstone and a jukebox :)
     
  3. Offline

    remcodemah

    rsnor latch......timer curcuit (clock)
    .....|................... |
    ......\................../
    ........\............../
    ...........andgate
    ...............|
    ............output.

    rs nor latch nirmal is off so no output.
    if rsnor latch is active then the output will be the same als the clock.
     
  4. Offline

    Luxwilliam

    Oh, ok then a plugin which shows a message like: An emergency has occured in the main building.
    So with a button which you can push to activate it.
     
  5. Offline

    remcodemah

    Luxwilliam i am writing now 3 plugins after that i can make a plugin. (very simple)
    if sign get redstone power it will broadcast "An emergency has occurred " + 2de line of sign + 3de line of sign + 4de line of sign.

    (can take 1 − 2 weeks because i have no much time)
     
    Luxwilliam likes this.
  6. Offline

    Luxwilliam

    Ok, yes that would be great, but if there is already such a plugin existing, you can tell me.
     
  7. Offline

    TobyG123

    That would definately be possible.
     
  8. Offline

    Luxwilliam

    The building which we build is completely build of wood.
    So if someone would place a fire, and another would see It, he would just have to push the alarm button.
     
    TobyG123 likes this.
  9. Offline

    ArcheCane

    I can do this quickly, PM me.
     
  10. Offline

    remcodemah

    i said already i do it and i have time now holliday is canceld :( beta version tomorow

    stated and almost done!

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

    Luxwilliam

    wow, you're fast, and sorry for your cancelled holidays.
    My holidays were also cancelled ;)
     
  12. Offline

    remcodemah

    my holiday is canceled because my perends are 25 years togerher and we have a party. and i love to program in java so thank you for the idee for this plugin. coding is almost done.

    Alpha Build!
    How it works:
    Place a sign:
    on the first line you write [Alarm]
    on the 2,3,4 line you write your text.

    (the plugin convert the text to: "An emergency has occurred "+ line2 + line3 + line4)
    Between the string An emergency has occurred an line2 is a blank.
    but between line2 line3 and line4 there are no blank. you have to write them on the sign.
    Why have i done this. because on my server there are people with Very long names that doesn't fit on 1 line.

    if the sign isn't long enough to write your text on you can manually edit it in the data file. ({server folder}/plugins/AlarmPlugin/data)

    ToDo:
    * Fix that sometimes the message is shown double.
    * Config so you can set the default Start String.
    * Add permissions so not everyone can place them and spam the server. Now every one can place them.
    * Add only creator can destroy the sign.
    * may more.

    and the download link: http://dev.bukkit.org/server-mods/alarm-plugin-rpsonline/files/1-alarm-message-v0-1/

    ihope this is what you needed. if it is can uou plz give me a like?

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

    Luxwilliam

    One little suggestion: I can't change the message which appaears when I push the button, oh you also forgot to say that we have to place a button next to the sign.
    GOOD JOB AND VERY FAST!!!

    Another Problem:
    Between the lines of the sign there is no space

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

    remcodemah

    Between the sign lines is no space:
    I know i have done that because on my server players have extreemly long names and i use it to protect houses. In next releases (beta) i gonna add a config were you can edit this.

    I cant change the message whitch appears:
    To do this you need to stop your server. And if it is offline you can edit it.
    (it recreate the file on stop so when you eddit it when the server is online it dont do anything)

    I may gonna add a future that when you look at a sign and you do A command like /AlarmSign message "your message" to edit the message.

    The sign text will only been read on sign create after create it will ignore changes. (sign changer may work if it is registred as a SignEditEvent)

    Button next to it:
    I dont know of bukkit have imported it?? // have a function for this
    May if you place the sign on the back of the wall?.?

    I gonna look at it and dont forget "I Love Coding"
     
    Luxwilliam likes this.
  15. Offline

    Luxwilliam

    Ok, I'll try, thanks
     
  16. Offline

    Luxwilliam

    The folder is empty!
     
  17. Offline

    remcodemah

    do you get an error??
    i gonna check why this happend
     
  18. Offline

    Luxwilliam

    Ok, I'm on holiday until friday, so I can't check it now, I'll tell you then.
     
  19. Offline

    Luxwilliam

    No, I don't get any error, the folder is just empty.
     
  20. Offline

    the_merciless

  21. Offline

    remcodemah

    i tested it on multiple servers and i get a config!
     

Share This Page