Skip to content

Commit

Permalink
[CORE] Move Debug to DevTools. Add Metrics.java and `MetricsHandl…
Browse files Browse the repository at this point in the history
…er.java`.

Signed-off-by: Wolfieheart <[email protected]>
  • Loading branch information
Wolfieheart committed Jan 3, 2025
1 parent b738f21 commit abf88e9
Show file tree
Hide file tree
Showing 5 changed files with 960 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: ['17', '18']
java: ['17', '21']
steps:
# 1. Check out the current working tree
- name: Checkout ArmorStandEditor Repository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
package io.github.rypofalem.armorstandeditor;

import io.github.rypofalem.armorstandeditor.devtools.Debug;

import io.github.rypofalem.armorstandeditor.metricshandler.MetricsHandler;
import net.kyori.adventure.text.format.NamedTextColor;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;

import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scoreboard.Scoreboard;
import org.bukkit.scoreboard.Team;

import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;

import org.bukkit.plugin.java.JavaPlugin;

public final class ArmorStandEditorPlugin extends JavaPlugin {

public static final String SEPARATOR_FIELD = "================================";

// Classes
private static ArmorStandEditorPlugin instance;
private io.github.rypofalem.armorstandeditor.Debug debug = new io.github.rypofalem.armorstandeditor.Debug(this);
private Debug debug = new Debug(this);
MetricsHandler metricsHandler;

// Server Software Check True/False
boolean isFolia;
boolean isPaper;




//Config Items (in Order)
boolean debugFlag; // Debug Flag - Not for Production
boolean requireToolName;
Expand Down Expand Up @@ -75,7 +78,6 @@ public ArmorStandEditorPlugin() {
@Override
public void onEnable() {
// Plugin startup logic

debugFlag = isDebug();

if(debugFlag) {
Expand Down Expand Up @@ -112,6 +114,8 @@ public void onEnable() {
// Setup the Teams and Scoreboards that ASE uses
doScoreboardSetup();

//TODO: Readd Languages here!

// Get all the Configuration Options
coarseRotation = getCoarseConfig();
fineRotation = getFineConfig();
Expand All @@ -138,15 +142,11 @@ public void onEnable() {
perWorldSupport = getPerWorldSupportConfig();
doPerWorldSupportSetup(perWorldSupport);

getLogger().log(Level.INFO, SEPARATOR_FIELD);

// Do all the Metrics for BStats
metricsHandler = new MetricsHandler();







getLogger().log(Level.INFO, SEPARATOR_FIELD);
}

@Override
Expand Down
Loading

0 comments on commit abf88e9

Please sign in to comment.