Skip to content

Commit

Permalink
update fix 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallXY committed Oct 14, 2024
1 parent 1d1d6e0 commit 2a0ac55
Show file tree
Hide file tree
Showing 142 changed files with 282 additions and 279 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.gradle/
/.idea/
/build/
*.iml
Binary file modified .gradle/8.0/checksums/checksums.lock
Binary file not shown.
Binary file modified .gradle/8.0/checksums/md5-checksums.bin
Binary file not shown.
Binary file modified .gradle/8.0/checksums/sha1-checksums.bin
Binary file not shown.
Binary file modified .gradle/8.0/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/8.0/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/8.0/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/8.0/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/8.0/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file modified .gradle/file-system.probe
Binary file not shown.
3 changes: 2 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/modules/CustomizedPlugin.CyanShop.main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/modules/CustomizedPlugin.CyanShop.test.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/modules/CyanShop.main.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 42 additions & 28 deletions build.gradle.kts
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")
}
}


}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
66
16
0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file modified build/kotlin/compileKotlin/cacheable/last-build.bin
Binary file not shown.
Binary file not shown.
Binary file modified build/kotlin/compileKotlin/local-state/build-history.bin
Binary file not shown.
15 changes: 9 additions & 6 deletions build/resources/main/plugin.yml
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
File renamed without changes.
142 changes: 0 additions & 142 deletions src/main/kotlin/cn/cyanbukkit/copy/CyanShop.kt

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/kotlin/cn/cyanbukkit/copy/cb/cb.kt

This file was deleted.

Loading

0 comments on commit 2a0ac55

Please sign in to comment.