Solved clickable broadcasting.

Discussion in 'Plugin Help/Development/Requests' started by Scorpionvssub, Jun 5, 2015.

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

    Scorpionvssub

    Name: UltiBroadcast

    Permissions:
    - UB.use(1 permission to rule them all)

    Commands:
    /ub start
    /ub stop
    /ub reload
    /ub list(shows the list of all lines.)
    /ub(Shows info about version and the creator)

    I was looking through some of the plugins i use on my server and the ones out there, mostly the recent vote system we added and the broadcaster we have to broadcast news.
    I been on the lookout for a more advanced broadcast that allows for dynamic or clickable words.

    Code:
    Example of config:(Not exacly this but yea)
    Prefix:
    Prefix title: &6[&9UltiBroadcast&6]
    
    #Seconds between each broadcast:(Default is 60)
    Timer: 120
    
    #set to false to ignore.(default = false)
    Randomized: true
    
    broadcastmsg:
    - '&6 ;Click here;https://www.minecraft.net;minecraft; &9to get to the vote site.'
    - '&8Want more? just add em with - '
    - '&4Just that simple!'

    Code:
    Ingame:
    
    [UltiBroadcast] Click here to get the vote site.
    -60 seconds later-
    [UltiBroadcast] Want more? just add them with -
    So if you hover over "click here" with your mouse you get a little popup saying "minecraft" then if you click on the words "click here" it brings you to minecraft.net.
     
    Last edited: Jun 5, 2015
  2. Offline

    Scorpionvssub

  3. Offline

    Ruptur

  4. Offline

    Scorpionvssub

  5. Offline

    Scorpionvssub

  6. Offline

    Ruptur

    @Scorpionvssub
    Hey just finished ill upload it as soon as i wake up tomorrow.
     
  7. Offline

    Scorpionvssub

    alright! :)
    @Ruptur

    Let me know when you uploaded it
     
    Last edited: Jun 10, 2015
  8. Offline

    Ruptur

    @Scorpionvssub
    Alright UtliBroadcast done!
    ]
    ---------------------------------------------------------------------------------------------------------------------------
    Name: UltiBroadcast
    Version: 1.0
    Description: A more advanced broadcast that allows for dynamic or clickable words.

    Commands:
    Code:
    [UB] : Main command
    Alias: [ultibroadcast]
    
    Arguments:
    Code:
    ub [no args] - View information on the plugin
    ub [start] - Start the broadcasting
    ub [stop] - Stop the broadcasting
    ub [pause] - Pause the broadcasting
    ub [unpause | continue] - Unpause the broadcasting
    ub [list] - List all messages that are being broadcasted
    ub [reload] - Reload the config file
    
    Permissions:
    Code:
    'ub.use' or 'ultibroadcast.use' - Use any of the commands
    
    Config:
    Code:
    # Please like the post and follow me for moh :)
    # Color codes support (&)
    
    # Plugin UltiBroadcast
    # Created by Ruptur on 08/06/2015.
    # Bukkit Ruptur | http://bukkit.org/members/ruptur.91042434/
    # Skype Mr.wongy | London => for help / more plugins
    # Contact me via Bukkit forums for help or more plugins
    
    # ** - indicates you are able to use '&' for colors.
    
    Show Spoiler

    Settings:
    Code:
    settings:
        #**===============================================================
        prefix: '&7[&eUlti&3Broadcast&7]'
        # Description: The prefix (displayed before broadcast message)
        # Example: prefix: '[System]' will give >> '[System] Click here to go to our website
        # default: prefix: '&7[&eUlti&3Broadcast&7]'
        #===============================================================
    
    
        #===============================================================
        interval: 5
        # Description: The interval of the messages in seconds
        # Example: interval: 120 >> 120 seconds
        # default: interval: 60
        #===============================================================
    
    
        #===============================================================
        random: false
        # Description: The order in which the messages are displayed
        # Example:
        #    true - the order is random |
        #    false - the order in the the order it appears in the config
        # default: random: false
        #===============================================================
    
    
        #===============================================================
        autostart: true
        # Description: []
        # Example:
        #    true - the broadcasts start as soon as the server loads|
        #    false - the broadcasts on start only with the command
        # default: autostart: true
        #===============================================================
    
    
        #===============================================================
        sendtoconsole: true
        # Description: []
        # Example:
        #    true - the broadcasts start as soon as the server loads|
        #    false - the broadcasts on start only with the command
        # default: sendtoconsole: true
        #===============================================================
    
    Clickable text help:
    Code:
    # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    # Avaliable attributes list:
    # NOTICE: '(MUST)' means the attribute is required in all clickable texts to work!
    #
    # [type] (MUST): The type of clickable text it is.
    #  > command - Run a command when clicked
    #  > link - Open a url when clicked
    #
    #
    # [value] (MUST): The command or url to be used when clicked
    #
    #
    # [text] (MUST): The text to be clicked
    #
    #
    # [color]: The color of the [text]. If none is set the default color is used instead
    #
    #
    # [hover]: The text to show when hovering. If none is set then it doesnt hover.
    #
    #
    # Clickable text must begin and end with an asterix and sq. brackets.
    # Each attribute has to be seperated by a comma or else it wont work the way its supposed to.
    # Also when assigning values it is essentials there isnt a space between the name and the equals.
    #
    # NOTICE: Not all attributes are required.
    #
    # Example:
    # |                     WRONG                     |                     RIGHT                     |
    #
    #
    #
    #       'type=link, value=/heal, text=heal me'        [*'type=link, value=/heal, text=heal me'*]
    #                      :: Must start and end with an asterix and sq. brackets. ::
    #
    #
    #  [*'type = link, value = /heal, text = heal me'*]   [*'type=link, value=/heal, text=heal me'*]
    #                       :: No spaces before or after the equals sign ::
    #
    #
    #  [*type=link value=/heal text=heal me*]             [*'type=link, value=/heal, text=heal me'*]
    #                           :: Comma must seperate attributes ::
    #
    # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    subs:
        # Subs must have name to realte to.
        # There are three ways you can do it.
    
        #===============================================================
        # You can use a direct sub with attributes.
        #
        # Example:
        #
        here-minecraft: '[*type=link, value=http://minecraft.net, text=here, color=red, hover=Click to open the link*]'
        #
        # here-minecraft                 - sub name can be referred back to as [*here-minecraft*]
        #
        # 'type=link'                    - The [type] is link so it opens a url when clicked.
        # 'value=http://minecraft.net'   - The [value] is the link to be opened. In this case its minecraft.net
        # 'text=here'                    - The [text] to be clicked is 'here'
        # 'color=red'                    - The [color] of the word 'here', this case it is red.
        # 'hover=Click to open the link' - The [hover] text shows when the user hovers on it
        #
        # Result - Click here to go to the minecraft website :: (whole message)
        #                 ^
        #              clickable
        #
        #===============================================================
    
    
    
        #===============================================================
        # You can use a another sub in a sub.
        #
        # Example:
        #
        fly: '[*linked-fly*]'
        #
        # fly      -    sub name can be referred back to as [*fly*]
        #
        #===============================================================
    
    
    
        #===============================================================
    
        #===============================================================
    
        #===============================================================
        # You can use a configuration section like so.
        # Same as others, not all attributes are required.
        #      --- This is a sub for [*fly*] ---
        #
        # Example:
        #
        linked-fly:
            type: command
            text: 'FLY'
            value: '/fly'
            color: 'blue'
            hover: 'Click to here to fly'
        #
        # linked-fly    -   sub name can be referred back to as [*linked-fly*]
        #
        # The [type] is command so it runs when clicked.
        # The [value] is the command to be ran. In this case its /fly
        # The [text] to be clicked is 'FLY'
        # 'The [color] of the word 'FLY', this case it is blue.
        #  The [hover] text shows when the user hovers on it
        #
        #===============================================================
    
    WHOLE:
    Show Spoiler

    Code:
    # \----------------------------------------------/ #
    # |       UltiBroadcast Configuration File      | #
    # |              Plugin by Ruptur               | #
    # /----------------------------------------------\ #
    
    # Please like the post and follow me for moh :)
    # Color codes support (&)
    
    # Plugin UltiBroadcast
    # Created by Ruptur on 08/06/2015.
    # Bukkit Ruptur | http://bukkit.org/members/ruptur.91042434/
    # Skype Mr.wongy | London => for help / more plugins
    # Contact me via Bukkit forums for help or more plugins
    
    
    # ** - indicates you are able to use '&' for colors.
    
    
    settings:
        #**===============================================================
        prefix: '&7[&eUlti&3Broadcast&7]'
        # Description: The prefix (displayed before broadcast message)
        # Example: prefix: '[System]' will give >> '[System] Click here to go to our website
        # default: prefix: '&7[&eUlti&3Broadcast&7]'
        #===============================================================
    
    
        #===============================================================
        interval: 5
        # Description: The interval of the messages in seconds
        # Example: interval: 120 >> 120 seconds
        # default: interval: 60
        #===============================================================
    
    
        #===============================================================
        random: false
        # Description: The order in which the messages are displayed
        # Example:
        #    true - the order is random |
        #    false - the order in the the order it appears in the config
        # default: random: false
        #===============================================================
    
    
        #===============================================================
        autostart: true
        # Description: []
        # Example:
        #    true - the broadcasts start as soon as the server loads|
        #    false - the broadcasts on start only with the command
        # default: autostart: true
        #===============================================================
    
    
        #===============================================================
        sendtoconsole: true
        # Description: []
        # Example:
        #    true - the broadcasts start as soon as the server loads|
        #    false - the broadcasts on start only with the command
        # default: sendtoconsole: true
        #===============================================================
    
    
    colors:
        #===============================================================
        default: 'f'
        # Description: The default color of all broadcasted messages
        # Example:
        #   0 - Black
        #   1 - Dark Blue
        #   2 - Dark Green
        #   3 - Dark Aqua
        #   4 - Dark Red
        #   5 - Dark Purple
        #   6 - Gray
        #   7 - Dark Gray
        #   8 - Blue
        #   a - Green
        #   b - Aqua
        #   c - Red
        #   d - Light Purple
        #   e - Yellow
        #   f - White
        # default: 'f'
        #===============================================================
    
    # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    # Avaliable attributes list:
    # NOTICE: '(MUST)' means the attribute is required in all clickable texts to work!
    #
    # [type] (MUST): The type of clickable text it is.
    #  > command - Run a command when clicked
    #  > link - Open a url when clicked
    #
    #
    # [value] (MUST): The command or url to be used when clicked
    #
    #
    # [text] (MUST): The text to be clicked
    #
    #
    # [color]: The color of the [text]. If none is set the default color is used instead
    #
    #
    # [hover]: The text to show when hovering. If none is set then it doesnt hover.
    #
    #
    # Clickable text must begin and end with an asterix and sq. brackets.
    # Each attribute has to be seperated by a comma or else it wont work the way its supposed to.
    # Also when assigning values it is essentials there isnt a space between the name and the equals.
    #
    # NOTICE: Not all attributes are required.
    #
    # Example:
    # |                     WRONG                     |                     RIGHT                     |
    #
    #
    #
    #       'type=link, value=/heal, text=heal me'        [*'type=link, value=/heal, text=heal me'*]
    #                      :: Must start and end with an asterix and sq. brackets. ::
    #
    #
    #  [*'type = link, value = /heal, text = heal me'*]   [*'type=link, value=/heal, text=heal me'*]
    #                       :: No spaces before or after the equals sign ::
    #
    #
    #  [*type=link value=/heal text=heal me*]             [*'type=link, value=/heal, text=heal me'*]
    #                           :: Comma must seperate attributes ::
    #
    # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    subs:
        # Subs must have name to realte to.
        # There are three ways you can do it.
    
        #===============================================================
        # You can use a direct sub with attributes.
        #
        # Example:
        #
        here-minecraft: '[*type=link, value=http://minecraft.net, text=here, color=red, hover=Click to open the link*]'
        #
        # here-minecraft                 - sub name can be referred back to as [*here-minecraft*]
        #
        # 'type=link'                    - The [type] is link so it opens a url when clicked.
        # 'value=http://minecraft.net'   - The [value] is the link to be opened. In this case its minecraft.net
        # 'text=here'                    - The [text] to be clicked is 'here'
        # 'color=red'                    - The [color] of the word 'here', this case it is red.
        # 'hover=Click to open the link' - The [hover] text shows when the user hovers on it
        #
        # Result - Click here to go to the minecraft website :: (whole message)
        #                 ^
        #              clickable
        #
        #===============================================================
    
    
    
        #===============================================================
        # You can use a another sub in a sub.
        #
        # Example:
        #
        fly: '[*linked-fly*]'
        #
        # fly      -    sub name can be referred back to as [*fly*]
        #
        #===============================================================
    
    
    
        #===============================================================
    
        #===============================================================
    
        #===============================================================
        # You can use a configuration section like so.
        # Same as others, not all attributes are required.
        #      --- This is a sub for [*fly*] ---
        #
        # Example:
        #
        linked-fly:
            type: command
            text: 'FLY'
            value: '/fly'
            color: 'blue'
            hover: 'Click to here to fly'
        #
        # linked-fly    -   sub name can be referred back to as [*linked-fly*]
        #
        # The [type] is command so it runs when clicked.
        # The [value] is the command to be ran. In this case its /fly
        # The [text] to be clicked is 'FLY'
        # 'The [color] of the word 'FLY', this case it is blue.
        #  The [hover] text shows when the user hovers on it
        #
        #===============================================================
    
    messages:
       # Messages go here
        - '&3&lHere is a sample message!'
        - 'Click [*here-minecraft*] to go to minecraft website.'
        - 'Click if you want to [*fly*]'
        - '&cI am red!'
        - 'Supports colors. &bB&ay &bR&au&bp&at&bu&ar | Like!!'
        - '&9I am blue!'
    
    
    # -------------------------- END OF CONFIG -----------------------
    



    Features:
    - Send clickable broadcast messages
    - Customizable configuration
    Download (UltiBroadcast.jar):
    Size: 48kb
    File: [link]
    ---------------------------------------------------------------------------------------------------------------------------
    Like the post if i helped :)
     
    Last edited: Jun 12, 2015
    Scorpionvssub likes this.
  9. Online

    timtower Moderator Moderator

    @Ruptur There is no link though
     
  10. Offline

    Scorpionvssub

    @Ruptur Exacly as timtower said, there is no link to click, :confused: the config and all looks good though :)
     
  11. Offline

    Albracca

  12. Offline

    Scorpionvssub

  13. Offline

    Ruptur

  14. Offline

    Scorpionvssub

    Works fantastic :D awesome :D
     
  15. Offline

    Ruptur

  16. @Ruptur is this for clickable links in broadcasts just wondering?
     
  17. Offline

    Ruptur

    @CatzFuriousSpeed
    Yeah you can have broadcast messages that are clickable - to run a command or open a url
     
  18. Thanks! :)
     
  19. @Ruptur I forgot to ask does this plugin for for 1.8_R1?
     
  20. Offline

    Ruptur

    @CatzFuriousSpeed
    It should work for 1.8.x
    If you encounter an problems with any versions contact me and ill fix it.
     
  21. Offline

    Chromify

  22. Online

    timtower Moderator Moderator

  23. Offline

    Chromify

  24. Offline

    Scorpionvssub

    Just a quick note: i run this plugin on 1.8.7 and it works fine, just be carefull on reloads and how u set it up :)
     
Thread Status:
Not open for further replies.

Share This Page