<commit_before>package me.newyith.fortress.event;

import me.newyith.fortress.bedrock.BedrockManager;
import me.newyith.fortress.bedrock.timed.TimedBedrockManager;
import me.newyith.fortress.command.Commands;
import me.newyith.fortress.main.FortressPlugin;
import me.newyith.fortress.main.FortressesManager;
import me.newyith.fortress.util.Debug;
import org.bukkit.scheduler.BukkitRunnable;

public class TickTimer extends BukkitRunnable {
	public static final int msPerTick = 150; //should be divisible by 50
	//tick internally only every 3rd game tick in hopes it will improve performance

	public static void onEnable(FortressPlugin plugin) {
		new TickTimer().runTaskTimer(plugin, 0, msPerTick / 50);
	}

	@Override
	public void run() {
		//TODO:: delete all uses of Debug in this method
		Debug.queuePrints = true;

		Debug.start("tick");

		Debug.start("FortressesManager.onTick()");
		FortressesManager.onTick();
		Debug.end("FortressesManager.onTick()");

		Debug.start("TimedBedrockManager.onTick()");
		TimedBedrockManager.onTick();
		Debug.end("TimedBedrockManager.onTick()");

		Debug.start("BedrockManager.onTick()");
		BedrockManager.onTick();
		Debug.end("BedrockManager.onTick()");

		Debug.start("Commands.onTick()");
		Commands.onTick();
		Debug.end("Commands.onTick()");

		Debug.start("FortressPlugin.onTick()");
		FortressPlugin.onTick();
		Debug.end("FortressPlugin.onTick()");

		Debug.stop("tick", false);
		double duration = Debug.duration("tick");
		Debug.end("tick");

		Debug.flushQueuedPrints(duration > 10);
		Debug.queuePrints = false;
	}
}<commit_msg>Very minor change to debug code in TickTimer.<commit_after>package me.newyith.fortress.event;

import me.newyith.fortress.bedrock.BedrockManager;
import me.newyith.fortress.bedrock.timed.TimedBedrockManager;
import me.newyith.fortress.command.Commands;
import me.newyith.fortress.main.FortressPlugin;
import me.newyith.fortress.main.FortressesManager;
import me.newyith.fortress.util.Debug;
import org.bukkit.scheduler.BukkitRunnable;

public class TickTimer extends BukkitRunnable {
	public static final int msPerTick = 150; //should be divisible by 50
	//tick internally only every 3rd game tick in hopes it will improve performance

	public static void onEnable(FortressPlugin plugin) {
		new TickTimer().runTaskTimer(plugin, 0, msPerTick / 50);
	}

	@Override
	public void run() {
		//TODO:: delete all uses of Debug in this method
		Debug.queuePrints = true;

		Debug.start("tick");

		Debug.start("FortressesManager.onTick()");
		FortressesManager.onTick();
		Debug.end("FortressesManager.onTick()");

		Debug.start("TimedBedrockManager.onTick()");
		TimedBedrockManager.onTick();
		Debug.end("TimedBedrockManager.onTick()");

		Debug.start("BedrockManager.onTick()");
		BedrockManager.onTick();
		Debug.end("BedrockManager.onTick()");

		Debug.start("Commands.onTick()");
		Commands.onTick();
		Debug.end("Commands.onTick()");

		Debug.start("FortressPlugin.onTick()");
		FortressPlugin.onTick();
		Debug.end("FortressPlugin.onTick()");

		Debug.stop("tick", false);
		double duration = Debug.duration("tick");
		Debug.clear("tick");

		Debug.flushQueuedPrints(duration > 10);
		Debug.queuePrints = false;
	}
}
{'fraction_non_alphanumeric': 0.1371875, 'fraction_numerical': 0.006875, 'mean_word_length': 5.414829659318637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1213195', 'n_tokens_mistral': 1182, 'n_tokens_neox': 1048, 'n_words': 199}