Skip to content

Commit 26af110

Browse files
committed
release: Version 1.0.0
1 parent b2f63b2 commit 26af110

File tree

14 files changed

+73
-78
lines changed

14 files changed

+73
-78
lines changed

build.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ plugins {
44
}
55

66
dependencies {
7-
implementation(projects.viaversionExpansionVelocity)
8-
implementation(projects.viaversionExpansionPaper)
7+
implementation(projects.exampleExpansionVelocity)
8+
implementation(projects.exampleExpansionPaper)
99
}
1010

1111
subprojects {
1212
apply<JavaPlugin>()
1313
repositories {
1414
maven("https://papermc.io/repo/repository/maven-public/")
15-
maven("https://repo.viaversion.com")
1615
}
1716
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
1817
tasks {
@@ -25,7 +24,7 @@ subprojects {
2524

2625
tasks {
2726
shadowJar {
28-
archiveFileName.set("MiniPlaceholders-${rootProject.name}-${project.version}.jar")
27+
archiveFileName.set("${rootProject.name}-${project.version}.jar")
2928
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
3029
}
3130
build {

common/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies {
22
compileOnly(libs.miniplaceholders)
3-
compileOnly(libs.viaversion)
3+
//compileOnly(libs.spark) Some library
44
compileOnly(libs.adventure.api)
55
compileOnly(libs.adventure.minimessage)
66
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package io.github.miniplaceholders.expansion.example.common;
2+
3+
import io.github.miniplaceholders.api.Expansion;
4+
5+
public final class CommonExpansion {
6+
public static void register() {
7+
Expansion.builder("example")
8+
.build()
9+
.register();
10+
}
11+
}

common/src/main/java/io/github/miniplaceholders/expansion/viaversion/common/CommonExpansion.java

Lines changed: 0 additions & 28 deletions
This file was deleted.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
group = io.github.miniplaceholders
22
version = 1.0.0
3-
description = ViaVersion-Expansion
3+
description = Example-Expansion

gradle/libs.versions.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ runtask = "2.1.0"
1111

1212
miniplaceholders = "2.2.0"
1313
adventure = "4.13.1"
14-
viaversion = "[4.0.0,5.0.0)"
1514

1615
[libraries]
1716

@@ -22,8 +21,6 @@ miniplaceholders = { group = "io.github.miniplaceholders", name = "miniplacehold
2221
adventure-api = { group = "net.kyori", name = "adventure-api", version.ref = "adventure" }
2322
adventure-minimessage = { group = "net.kyori", name = "adventure-text-minimessage", version.ref = "adventure" }
2423

25-
viaversion = { group = "com.viaversion", name = "viaversion-api", version.ref = "viaversion" }
26-
2724
[plugins]
2825

2926
blossom = { id = "net.kyori.blossom", version.ref = "blossom" }

paper/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dependencies {
22
compileOnly(libs.paper.api)
33
compileOnly(libs.miniplaceholders)
4-
implementation(projects.exampleExpansionCommon)
4+
implementation(projects.viaversionExpansionCommon)
55
}
66

77
tasks {
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package io.github.miniplaceholders.expansion.example.paper;
2+
3+
import io.github.miniplaceholders.expansion.example.common.CommonExpansion;
4+
import org.bukkit.entity.Player;
5+
import org.bukkit.plugin.java.JavaPlugin;
6+
7+
import io.github.miniplaceholders.api.Expansion;
8+
import net.kyori.adventure.text.Component;
9+
import net.kyori.adventure.text.minimessage.tag.Tag;
10+
11+
public final class PaperPlugin extends JavaPlugin {
12+
13+
@Override
14+
public void onEnable(){
15+
this.getSLF4JLogger().info("Starting Example Expansion for Paper");
16+
17+
CommonExpansion.register();
18+
19+
Expansion.builder("example")
20+
.filter(Player.class)
21+
.audiencePlaceholder("name", (aud, queue, ctx) -> Tag.selfClosingInserting(Component.text(((Player)aud).getName())))
22+
.build()
23+
.register();
24+
}
25+
}

paper/src/main/java/io/github/miniplaceholders/expansion/viaversion/paper/PaperPlugin.java

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
name: ViaVersion-Expansion
1+
name: Example-Expansion
22
version: '${version}'
33
author: 4drian3d
4-
main: io.github.miniplaceholders.expansion.viaversion.paper.PaperPlugin
4+
main: io.github.miniplaceholders.expansion.example.paper.PaperPlugin
55
api-version: '1.19'
66
folia-supported: true
77
dependencies:
88
- name: MiniPlaceholders
99
required: true
10-
- name: ViaVersion
11-
required: true
10+
# Add some plugin dependency
11+
#- name: spark
12+
# required: true

0 commit comments

Comments
 (0)