Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaSergeew committed May 26, 2024
0 parents commit 75554d1
Show file tree
Hide file tree
Showing 45 changed files with 688 additions and 0 deletions.
Binary file added .gradle/8.7/checksums/checksums.lock
Binary file not shown.
Empty file.
Binary file added .gradle/8.7/executionHistory/executionHistory.bin
Binary file not shown.
Binary file added .gradle/8.7/executionHistory/executionHistory.lock
Binary file not shown.
Binary file added .gradle/8.7/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/8.7/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/8.7/fileHashes/fileHashes.lock
Binary file not shown.
Binary file added .gradle/8.7/fileHashes/resourceHashesCache.bin
Binary file not shown.
Empty file added .gradle/8.7/gc.properties
Empty file.
Binary file added .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 2 additions & 0 deletions .gradle/buildOutputCleanup/cache.properties
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
Binary file added .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file added .gradle/file-system.probe
Binary file not shown.
Empty file added .gradle/vcs-1/gc.properties
Empty file.
3 changes: 3 additions & 0 deletions .idea/.gitignore

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

6 changes: 6 additions & 0 deletions .idea/compiler.xml

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

7 changes: 7 additions & 0 deletions .idea/discord.xml

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

15 changes: 15 additions & 0 deletions .idea/gradle.xml

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

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

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

7 changes: 7 additions & 0 deletions .idea/misc.xml

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

8 changes: 8 additions & 0 deletions .idea/modules.xml

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

14 changes: 14 additions & 0 deletions .idea/modules/DragonRespawn.main.iml

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

49 changes: 49 additions & 0 deletions build.gradle
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
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added build/libs/DragonRespawn-1.0-SNAPSHOT.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions build/resources/main/config.yml
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: "Дракон появился в Энде!"
9 changes: 9 additions & 0 deletions build/resources/main/paper-plugin.yml
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions build/tmp/jar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

Empty file added gradle.properties
Empty file.
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
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
Loading

0 comments on commit 75554d1

Please sign in to comment.