mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 05:55:27 +01:00
Typo fix
This commit is contained in:
parent
054a162b7b
commit
b2cd2c6e82
@ -26,8 +26,8 @@ public class HookManager {
|
|||||||
private static WorldGuardManager worldGuardManager;
|
private static WorldGuardManager worldGuardManager;
|
||||||
private static StackMobHandler stackMobHandler;
|
private static StackMobHandler stackMobHandler;
|
||||||
private static WildStackerHandler wildStackerHandler;
|
private static WildStackerHandler wildStackerHandler;
|
||||||
private static BlockTrackerManager blockTrackerManager;
|
private static BlockTrackerManager blockTrackerManager;
|
||||||
private static PyroFishingProManager pyroFishingProManager;
|
private static PyroFishingProManager pyroFishingProManager;
|
||||||
|
|
||||||
private static final Jobs PLUGIN = JavaPlugin.getPlugin(Jobs.class);
|
private static final Jobs PLUGIN = JavaPlugin.getPlugin(Jobs.class);
|
||||||
|
|
||||||
@ -36,13 +36,13 @@ public class HookManager {
|
|||||||
public static void loadHooks() {
|
public static void loadHooks() {
|
||||||
pm = PLUGIN.getServer().getPluginManager();
|
pm = PLUGIN.getServer().getPluginManager();
|
||||||
|
|
||||||
setMyPetManager();
|
setMyPetManager();
|
||||||
setWorldGuard();
|
setWorldGuard();
|
||||||
setMythicManager();
|
setMythicManager();
|
||||||
setStackMobHandler();
|
setStackMobHandler();
|
||||||
setWildStackerHandler();
|
setWildStackerHandler();
|
||||||
setBlockTrackerManager();
|
setBlockTrackerManager();
|
||||||
setPyroFishingProManager();
|
setPyroFishingProManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static StackMobHandler getStackMobHandler() {
|
public static StackMobHandler getStackMobHandler() {
|
||||||
@ -88,24 +88,24 @@ public class HookManager {
|
|||||||
return MythicManager;
|
return MythicManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static PyroFishingProManager getPyroFishingProManager() {
|
public static PyroFishingProManager getPyroFishingProManager() {
|
||||||
if(pyroFishingProManager == null)
|
if (pyroFishingProManager == null)
|
||||||
pyroFishingProManager = new PyroFishingProManager();
|
pyroFishingProManager = new PyroFishingProManager();
|
||||||
|
|
||||||
return pyroFishingProManager;
|
return pyroFishingProManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean checkMythicMobs() {
|
public static boolean checkMythicMobs() {
|
||||||
return Jobs.getGCManager().MythicMobsEnabled && MythicManager != null && MythicManager.check();
|
return Jobs.getGCManager().MythicMobsEnabled && MythicManager != null && MythicManager.check();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static BlockTrackerManager getBlockTrackerManager() {
|
public static BlockTrackerManager getBlockTrackerManager() {
|
||||||
if (blockTrackerManager == null) {
|
if (blockTrackerManager == null) {
|
||||||
blockTrackerManager = new BlockTrackerManager();
|
blockTrackerManager = new BlockTrackerManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
return blockTrackerManager;
|
return blockTrackerManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean setWorldGuard() {
|
private static boolean setWorldGuard() {
|
||||||
if (JobsHook.WorldGuard.isEnabled()) {
|
if (JobsHook.WorldGuard.isEnabled()) {
|
||||||
@ -160,14 +160,15 @@ public class HookManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void setBlockTrackerManager() {
|
private static void setBlockTrackerManager() {
|
||||||
if (JobsHook.BlockTracker.isEnabled()) {
|
if (JobsHook.BlockTracker.isEnabled()) {
|
||||||
blockTrackerManager = new BlockTrackerManager();
|
blockTrackerManager = new BlockTrackerManager();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static void setPyroFishingProManager() {
|
private static void setPyroFishingProManager() {
|
||||||
if (JobsHook.PyroFishingPro.isEnabled()) {
|
if (JobsHook.PyroFishingPro.isEnabled()) {
|
||||||
pyroFishingProManager = new PyroFishingProManager();
|
pyroFishingProManager = new PyroFishingProManager();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ public enum JobsHook {
|
|||||||
WorldGuard,
|
WorldGuard,
|
||||||
MythicMobs,
|
MythicMobs,
|
||||||
mcMMO,
|
mcMMO,
|
||||||
BlockTracker;
|
BlockTracker,
|
||||||
PyroFishingPro;
|
PyroFishingPro;
|
||||||
|
|
||||||
private Boolean enabled;
|
private Boolean enabled;
|
||||||
|
Loading…
Reference in New Issue
Block a user