Preview:
Code:
#function sendBossBar:
#Sends a bossbar to the specified players.
#Parameters:| on script load: | |
| import "ch.njol.skript.lang.Condition" | |
| import "java.lang.System" | |
| get expression whether <(.+)>.: | |
| set {_args::*} to regex-1 and "Invalid condition '%regex-1%'!" | |
| set {_condition} to {Condition}.parse({_args::*}) |
| on script load: | |
| import "me.iblitzkriegi.vixio.effects.effembeds.EffCreateEmbed" | |
| function setImage(embeds: texts, url: text): | |
| loop {_embeds::*}: | |
| set {_builder} to {EffCreateEmbed}.embedBuilders!.get(loop-value) | |
| {_builder}.setImage({_url}); | |
| try {EffectCreateEmbed}.embedBuilders!.put(loop-value and {_builder}); |
| on script load: | |
| #Bukkit imports | |
| import "org.bukkit.Bukkit" | |
| import "org.bukkit.boss.BarColor" | |
| import "org.bukkit.boss.BarStyle" | |
| import "org.bukkit.boss.BarFlag" | |
| #function sendBossBar: | |
| #Sends a bossbar to the specified players. |
| on command: | |
| broadcast "%complete command%" | |
| function decimalsBetween(start: number, end: number, current: numbers = 0) :: numbers: | |
| if {_start} isn't ({_end} + .1): | |
| set {_start} to {_start} + ({_start} > {_end} ? -0.1 : +0.1) |
| function toSkriptColor(color: text) :: text: | |
| if {_color} contains "_": | |
| replace all "_" with " " in {_color} | |
| return {_color} | |
| else if {_color} isn't "black", "white", "yellow" or "gold": | |
| return "light %{_color}%" |
| #ChatComponent Converter by Snow-Pyon | |
| # Requires: | |
| # - MundoSK (and ProtocolLib with it) | |
| # - skript-json (for the toJsonText function) | |
| function toSkriptColor(color: text) :: text: | |
| if {_color} contains "_": |
| #Eval command. | |
| #Dependencies: | |
| #- MundoSK | |
| #- TuSKe | |
| #- skQuery | |
| #- Vixio | |
| options: | |
| #Change this to your bot's name. |