mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-25 18:09:28 +00:00
Update CropUtils.java
This commit is contained in:
@@ -20,6 +20,7 @@ package net.momirealms.customcrops.api.utils;
|
||||
import net.momirealms.customcrops.CustomCrops;
|
||||
import net.momirealms.customcrops.api.crop.Crop;
|
||||
import net.momirealms.customcrops.config.CropConfig;
|
||||
import net.momirealms.customcrops.managers.CropManager;
|
||||
import org.bukkit.Location;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -44,4 +45,12 @@ public class CropUtils {
|
||||
public static boolean plantCrop(Location location, String crop) {
|
||||
return CustomCrops.plugin.getCropManager().getHandler().plantSeed(location, crop, null, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* get the cropManager
|
||||
* @return cropManager
|
||||
*/
|
||||
public static CropManager getCropManager() {
|
||||
return CustomCrops.plugin.getCropManager();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user