Bungee Announce Executors

Jan 1, 2017
Bungee Announce Executors

  • Bungee Announce Executors


    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

    Executors allow you to make announcements more interactive.
    Moreover, you can use executors anywhere in the Plugin. I mean in the config file or in chat with commands /announce and /bwarn.

    It means that with Executors, you will be able to create click and hover events in chat.

    That's pretty simple when you've understand.
    We will take an example.

    See this announcement:
    Code (Text):
    /announce You can click here::open_url::https://google.fr
    Okey, before screaming "I DON'T UNDERSTAND" :p, rather look at that:

    This announcement is divided in 4 words.
    First one "You", Second one "can", Third one "click",... etc.
    And each word can receive any executor.

    Now the word "here". It is divided in 3 parts
    First one "here" (the word who will be see by the player)
    Second one "open_url" (that's the executor's name)
    Third one "https://google.fr" (that's the executor's value) (here, we have an URL)

    So when you want to create a click/hover event, you will ALWAYS need to specify that:

    Code (Text):
    [WORD]::[EXECUTOR]::[VALUE]
    Below, there is a list of all executors and the value that they need.
    Code (Text):
    [WORD]::open_url::[URL]
    [WORD]::change_page::[URL]
    [WORD]::run_command::[COMMAND]
    [WORD]::open_file::[FILE PATH]
    [WORD]::suggest_command::[COMMAND]
    [WORD]::show_text::[TEXT]
    Next, there is a small TIP that i need to tell you.
    Variable [WORD] is not necessary one word, so if you do:
    Code (Text):
    /announce Visit our main_website::open_url::https://mainwebsite.com
    All "_" will be replaced by " " that allows you to create click/hover events on more than one word.
    That's the same thing for the text/command used with executor "show_text", "run_command" and "suggest_command" to allow "/is create" for example.

    To conclude, there is a last example:
    Code (Text):
    /announce &aI &bam &chiding &din::show_text::&cYou_found_me_! &5the &1text
    And its result:
    [​IMG]

    So, voila! That's all you have to know about executors in Bungee Announce. ~Thanks for reading.
  • Loading...
  • Loading...