add command lib dependency & work on the api publishing
This commit is contained in:
parent
147805da02
commit
b3c9b246c7
5 changed files with 17 additions and 4 deletions
|
@ -12,10 +12,11 @@ publishing {
|
|||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
from components.java
|
||||
artifactId = "znpcsplus-api"
|
||||
|
||||
pom {
|
||||
name.set("znpcsplus")
|
||||
description.set("A fork of the ZNPCs plugin")
|
||||
name.set("znpcsplus-api")
|
||||
description.set("The API for the ZNPCsPlus plugin")
|
||||
url.set("https://github.com/Pyrbu/ZNPCsPlus")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ allprojects {
|
|||
apply plugin: "java"
|
||||
|
||||
group "lol.pyr"
|
||||
version "1.0.5"
|
||||
version "2.0.0"
|
||||
|
||||
compileJava {
|
||||
options.release.set(17)
|
||||
|
@ -38,6 +38,9 @@ allprojects {
|
|||
maven {
|
||||
url "https://repo.extendedclip.com/content/repositories/placeholderapi/"
|
||||
}
|
||||
maven {
|
||||
url "https://repo.pyr.lol/releases"
|
||||
}
|
||||
maven {
|
||||
url "https://jitpack.io/"
|
||||
}
|
||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,5 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
|
@ -18,6 +18,8 @@ dependencies {
|
|||
implementation "com.github.retrooper.packetevents:spigot:2.0.0-SNAPSHOT"
|
||||
implementation "space.arim.dazzleconf:dazzleconf-ext-snakeyaml:1.2.1"
|
||||
|
||||
implementation "lol.pyr:director-adventure:2.0.1"
|
||||
|
||||
compileOnly project(":api")
|
||||
compileOnly project(":folia")
|
||||
}
|
||||
|
@ -37,5 +39,7 @@ shadowJar {
|
|||
|
||||
relocate "org.yaml.snakeyaml", "lol.pyr.znpcsplus.lib.snakeyaml"
|
||||
relocate "space.arim.dazzleconf", "lol.pyr.znpcsplus.lib.dazzleconf"
|
||||
|
||||
relocate "lol.pyr.director", "lol.pyr.znpcsplus.lib.command"
|
||||
minimize()
|
||||
}
|
|
@ -5,6 +5,7 @@ import com.github.retrooper.packetevents.event.PacketListenerPriority;
|
|||
import com.github.retrooper.packetevents.protocol.entity.type.EntityTypes;
|
||||
import io.github.retrooper.packetevents.factory.spigot.SpigotPacketEventsBuilder;
|
||||
import io.github.znetworkw.znpcservers.utility.BungeeUtils;
|
||||
import lol.pyr.director.adventure.command.CommandManager;
|
||||
import lol.pyr.znpcsplus.api.ZApiProvider;
|
||||
import lol.pyr.znpcsplus.api.entity.EntityProperty;
|
||||
import lol.pyr.znpcsplus.api.npc.NPCType;
|
||||
|
@ -174,4 +175,8 @@ public class ZNPCsPlus extends JavaPlugin {
|
|||
ADVENTURE.close();
|
||||
ADVENTURE = null;
|
||||
}
|
||||
|
||||
private void registerCommands() {
|
||||
CommandManager manager = new CommandManager(this, ADVENTURE, context -> {});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue