From b2cd2c6e82f5e554a83d9c81e7f37cff351e14b3 Mon Sep 17 00:00:00 2001 From: Zrips Date: Wed, 8 May 2024 16:19:21 +0300 Subject: [PATCH] Typo fix --- .../gamingmesh/jobs/hooks/HookManager.java | 61 ++++++++++--------- .../com/gamingmesh/jobs/hooks/JobsHook.java | 2 +- 2 files changed, 32 insertions(+), 31 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/hooks/HookManager.java b/src/main/java/com/gamingmesh/jobs/hooks/HookManager.java index 7be2b307..f2ab3f15 100644 --- a/src/main/java/com/gamingmesh/jobs/hooks/HookManager.java +++ b/src/main/java/com/gamingmesh/jobs/hooks/HookManager.java @@ -26,8 +26,8 @@ public class HookManager { private static WorldGuardManager worldGuardManager; private static StackMobHandler stackMobHandler; private static WildStackerHandler wildStackerHandler; - private static BlockTrackerManager blockTrackerManager; - private static PyroFishingProManager pyroFishingProManager; + private static BlockTrackerManager blockTrackerManager; + private static PyroFishingProManager pyroFishingProManager; private static final Jobs PLUGIN = JavaPlugin.getPlugin(Jobs.class); @@ -36,13 +36,13 @@ public class HookManager { public static void loadHooks() { pm = PLUGIN.getServer().getPluginManager(); - setMyPetManager(); - setWorldGuard(); - setMythicManager(); - setStackMobHandler(); - setWildStackerHandler(); - setBlockTrackerManager(); - setPyroFishingProManager(); + setMyPetManager(); + setWorldGuard(); + setMythicManager(); + setStackMobHandler(); + setWildStackerHandler(); + setBlockTrackerManager(); + setPyroFishingProManager(); } public static StackMobHandler getStackMobHandler() { @@ -88,24 +88,24 @@ public class HookManager { return MythicManager; } - public static PyroFishingProManager getPyroFishingProManager() { - if(pyroFishingProManager == null) - pyroFishingProManager = new PyroFishingProManager(); + public static PyroFishingProManager getPyroFishingProManager() { + if (pyroFishingProManager == null) + pyroFishingProManager = new PyroFishingProManager(); - return pyroFishingProManager; - } + return pyroFishingProManager; + } public static boolean checkMythicMobs() { return Jobs.getGCManager().MythicMobsEnabled && MythicManager != null && MythicManager.check(); } - public static BlockTrackerManager getBlockTrackerManager() { - if (blockTrackerManager == null) { - blockTrackerManager = new BlockTrackerManager(); - } + public static BlockTrackerManager getBlockTrackerManager() { + if (blockTrackerManager == null) { + blockTrackerManager = new BlockTrackerManager(); + } - return blockTrackerManager; - } + return blockTrackerManager; + } private static boolean setWorldGuard() { if (JobsHook.WorldGuard.isEnabled()) { @@ -160,14 +160,15 @@ public class HookManager { } } - private static void setBlockTrackerManager() { - if (JobsHook.BlockTracker.isEnabled()) { - blockTrackerManager = new BlockTrackerManager(); - } - - private static void setPyroFishingProManager() { - if (JobsHook.PyroFishingPro.isEnabled()) { - pyroFishingProManager = new PyroFishingProManager(); - } - } + private static void setBlockTrackerManager() { + if (JobsHook.BlockTracker.isEnabled()) { + blockTrackerManager = new BlockTrackerManager(); + } + } + + private static void setPyroFishingProManager() { + if (JobsHook.PyroFishingPro.isEnabled()) { + pyroFishingProManager = new PyroFishingProManager(); + } + } } diff --git a/src/main/java/com/gamingmesh/jobs/hooks/JobsHook.java b/src/main/java/com/gamingmesh/jobs/hooks/JobsHook.java index fbb4d3ed..0bb594ea 100644 --- a/src/main/java/com/gamingmesh/jobs/hooks/JobsHook.java +++ b/src/main/java/com/gamingmesh/jobs/hooks/JobsHook.java @@ -11,7 +11,7 @@ public enum JobsHook { WorldGuard, MythicMobs, mcMMO, - BlockTracker; + BlockTracker, PyroFishingPro; private Boolean enabled;