11import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2+ import io.papermc.paperweight.userdev.ReobfArtifactConfiguration
23
34plugins {
45 id ' net.minecrell.plugin-yml.bukkit'
@@ -7,28 +8,37 @@ plugins {
78
89group = ' org.parallelmc'
910
10- version = ' 4.2 .0'
11+ version = ' 4.7 .0'
1112description = ' A set of utilities and features for use on the Parallel Minecraft server'
1213
1314java {
14- toolchain. languageVersion. set(JavaLanguageVersion . of(17 ))
15+ toolchain. languageVersion. set(JavaLanguageVersion . of(21 ))
1516}
1617
18+ paperweight. reobfArtifactConfiguration = ReobfArtifactConfiguration . getMOJANG_PRODUCTION()
19+
1720compileJava. options. encoding = " UTF-8"
1821compileTestJava. options. encoding = " UTF-8"
1922processResources. filteringCharset = " UTF-8"
2023
24+ repositories {
25+ mavenCentral()
26+ maven { url = " https://repo.papermc.io/repository/maven-public/" }
27+ }
2128
2229dependencies {
30+ // compileOnly 'io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT'
31+ paperweightDevelopmentBundle(" io.papermc.paper:dev-bundle:1.21.6-R0.1-SNAPSHOT" )
32+
2333 implementation ' org.jetbrains:annotations:24.0.1'
2434 testImplementation ' org.junit.jupiter:junit-jupiter-engine:5.9.2'
25- implementation ' net.dv8tion:JDA:5.0.0-beta.10 '
26- compileOnly ' me.clip:placeholderapi:2.11.3 '
35+ implementation ' net.dv8tion:JDA:5.0.0-beta.24 '
36+ compileOnly ' me.clip:placeholderapi:2.11.6 '
2737 compileOnly fileTree(' libs' ) { include ' *.jar' }
28- compileOnly ' com.sk89q.worldguard:worldguard-bukkit:7.0.8 '
29- implementation ' mysql:mysql-connector-java :8.0.33 '
30- compileOnly ' com.comphenix.protocol:ProtocolLib:5.0 .0'
31- compileOnly ' dev.esophose:playerparticles:8.4 '
38+ compileOnly ' com.sk89q.worldguard:worldguard-bukkit:7.0.13 '
39+ implementation ' com. mysql:mysql-connector-j :8.3.0 '
40+ compileOnly ' com.comphenix.protocol:ProtocolLib:5.3 .0'
41+ compileOnly ' dev.esophose:playerparticles:8.7 '
3242 implementation ' org.reflections:reflections:0.10.2'
3343}
3444
@@ -39,17 +49,17 @@ artifacts {
3949
4050tasks {
4151 assemble {
42- dependsOn(reobfJar)
52+ // dependsOn(reobfJar)
4353 }
4454
4555 build {
46- dependsOn(reobfJar)
56+ // dependsOn(reobfJar)
4757 }
4858
4959 compileJava {
5060 // Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
5161 // See https://openjdk.java.net/jeps/247 for more information.
52- options. release. set(17 )
62+ options. release. set(21 )
5363 }
5464
5565 shadowJar {
@@ -67,7 +77,7 @@ bukkit {
6777
6878 main = ' parallelmc.parallelutils.ParallelUtils'
6979
70- apiVersion = ' 1.20 '
80+ apiVersion = ' 1.21.5 '
7181
7282 depend = [' PlaceholderAPI' , ' ProtocolLib' ]
7383 softDepend = [' Multiverse-Core' , ' FractalForest' , ' WorldGuard' , ' VoteParty' , ' PlayerParticles' , ' ProNouns' ]
@@ -90,6 +100,11 @@ bukkit {
90100 usage = ' /town'
91101 permissionMessage = ' You do not have permission'
92102 }
103+ chestshop {
104+ description = ' Base command for all ChestShop debug commands'
105+ usage = ' /chestshop'
106+ permissionMessage = ' You do not have permission'
107+ }
93108 depositexp {
94109 description = ' Deposit exp into the player\' s ender chest '
95110 usage = ' /depositexp <amount | all>'
@@ -274,6 +289,26 @@ bukkit {
274289 description = ' Opens Maggies Shop'
275290 usage = ' /openmaggieshop (player)'
276291 }
292+ points {
293+ description = ' View your advancement points'
294+ usage = ' /points'
295+ }
296+ recalculatepoints {
297+ description = ' Recalculates advancement points for all players'
298+ usage = ' /recalculatepoints'
299+ permissionMessage = ' You do not have permission.'
300+ permission = ' parallelutils.recalculatepoints'
301+ }
302+ openpointsredemption {
303+ description = ' Opens the point redemption shop for a player'
304+ usage = ' /openpointsredemption (player)'
305+ }
306+ hat {
307+ description = ' Allows you to wear the item in your main hand as a hat'
308+ usage = ' /hat'
309+ permissionMessage = ' You do not have permission.'
310+ permission = ' parallelutils.hat.*'
311+ }
277312 }
278313
279314 permissions {
@@ -462,5 +497,19 @@ bukkit {
462497 ' parallelutils.notify.antislur' {
463498 description = ' Be notified of swearing'
464499 }
500+ ' parallelutils.chestshop.debug' {
501+ description = ' Gives access to ChestShop debug commands'
502+ setDefault(' FALSE' )
503+ }
504+ ' parallelutils.resources.unenforced' {
505+ description = ' Prevents being kicked from not accepting the resource pack'
506+ setDefault(' FALSE' )
507+ }
508+ ' parallelutils.recalculatepoints' {
509+ description = ' Gives access to the /recalculatepoints dev command'
510+ }
511+ ' parallelutils.hat.*' {
512+ description = ' Allows you to wear any item as a hat'
513+ }
465514 }
466515}
0 commit comments