Skip to content

Commit 3623f67

Browse files
authored
Initial commit
0 parents  commit 3623f67

11 files changed

Lines changed: 531 additions & 0 deletions

File tree

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Compiled class file
2+
*.class
3+
4+
# Log file
5+
*.log
6+
7+
# BlueJ files
8+
*.ctxt
9+
10+
# Mobile Tools for Java (J2ME)
11+
.mtj.tmp/
12+
13+
# Package Files #
14+
*.jar
15+
*.war
16+
*.nar
17+
*.ear
18+
*.zip
19+
*.tar.gz
20+
*.rar
21+
22+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
23+
hs_err_pid*
24+
25+
# Gradle
26+
.gradle/
27+
build/
28+
run/
29+
30+
# Visual Studio Code
31+
32+
.settings/
33+
.classpath
34+
.factorypath
35+
.project
36+
.vscode/
37+
38+
# Intellij Idea
39+
40+
.idea/

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# VelocityPluginTemplate
2+
3+
[![Discord](https://img.shields.io/discord/899740810956910683?color=7289da&label=Discord)](https://discord.gg/5NMMzK5mAn)
4+
5+
Description Here
6+
7+
## Installation
8+
- Download YourPlugin from Modrinth
9+
- Drag and drop on your plugins folder
10+
- Start the server

build.gradle.kts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
plugins {
2+
java
3+
alias(libs.plugins.runvelocity)
4+
alias(libs.plugins.blossom)
5+
}
6+
7+
repositories {
8+
maven("https://repo.papermc.io/repository/maven-public/")
9+
}
10+
11+
dependencies {
12+
compileOnly(libs.velocity)
13+
annotationProcessor(libs.velocity)
14+
}
15+
16+
tasks {
17+
compileJava {
18+
options.encoding = Charsets.UTF_8.name()
19+
options.release.set(11)
20+
}
21+
clean {
22+
// Deletes the directory that is generated by the runVelocity plugin
23+
delete("run")
24+
}
25+
runVelocity {
26+
velocityVersion(libs.versions.velocity.get())
27+
}
28+
}
29+
30+
blossom {
31+
replaceTokenIn("src/main/java/io/github/_4drian3d/Constants.java")
32+
replaceToken("{version}", project.version)
33+
}
34+
35+
java.toolchain.languageVersion.set(JavaLanguageVersion.of(11))

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
group = your.package.here
2+
version = 1.0.0-SNAPSHOT
3+
description = Description Here

gradle/libs.versions.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
metadata.format.version = "1.1"
2+
3+
[versions]
4+
5+
# CompileOnly dependencies
6+
velocity = "3.2.0-SNAPSHOT"
7+
# Included in Velocity but not exposed in API
8+
caffeine = "3.1.2"
9+
10+
# Gradle Plugins
11+
blossom = "1.3.1"
12+
shadow = "7.1.2"
13+
runvelocity = "2.0.1"
14+
15+
# Utility Libraries
16+
configurate = "4.1.2"
17+
libby = "43d25ade72"
18+
bstats = "3.0.0"
19+
20+
# Required by Configurate 4
21+
geantyref = "1.3.13"
22+
23+
[libraries]
24+
25+
# Compile Only Dependencies
26+
velocity = { group = "com.velocitypowered", name = "velocity-api", version.ref = "velocity" }
27+
caffeine = { module = "com.github.ben-manes.caffeine:caffeine", version.ref = "caffeine" }
28+
29+
bstats = { module = "org.bstats:bstats-velocity", version.ref = "bstats" }
30+
31+
configurate-hocon = { module = "org.spongepowered:configurate-hocon", version.ref = "configurate" }
32+
configurate-kotlin = { module = "org.spongepowered:configurate-extra-kotlin", version.ref = "configurate" }
33+
34+
libby = { group = "com.github.AlessioDP.libby", name = "libby-velocity", version.ref = "libby" }
35+
36+
[plugins]
37+
38+
blossom = { id = "net.kyori.blossom", version.ref = "blossom" }
39+
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
40+
runvelocity = { id = "xyz.jpenilla.run-velocity", version.ref = "runvelocity" }
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
4+
networkTimeout=10000
5+
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

gradlew

Lines changed: 244 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)