mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
No more turtles!
This commit is contained in:
parent
9be25e994a
commit
f29ed32d3f
@ -364,18 +364,14 @@ public final class Jobs extends JavaPlugin {
|
|||||||
* @return the schedule manager
|
* @return the schedule manager
|
||||||
*/
|
*/
|
||||||
public static ScheduleManager getScheduleManager() {
|
public static ScheduleManager getScheduleManager() {
|
||||||
if (scheduleManager == null) {
|
if (scheduleManager == null)
|
||||||
scheduleManager = new ScheduleManager(getInstance());
|
scheduleManager = new ScheduleManager(getInstance());
|
||||||
}
|
|
||||||
|
|
||||||
return scheduleManager;
|
return scheduleManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static NameTranslatorManager getNameTranslatorManager() {
|
public static NameTranslatorManager getNameTranslatorManager() {
|
||||||
if (nameTranslatorManager == null) {
|
if (nameTranslatorManager == null)
|
||||||
nameTranslatorManager = new NameTranslatorManager();
|
nameTranslatorManager = new NameTranslatorManager();
|
||||||
}
|
|
||||||
|
|
||||||
return nameTranslatorManager;
|
return nameTranslatorManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -386,9 +382,8 @@ public final class Jobs extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static JobsCommands getCommandManager() {
|
public static JobsCommands getCommandManager() {
|
||||||
if (cManager == null) {
|
if (cManager == null)
|
||||||
cManager = new JobsCommands(getInstance());
|
cManager = new JobsCommands(getInstance());
|
||||||
}
|
|
||||||
return cManager;
|
return cManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -415,10 +410,8 @@ public final class Jobs extends JavaPlugin {
|
|||||||
* @return the sign manager
|
* @return the sign manager
|
||||||
*/
|
*/
|
||||||
public static SignUtil getSignUtil() {
|
public static SignUtil getSignUtil() {
|
||||||
if (signManager == null) {
|
if (signManager == null)
|
||||||
signManager = new SignUtil(getInstance());
|
signManager = new SignUtil(getInstance());
|
||||||
}
|
|
||||||
|
|
||||||
return signManager;
|
return signManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1601,9 +1601,6 @@ public final class JobsPaymentListener implements Listener {
|
|||||||
if (!Jobs.getGCManager().useBreederFinder || !Jobs.getGCManager().canPerformActionInWorld(event.getEntity().getWorld()))
|
if (!Jobs.getGCManager().useBreederFinder || !Jobs.getGCManager().canPerformActionInWorld(event.getEntity().getWorld()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (event.getEntity().getType().equals(EntityType.TURTLE))
|
|
||||||
CMIDebug.d(event.getSpawnReason());
|
|
||||||
|
|
||||||
if (!event.getSpawnReason().toString().equalsIgnoreCase("BREEDING") && !event.getSpawnReason().toString().equalsIgnoreCase("EGG"))
|
if (!event.getSpawnReason().toString().equalsIgnoreCase("BREEDING") && !event.getSpawnReason().toString().equalsIgnoreCase("EGG"))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user