mirror of
https://github.com/colbster937/originblacklist.git
synced 2026-03-23 13:57:41 +00:00
Compare commits
1 Commits
v2.0.9+e73
...
v2.0.9+745
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
745622fa36 |
@@ -111,12 +111,12 @@ val BUILD_PROPS = mapOf(
|
|||||||
"git_cm_hash" to GIT_INFO.gitHashFull,
|
"git_cm_hash" to GIT_INFO.gitHashFull,
|
||||||
)
|
)
|
||||||
|
|
||||||
tasks.withType<JavaCompile>().configureEach {
|
tasks.named<JavaCompile>("compileJava") {
|
||||||
options.encoding = "UTF-8"
|
options.encoding = "UTF-8"
|
||||||
options.release.set(21)
|
options.release.set(21)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<ProcessResources>().configureEach {
|
tasks.named<ProcessResources>("processResources") {
|
||||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
outputs.upToDateWhen { false }
|
outputs.upToDateWhen { false }
|
||||||
|
|
||||||
@@ -139,11 +139,12 @@ tasks.withType<ProcessResources>().configureEach {
|
|||||||
inputs.files(tasks.named<JavaCompile>("compileJava").map { it.outputs.files })
|
inputs.files(tasks.named<JavaCompile>("compileJava").map { it.outputs.files })
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<Jar>().configureEach {
|
tasks.named<Jar>("jar") {
|
||||||
if (this !is ShadowJar) enabled = false
|
enabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<ShadowJar>().configureEach {
|
tasks.named<ShadowJar>("shadowJar") {
|
||||||
|
enabled = true
|
||||||
doFirst {
|
doFirst {
|
||||||
delete(layout.buildDirectory.dir("libs"))
|
delete(layout.buildDirectory.dir("libs"))
|
||||||
mkdir(layout.buildDirectory.dir("libs"))
|
mkdir(layout.buildDirectory.dir("libs"))
|
||||||
@@ -168,7 +169,7 @@ tasks.register("printVars") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<RunServer>().configureEach {
|
tasks.named<RunServer>("runServer") {
|
||||||
minecraftVersion("1.12.2")
|
minecraftVersion("1.12.2")
|
||||||
runDirectory.set(layout.projectDirectory.dir("run/paper"))
|
runDirectory.set(layout.projectDirectory.dir("run/paper"))
|
||||||
jvmArgs("-Dcom.mojang.eula.agree=true")
|
jvmArgs("-Dcom.mojang.eula.agree=true")
|
||||||
@@ -178,7 +179,7 @@ tasks.withType<RunServer>().configureEach {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<RunWaterfall>().configureEach {
|
tasks.named<RunWaterfall>("runWaterfall") {
|
||||||
waterfallVersion("1.21")
|
waterfallVersion("1.21")
|
||||||
runDirectory.set(layout.projectDirectory.dir("run/waterfall"))
|
runDirectory.set(layout.projectDirectory.dir("run/waterfall"))
|
||||||
downloadPlugins {
|
downloadPlugins {
|
||||||
@@ -186,8 +187,8 @@ tasks.withType<RunWaterfall>().configureEach {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<RunVelocity>().configureEach {
|
tasks.named<RunVelocity>("runVelocity") {
|
||||||
velocityVersion("3.4.0-SNAPSHOT")
|
velocityVersion("3.5.0-SNAPSHOT")
|
||||||
runDirectory.set(layout.projectDirectory.dir("run/velocity"))
|
runDirectory.set(layout.projectDirectory.dir("run/velocity"))
|
||||||
downloadPlugins {
|
downloadPlugins {
|
||||||
github("lax1dude", "eaglerxserver", "v" + EAGXS_VER, "EaglerXServer.jar")
|
github("lax1dude", "eaglerxserver", "v" + EAGXS_VER, "EaglerXServer.jar")
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ public final class OriginBlacklistVelocity implements IOriginBlacklistPlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final void shutdown() {
|
public final void shutdown() {
|
||||||
for (ScheduledTask task : this.proxy.getScheduler().tasksByPlugin(this.plugin)) {
|
for (final ScheduledTask task : this.proxy.getScheduler().tasksByPlugin(this.plugin)) {
|
||||||
task.cancel();
|
task.cancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user