9
0
mirror of https://github.com/Xiao-MoMi/Custom-Crops.git synced 2026-01-04 15:41:46 +00:00
This commit is contained in:
XiaoMoMi
2024-04-13 17:06:21 +08:00
parent 6d5a379ceb
commit c7c6004300
9 changed files with 125 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
package net.momirealms.customcrops.gui;
import org.bukkit.plugin.java.JavaPlugin;
public class CustomCropsGUI extends JavaPlugin {
private static CustomCropsGUI instance;
@Override
public void onEnable() {
instance = this;
}
@Override
public void onDisable() {
}
public static CustomCropsGUI getInstance() {
return instance;
}
}

View File

@@ -0,0 +1,16 @@
package net.momirealms.customcrops.gui;
import net.momirealms.customcrops.api.event.PotInteractEvent;
import org.bukkit.Material;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
public class GUIManager implements Listener {
@EventHandler (ignoreCancelled = true)
public void onInteractPot(PotInteractEvent event) {
if (event.getItemInHand().getType() != Material.AIR)
return;
}
}

View File

View File

@@ -0,0 +1,9 @@
name: CustomCrops
version: '${version}'
main: net.momirealms.customcrops.gui.CustomCropsGUI
api-version: 1.17
load: POSTWORLD
authors: [ XiaoMoMi ]
folia-supported: true
depend:
- CustomCrops