mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2026-01-04 15:41:46 +00:00
fix bugs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
0
gui-plugin/src/main/resources/config.yml
Normal file
0
gui-plugin/src/main/resources/config.yml
Normal file
9
gui-plugin/src/main/resources/plugin.yml
Normal file
9
gui-plugin/src/main/resources/plugin.yml
Normal 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
|
||||
Reference in New Issue
Block a user