Preview:
Code:
#function sendBossBar:
#Sends a bossbar to the specified players.
#Parameters:
#Eval command. | |
#Dependencies: | |
#- MundoSK | |
#- TuSKe | |
#- skQuery | |
#- Vixio | |
options: | |
#Change this to your bot's name. |
#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 "_": |
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}%" |
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) |
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 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: | |
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 "com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager" | |
import "com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeSearchProvider" | |
import "ch.njol.skript.variables.Variables" | |
set {_yt-audio-manager} to new {YoutubeAudioSourceManager}(true) | |
set {kurisu::instances::yt-search-provider} to new YoutubeSearchProvider({_yt-audio-manager}) | |
effect search (youtube|yt)track %string% and store results in [list] {<(.+)>::*}: |
package me.iblitzkriegi.vixio.events.base; | |
import ch.njol.skript.lang.Literal; | |
import ch.njol.skript.lang.SkriptParser; | |
import ch.njol.skript.registrations.EventValues; | |
import ch.njol.skript.util.Getter; | |
import me.iblitzkriegi.vixio.Vixio; | |
import me.iblitzkriegi.vixio.util.wrapper.Bot; |