-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
73 lines (62 loc) · 2.27 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
import net.minecrell.pluginyml.paper.PaperPluginDescription
plugins {
`java-library`
`maven-publish`
signing
id("xyz.jpenilla.run-paper") version "2.2.2"
id("net.minecrell.plugin-yml.paper") version "0.6.0"
}
runPaper.folia.registerTask()
group = "de.kwantux"
version = "3.0.6"
description = "A performance friendly way to sort your items"
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
}
dependencies {
compileOnly("dev.folia", "folia-api", "1.20.1-R0.1-SNAPSHOT")
paperLibrary("net.kyori", "adventure-text-minimessage", "4.13.1")
paperLibrary("org.spongepowered", "configurate-hocon", "4.1.2")
paperLibrary("org.spongepowered", "configurate-yaml", "4.1.2")
paperLibrary("org.incendo", "cloud-paper", "2.0.0-beta.10")
paperLibrary("com.google.code.gson", "gson", "2.10.1")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
paper {
main = "de.kwantux.networks.Main"
loader = "de.kwantux.networks.Loader"
apiVersion = "1.20"
load = BukkitPluginDescription.PluginLoadOrder.STARTUP
website = "https://github.com/Kwantux/Networks"
authors = listOf("Kwantux")
prefix = "networks"
permissions {
register("networks.create") {
description = "Allows you to create networks"
default = BukkitPluginDescription.Permission.Default.TRUE // TRUE, FALSE, OP or NOT_OP
}
register("networks.listforeign") {
description = "Allows you to list networks of other players"
default = BukkitPluginDescription.Permission.Default.TRUE // TRUE, FALSE, OP or NOT_OP
}
register("networks.bypass_limit") {
description = "Allows you to bypass the network owning limit"
default = BukkitPluginDescription.Permission.Default.OP // TRUE, FALSE, OP or NOT_OP
}
register("networks.data") {
description = "Allows you to save and reload config and network data"
default = BukkitPluginDescription.Permission.Default.OP // TRUE, FALSE, OP or NOT_OP
}
}
generateLibrariesJson = true
foliaSupported = true
}
tasks {
runServer {
minecraftVersion("1.21.1")
}
}