-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/.gradle/ | ||
/.idea/ | ||
/build/ | ||
*.iml |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,62 @@ | ||
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription | ||
import org.jetbrains.kotlin.storage.CacheResetOnProcessCanceled.enabled | ||
|
||
val group = " cn.cyanbukkit.shop" // 先更改这里 | ||
version = "0.1" | ||
|
||
bukkit { | ||
name = rootProject.name // 设置插件的名字 已设置跟随项目名 | ||
description = "An example plugin for CyanBukkit" // 设置插件的描述 | ||
authors = listOf("Your Name") // 设置插件作者 | ||
website = "https://cyanbukkit.cn" // 设置插件的网站 | ||
main = "${group}.cyanlib.launcher.CyanPluginLauncher" // 设置插件的主类 修改请到group修改 | ||
val a = permissions.register("CyanShop.+") | ||
a.configure { | ||
default = BukkitPluginDescription.Permission.Default.OP | ||
description = "Cyan Shop permissions." | ||
} | ||
depend = listOf("Citizens", "Vault", "PlayerPoints", "PlaceholderAPI") | ||
} | ||
|
||
plugins { | ||
kotlin("jvm") version "1.8.21" | ||
id("com.github.johnrengelman.shadow") version ("7.1.2") | ||
java | ||
kotlin("jvm") version "2.0.20" | ||
id("net.minecrell.plugin-yml.bukkit") version "0.6.0" | ||
} | ||
|
||
repositories { | ||
// aliyun | ||
maven("https://nexus.cyanbukkit.cn/repository/maven-public") | ||
maven { | ||
url = uri("https://maven.citizensnpcs.co/repo") | ||
} | ||
maven("https://nexus.cyanbukkit.cn/repository/maven-public/") | ||
maven("https://maven.elmakers.com/repository") | ||
} | ||
|
||
dependencies { | ||
// spigotmc | ||
compileOnly("org.spigotmc:spigot-api:1.19.4-R0.1-SNAPSHOT") | ||
// placeholderapi | ||
compileOnly("me.clip:placeholderapi:2.11.3") | ||
// | ||
//citizens | ||
compileOnly("org.spigotmc:spigot-api:1.19.3-R0.1-SNAPSHOT") | ||
compileOnly("me.clip:placeholderapi:2.11.2") | ||
compileOnly("net.citizensnpcs:citizensapi:2.0.30-SNAPSHOT") | ||
compileOnly(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar")))) | ||
// implementation File XSeries-9.4.0.jar in root | ||
implementation(files("XSeries-9.4.0.jar")) | ||
|
||
compileOnly("com.comphenix.protocol:ProtocolLib:5.1.0") | ||
compileOnly(fileTree("libs") { include("*.jar") }) | ||
} | ||
|
||
|
||
version = "1.2" | ||
|
||
|
||
kotlin { | ||
jvmToolchain(8) | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
tasks { | ||
shadowJar { | ||
relocate("com.cryptomorin.xseries", "cn.cyanbukkit.xseries") | ||
compileJava { | ||
options.encoding = "UTF-8" | ||
} | ||
} | ||
|
||
tasks.processResources { | ||
val props = mapOf("version" to version) | ||
inputs.properties(props) | ||
filteringCharset = "UTF-8" | ||
filesMatching("plugin.yml") { | ||
expand(props) | ||
jar { | ||
archiveFileName.set("${rootProject.name}-${version}.jar") | ||
} | ||
} | ||
|
||
|
||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
66 | ||
16 | ||
0 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
name: CyanShop | ||
version: 1.1.2 | ||
main: cn.cyanbukkit.copy.CyanShop | ||
name: CyanShop | ||
version: "0.1" | ||
main: ' cn.cyanbukkit.shop.cyanlib.launcher.CyanPluginLauncher' | ||
description: An example plugin for CyanBukkit | ||
authors: | ||
- Your Name | ||
website: https://cyanbukkit.cn | ||
depend: | ||
- Citizens | ||
- Vault | ||
- PlayerPoints | ||
- CYANKOTLINLOADER | ||
- PlaceholderAPI | ||
permissions: | ||
CyanShop.+: | ||
description: CyanShop admin permission | ||
default: op | ||
description: Cyan Shop permissions. | ||
default: op |
This file was deleted.
This file was deleted.