diff --git a/src/main/java/com/gamingmesh/jobs/Jobs.java b/src/main/java/com/gamingmesh/jobs/Jobs.java index 363018e3..d2652eab 100644 --- a/src/main/java/com/gamingmesh/jobs/Jobs.java +++ b/src/main/java/com/gamingmesh/jobs/Jobs.java @@ -364,18 +364,14 @@ public final class Jobs extends JavaPlugin { * @return the schedule manager */ public static ScheduleManager getScheduleManager() { - if (scheduleManager == null) { - scheduleManager = new ScheduleManager(getInstance()); - } - + if (scheduleManager == null) + scheduleManager = new ScheduleManager(getInstance()); return scheduleManager; } public static NameTranslatorManager getNameTranslatorManager() { - if (nameTranslatorManager == null) { - nameTranslatorManager = new NameTranslatorManager(); - } - + if (nameTranslatorManager == null) + nameTranslatorManager = new NameTranslatorManager(); return nameTranslatorManager; } @@ -386,9 +382,8 @@ public final class Jobs extends JavaPlugin { } public static JobsCommands getCommandManager() { - if (cManager == null) { - cManager = new JobsCommands(getInstance()); - } + if (cManager == null) + cManager = new JobsCommands(getInstance()); return cManager; } @@ -415,10 +410,8 @@ public final class Jobs extends JavaPlugin { * @return the sign manager */ public static SignUtil getSignUtil() { - if (signManager == null) { - signManager = new SignUtil(getInstance()); - } - + if (signManager == null) + signManager = new SignUtil(getInstance()); return signManager; } diff --git a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java index 95abfd53..49fa25b3 100644 --- a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java +++ b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java @@ -1601,9 +1601,6 @@ public final class JobsPaymentListener implements Listener { if (!Jobs.getGCManager().useBreederFinder || !Jobs.getGCManager().canPerformActionInWorld(event.getEntity().getWorld())) return; - if (event.getEntity().getType().equals(EntityType.TURTLE)) - CMIDebug.d(event.getSpawnReason()); - if (!event.getSpawnReason().toString().equalsIgnoreCase("BREEDING") && !event.getSpawnReason().toString().equalsIgnoreCase("EGG")) return;