Functions:
flash: |-
function flash() {
var display = new Date().getSeconds() % 2 == 0
return display ? args[0] : " "
}
flash()
bStats:
servers: 'vars("${bStats.query_servers_&a_&7 servers}")'
players: 'vars("${bStats.query_players_&6_&7 players}")'
menus: 'vars("${bStats.query_menus_&2_&7 menus}")'
opens: |-
function opens() {
var data = utils.query("https://bstats.org/api/v1/plugins/5742/charts/menu_open_counts/data?maxElements=1")
if (data.has()){
return "&b" + data.asJson().getAsJsonArray().get(0).getAsJsonArray().get(1) + "&7"
}
return "&8Loading." + vars("${flash_.}") + "&7"
}
opens()
query: |-
function query() {
var data = utils.query("https://bstats.org/api/v1/plugins/5742/charts/" + args[0] + "/data?maxElements=1")
if (data.has()){
return args[1] + data.asJson().getAsJsonArray().get(0).getAsJsonArray().get(1) + args[2]
}
return "&8Loading." + vars("${flash_.}")
}
query()