-
Notifications
You must be signed in to change notification settings - Fork 4
Executors
You can use executors anywhere in the plugin. I mean in the config file or in chat with commands /announce
and /bwarn
.
Hmm... What interactive means ?
It means that with executors, you will be able to create click and hover events in chat.
Wow! How can i use them ?
That's pretty simple when you've understand. We will take an example.
See this announcement:
/announce You can click here::open_url::https://google.fr
Okey, before screaming I DON'T UNDERSTAND, 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 one 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 a URL)
So when you want to create a click/hover event, you will ALWAYS need to specify that:
[WORD]::[EXECUTOR]::[VALUE]
Below, there is a list of all executors and the value that they need.
Action | Executor | Value Type | Example |
---|---|---|---|
Open URL | `open_url` | Uniform Ressource Locator (URL) | youtube::open_url::https://youtube.com |
Change page | `change_page` | Uniform Ressource Locator (URL) | click_to_change::change_page::https://www.spigotmc.org |
Run command | `run_command` | Text command | say_hello::run_command::me_hello_:) |
Open file | `open_file` | File path | click_to_open::open_file::C:\Program Files\Java |
Suggest command | `suggest_command` | Text command | add_friend::suggest_command::friend_add_Notch |
Show text | `show_text` | Text | reveal_text::show_text::you_found_me! |
Next, there is a small TIP that i need to tell you.
Variable given is not necessary one word, so if you do:
/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:
/announce &aI &bam &chiding &din::show_text::&cYou_found_me_! &5the &1text
And its result:
Image link broken
So, voila! That's all you have to know about executors in Bungee Announce.
~Thanks for reading.
- If you find any bugs or issues, don't leave a bad rating, just private message me on the spigot forum or on my discord server and it'll be fixed as soon as possible.
- Have any suggestions? Leave them in the discussion page of the plugin, send me a private message using twitter or contact me at [email protected].