-
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,2 @@ | ||
#Sun May 26 17:03:23 MSK 2024 | ||
gradle.version=8.7 |
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.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
group = 'org.example.bedepay' | ||
version = '1.0-SNAPSHOT' | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { | ||
name = "papermc-repo" | ||
url = "https://repo.papermc.io/repository/maven-public/" | ||
} | ||
maven { | ||
name = "sonatype" | ||
url = "https://oss.sonatype.org/content/groups/public/" | ||
} | ||
} | ||
|
||
dependencies { | ||
compileOnly "io.papermc.paper:paper-api:1.20.4-R0.1-SNAPSHOT" | ||
} | ||
|
||
def targetJavaVersion = 17 | ||
java { | ||
def javaVersion = JavaVersion.toVersion(targetJavaVersion) | ||
sourceCompatibility = javaVersion | ||
targetCompatibility = javaVersion | ||
if (JavaVersion.current() < javaVersion) { | ||
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion) | ||
} | ||
} | ||
|
||
tasks.withType(JavaCompile).configureEach { | ||
options.encoding = 'UTF-8' | ||
|
||
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) { | ||
options.release.set(targetJavaVersion) | ||
} | ||
} | ||
|
||
processResources { | ||
def props = [version: version] | ||
inputs.properties props | ||
filteringCharset 'UTF-8' | ||
filesMatching('paper-plugin.yml') { | ||
expand props | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# config.yml | ||
respawn-time: 3600 # Время до возрождения дракона в секундах (1 час по умолчанию) | ||
announcements: | ||
initial: "Через {minutes} минут дракон появится в Энде!" | ||
every-5-minutes: "Через {minutes} минут дракон появится в Энде!" | ||
last-minute: "Через 1 минуту дракон появится в Энде!" | ||
dragon-respawned: "Дракон появился в Энде!" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: DragonRespawn | ||
version: '1.0-SNAPSHOT' | ||
main: org.example.bedepay.dragonrespawn.DragonRespawn | ||
api-version: '1.20' | ||
description: A plugin to respawn the Ender Dragon with customizable respawn timer and announcements. | ||
permissions: | ||
dragonrespawn.reload: | ||
description: Allows the player to reload the DragonRespawn configuration | ||
default: op |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Manifest-Version: 1.0 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |