mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2026-01-03 14:22:14 +00:00
fix bugs
This commit is contained in:
42
gui-plugin/.gitignore
vendored
Normal file
42
gui-plugin/.gitignore
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
.gradle
|
||||
build/
|
||||
!gradle/wrapper/gradle-wrapper.jar
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea/modules.xml
|
||||
.idea/jarRepositories.xml
|
||||
.idea/compiler.xml
|
||||
.idea/libraries/
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
out/
|
||||
!**/src/main/**/out/
|
||||
!**/src/test/**/out/
|
||||
|
||||
### Eclipse ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
bin/
|
||||
!**/src/main/**/bin/
|
||||
!**/src/test/**/bin/
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
|
||||
### Mac OS ###
|
||||
.DS_Store
|
||||
13
gui-plugin/build.gradle.kts
Normal file
13
gui-plugin/build.gradle.kts
Normal file
@@ -0,0 +1,13 @@
|
||||
dependencies {
|
||||
compileOnly("io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT")
|
||||
compileOnly(project(":api"))
|
||||
implementation("xyz.xenondevs.invui:invui:1.27") {
|
||||
exclude("org.jetbrains")
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
shadowJar {
|
||||
relocate ("xyz.xenondevs", "net.momirealms.customcrops.libraries")
|
||||
}
|
||||
}
|
||||
@@ -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