Merge branch 'rockyhawk64:master' into master

This commit is contained in:
TinyTank800 2024-02-03 12:19:20 -08:00 committed by GitHub
commit acca60a4fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,4 @@
version: 3.19.2.0
version: 3.19.2.1
main: me.rockyhawk.commandpanels.CommandPanels
name: CommandPanels
author: RockyHawk

View File

@ -46,6 +46,8 @@ import me.rockyhawk.commandpanels.updater.Updater;
import net.milkbowl.vault.economy.Economy;
import org.apache.commons.io.IOUtils;
import org.apache.commons.io.input.CharSequenceReader;
import org.bstats.bukkit.Metrics;
import org.bstats.charts.SingleLineChart;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Color;
@ -146,6 +148,7 @@ public class CommandPanels extends JavaPlugin{
}
//setup class files
new Metrics(this, 5097);
this.setupEconomy();
this.getServer().getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
Objects.requireNonNull(this.getCommand("commandpanel")).setExecutor(new Commandpanel(this));
@ -255,6 +258,13 @@ public class CommandPanels extends JavaPlugin{
//do hotbar items
hotbar.reloadHotbarSlots();
//add custom charts bStats
Metrics metrics = new Metrics(this, 5097);
metrics.addCustomChart(new SingleLineChart("panels_amount", () -> {
//this is the total panels loaded
return panelList.size();
}));
//get tag
tag = tex.colour(config.getString("config.format.tag"));