Texting Cellphone Script for VTriggers (This is it, not a request)

Discussion in 'Bukkit Help' started by Kiakaha, Sep 23, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Kiakaha

    I commonly see people request Cellphone like plugins so here is one i made using Variable Triggers
    and Essentials (you can replace essentials with any plugin that gives a "Mailbox" type feature

    CommandTriggers.yml
    Code:
      txt:
        Override: true
        Script:
        - '@CALL user:phone'
      text:
        Override: true
        Script:
        - '@CALL user:phone'
      sms:
        Override: true
        Script:
        - '@CALL user:phone'
    
    and then in a file called user.script.yml
    Code:
    Scripts:
      phone:
        Script:
        - '@IF i <itemid> = 84'
        - '@AND i <cmdargcount> = 0'
        - '@CMDOP mail read'
        - '@ELSE'
        - '@IF i <itemid> = 84'
        - '@AND s <cmdarg:1> = help'
        - '@PLAYER Use &c/Txt&f, &c/Txt clear&f and &c/Txt <Player> <Message>'
        - '@PLAYER Alternate Aliases &c/Text &c/Sms'
        - '@ELSE'
        - '@IF i <itemid> = 84'
        - '@AND i <cmdargcount> = 1'
        - '@CMDOP mail <cmdline>'
        - '@ELSE'
        - '@IF i <itemid> = 84'
        - '@AND i <cmdargcount> > 1'
        - '@CMDOP mail send <cmdline>'
        - '@ELSE'
        - '@PLAYER You need to hold a Cellphone &c(Jukebox)'
        - '@ENDIF'
    
    Players simply hold a Jukebox (you can change the item required if you wish) and type "/txt"
    "/txt help" will list the commands again
    "/txt clear" will remove messages
    "/txt PLAYER <MSG>" will send a new text (sms) message

    Feel free to PM me if you want help using this or configuring it to your own setup

    You dont need to give players any permissions, if they're holding the phone it just works.

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

    TnT

    Moved to a more appropriate forum, however, this really would be best posted to the Variable Trigger's page.
     
  3. Offline

    LexLaiden

    Cute script :)
     
Thread Status:
Not open for further replies.

Share This Page