Compare commits

..
63 Commits
Author SHA1 Message Date
Adrian 998828138b release: Version 2.2.1 2023-07-19 16:37:35 -05:00
Adrian 638acd9e88 fix(build): Fixed some deprecations 2023-07-19 16:13:53 -05:00
Adrian 5c0850dbdd Merge pull request #109 from MiniPlaceholders/renovate/fabric.api
fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.86.0+1.20.1
2023-07-19 15:01:03 -05:00
renovate[bot] 8a5415c37d fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.86.0+1.20.1 2023-07-18 23:04:47 +00:00
Adrian b5c6afa368 Merge pull request #105 from MiniPlaceholders/renovate/gradle-8.x
chore(deps): update dependency gradle to v8.2.1
2023-07-17 22:34:18 -05:00
Adrian 4bcf85d718 Merge pull request #107 from MiniPlaceholders/renovate/major-krypton
fix(deps): update krypton to v7796647145 (major)
2023-07-17 22:31:13 -05:00
Adrian 548187238e feat: Add more Legacy API parsing 2023-07-17 17:02:31 -05:00
Adrian c7845cec0b fix: Fixed legacy chars replacement in LegacyUtils 2023-07-17 16:07:05 -05:00
Adrian ab3316bcf1 Merge pull request #108 from MiniPlaceholders/renovate/adventurefabric
fix(deps): update dependency net.kyori:adventure-platform-fabric to v5.9.0
2023-07-16 22:48:08 -05:00
renovate[bot] 33b09e85d7 fix(deps): update dependency net.kyori:adventure-platform-fabric to v5.9.0 2023-07-16 22:42:49 +00:00
Adrian 4b6110aa2b Merge pull request #106 from MiniPlaceholders/renovate/org.gradle.toolchains.foojay-resolver-convention-0.x
chore(deps): update plugin org.gradle.toolchains.foojay-resolver-convention to v0.6.0
2023-07-15 15:34:33 -05:00
renovate[bot] e404a158e7 fix(deps): update krypton 2023-07-12 00:05:10 +00:00
renovate[bot] 981901271c chore(deps): update plugin org.gradle.toolchains.foojay-resolver-convention to v0.6.0 2023-07-10 14:06:18 +00:00
renovate[bot] 3f93840e5a chore(deps): update dependency gradle to v8.2.1 2023-07-10 14:06:14 +00:00
Adrian 4d5e45e9eb Merge pull request #102 from MiniPlaceholders/renovate/fabric-loom-1.x
chore(deps): update plugin fabric-loom to v1.3.8
2023-07-10 09:00:56 -05:00
Adrian be8e6d268e Merge pull request #103 from MiniPlaceholders/renovate/indra
fix(deps): update indra to v3.1.2
2023-07-10 09:00:48 -05:00
Adrian b89799ff75 Merge pull request #104 from MiniPlaceholders/renovate/kotlin-monorepo
fix(deps): update kotlin monorepo to v1.9.0
2023-07-08 14:55:11 -05:00
renovate[bot] 10cb91ac56 chore(deps): update plugin fabric-loom to v1.3.8 2023-07-06 16:18:47 +00:00
renovate[bot] b7d190ce7f fix(deps): update kotlin monorepo to v1.9.0 2023-07-06 07:41:06 +00:00
renovate[bot] e028a3bada fix(deps): update indra to v3.1.2 2023-07-06 04:31:53 +00:00
Adrian f339248ad3 Merge pull request #101 from MiniPlaceholders/renovate/fabric.api
fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.85.0+1.20.1
2023-07-04 07:15:33 -05:00
Adrian b8a6f9b746 Merge pull request #100 from MiniPlaceholders/renovate/fabric-loom-1.x
chore(deps): update plugin fabric-loom to v1.3.5
2023-07-04 07:15:24 -05:00
renovate[bot] 3d45362241 fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.85.0+1.20.1 2023-07-03 22:53:35 +00:00
renovate[bot] 859047762c chore(deps): update plugin fabric-loom to v1.3.5 2023-07-03 18:53:44 +00:00
Adrian 63a95961f8 Merge pull request #99 from MiniPlaceholders/renovate/fabric-loom-1.x
chore(deps): update plugin fabric-loom to v1.3.4
2023-07-03 11:30:10 -05:00
renovate[bot] f3c5540d15 chore(deps): update plugin fabric-loom to v1.3.4 2023-07-02 22:48:18 +00:00
Adrian fcbf2e9454 Merge pull request #98 from MiniPlaceholders/renovate/gradle-8.x
chore(deps): update dependency gradle to v8.2
2023-06-30 13:53:48 -05:00
renovate[bot] ae993a34e0 chore(deps): update dependency gradle to v8.2 2023-06-30 18:39:15 +00:00
Adrian eba9aa8e0e Merge pull request #97 from MiniPlaceholders/renovate/fabric-loom-1.x
chore(deps): update plugin fabric-loom to v1.3.2
2023-06-27 20:22:50 -05:00
renovate[bot] 04b86d4a56 chore(deps): update plugin fabric-loom to v1.3.2 2023-06-27 22:13:13 +00:00
Adrian 53402d3c1d Merge pull request #95 from MiniPlaceholders/renovate/pluginyml
chore(deps): update dependency net.minecrell.plugin-yml.bukkit to v0.6.0
2023-06-27 12:31:09 -05:00
Adrian 7634c37ad4 Merge pull request #93 from MiniPlaceholders/renovate/fabric.api
fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.84.0+1.20.1
2023-06-27 12:31:00 -05:00
Adrian 26125abef2 Merge pull request #94 from MiniPlaceholders/renovate/fabric-loom-1.x
chore(deps): update plugin fabric-loom to v1.2.7
2023-06-27 12:30:53 -05:00
Adrian 93182688e2 Merge pull request #92 from MiniPlaceholders/renovate/kotlin-monorepo
fix(deps): update kotlin monorepo to v1.8.22
2023-06-27 12:30:46 -05:00
renovate[bot] a67b23079d fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.84.0+1.20.1 2023-06-23 21:31:16 +00:00
renovate[bot] 79bffc2522 chore(deps): update dependency net.minecrell.plugin-yml.bukkit to v0.6.0 2023-06-19 13:34:14 +00:00
renovate[bot] 7e9aa41fdd chore(deps): update plugin fabric-loom to v1.2.7 2023-06-14 15:38:33 +00:00
renovate[bot] cc30f56c76 fix(deps): update kotlin monorepo to v1.8.22 2023-06-07 20:14:59 +00:00
Adrian b24ddb12cc Merge pull request #91 from MiniPlaceholders/renovate/adventure
fix(deps): update adventure to v4.14.0
2023-06-07 08:08:17 -05:00
renovate[bot] 2df52bf858 fix(deps): update adventure to v4.14.0 2023-06-07 11:44:20 +00:00
Adrian dd64837958 Merge pull request #89 from MiniPlaceholders/renovate/dokka
chore(deps): update dependency org.jetbrains.dokka to v1.8.20
2023-06-06 11:35:58 -05:00
Adrian ccf3045cb3 Merge pull request #90 from MiniPlaceholders/renovate/org.jetbrains.dokka
fix(deps): update dependency org.jetbrains.dokka:dokka-gradle-plugin to v1.8.20
2023-06-06 11:35:48 -05:00
renovate[bot] 34cab56b2c fix(deps): update dependency org.jetbrains.dokka:dokka-gradle-plugin to v1.8.20 2023-06-05 21:13:02 +00:00
renovate[bot] 7090497684 chore(deps): update dependency org.jetbrains.dokka to v1.8.20 2023-06-05 21:12:58 +00:00
Adrian 4fefeda34d Merge pull request #88 from MiniPlaceholders/renovate/fabric.api
fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.83.0+1.20
2023-06-04 10:08:11 -05:00
renovate[bot] 9ec693ae16 fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.83.0+1.20 2023-06-04 14:26:34 +00:00
Adrian 36039dd0f6 Merge pull request #87 from MiniPlaceholders/renovate/fabric.loader
fix(deps): update dependency net.fabricmc:fabric-loader to v0.14.21
2023-06-04 09:25:59 -05:00
renovate[bot] 7295ce2b6c fix(deps): update dependency net.fabricmc:fabric-loader to v0.14.21 2023-06-04 14:16:25 +00:00
Adrian 82987e54f1 Merge pull request #84 from MiniPlaceholders/renovate/fabric-api
fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.82.0+1.20
2023-05-25 19:46:24 -05:00
renovate[bot] 19da3e8050 fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.82.0+1.20 2023-05-25 01:16:06 +00:00
Adrian 440efc5d8a Merge pull request #83 from MiniPlaceholders/renovate/fabric-api
fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.81.3+1.20
2023-05-24 12:52:16 -05:00
renovate[bot] b8e9cf3b07 fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.81.3+1.20 2023-05-24 01:43:18 +00:00
Adrian eb34c410e0 Merge pull request #80 from MiniPlaceholders/renovate/fabric-api
fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.81.2+1.20
2023-05-23 17:19:20 -05:00
renovate[bot] 866767f08f fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.81.2+1.20 2023-05-23 01:44:45 +00:00
Adrian 9c175b8ffd Merge pull request #82 from MiniPlaceholders/renovate/fabric-loader
fix(deps): update dependency net.fabricmc:fabric-loader to v0.14.20
2023-05-22 20:44:01 -05:00
renovate[bot] f3460dbc51 fix(deps): update dependency net.fabricmc:fabric-loader to v0.14.20 2023-05-23 00:00:28 +00:00
Adrian a8671bbcd2 Merge pull request #79 from MiniPlaceholders/renovate/indra
fix(deps): update indra to v3.1.1
2023-05-17 08:36:58 -05:00
Adrian 47f17eb199 fix: Check Tag equality using String#equalsIgnoreCase 2023-05-15 22:49:23 -05:00
Adrian f92df0f0dd Merge remote-tracking branch 'origin/main' 2023-05-15 22:46:09 -05:00
Adrian 1ccf5ce3ec fix: Improved encapsulation of the Expansion class by converting it to a sealed interface 2023-05-15 22:45:50 -05:00
renovate[bot] 9dad10c46a fix(deps): update indra to v3.1.1 2023-05-14 20:42:18 +00:00
Adrian b87e7bc50f Merge pull request #78 from MiniPlaceholders/renovate/fabric-api
fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.80.3+1.20
2023-05-13 11:43:44 -05:00
renovate[bot] 89573967fd fix(deps): update dependency net.fabricmc.fabric-api:fabric-api to v0.80.3+1.20 2023-05-11 20:51:15 +00:00
22 changed files with 183 additions and 73 deletions

No files matched your search

+12 -9
View File
@@ -9,20 +9,14 @@ dependencies {
compileOnly(libs.adventure.minimesssage)
compileOnly(libs.adventure.serializer.legacy)
compileOnly(projects.miniplaceholdersConnect)
testImplementation(platform(libs.junit.bom))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation(libs.adventure.api)
testImplementation(libs.adventure.minimesssage)
testImplementation(libs.adventure.serializer.plain)
}
tasks {
test {
useJUnitPlatform()
testLogging {
events("passed", "failed")
}
}
testImplementation(libs.adventure.serializer.legacy)
}
jmh {
@@ -46,4 +40,13 @@ tasks {
"https://jd.advntr.dev/text-minimessage/${libs.versions.adventure.get()}/"
)
}
compileTestJava {
options.encoding = Charsets.UTF_8.name()
}
test {
useJUnitPlatform()
testLogging {
events("passed", "failed")
}
}
}
@@ -35,7 +35,7 @@ import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver;
*
* @since 1.0.0
*/
public interface Expansion {
public sealed interface Expansion permits ExpansionImpl {
/**
* Get the expansion name
* @return the expansion name
@@ -147,7 +147,7 @@ final class ExpansionImpl implements Expansion {
nonNullOrEmptyString(key, "Placeholder key");
requireNonNull(audiencePlaceholder, "the audience placeholder cannot be null");
if (this.audiencePlaceholders == null) this.audiencePlaceholders = new HashSet<>(5);
if (this.audiencePlaceholders == null) this.audiencePlaceholders = new HashSet<>();
this.audiencePlaceholders.add(Tags.single(expansionName+key, audiencePlaceholder));
return this;
@@ -158,7 +158,7 @@ final class ExpansionImpl implements Expansion {
nonNullOrEmptyString(key, "Placeholder key");
requireNonNull(relationalPlaceholder, "the relational placeholder cannot be null");
if (this.relationalPlaceholders == null) this.relationalPlaceholders = new HashSet<>(4);
if (this.relationalPlaceholders == null) this.relationalPlaceholders = new HashSet<>();
this.relationalPlaceholders.add(Tags.relational(expansionName+"rel_"+key, relationalPlaceholder));
return this;
@@ -169,7 +169,7 @@ final class ExpansionImpl implements Expansion {
nonNullOrEmptyString(key, "Placeholder key");
requireNonNull(function, "the global placeholder cannot be null");
if(this.globalPlaceholders == null) this.globalPlaceholders = TagResolver.builder();
if (this.globalPlaceholders == null) this.globalPlaceholders = TagResolver.builder();
this.globalPlaceholders.tag(expansionName+key, function);
return this;
@@ -180,7 +180,7 @@ final class ExpansionImpl implements Expansion {
nonNullOrEmptyString(key, "Placeholder key");
requireNonNull(tag, "the tag cannot be null");
if(this.globalPlaceholders == null) this.globalPlaceholders = TagResolver.builder();
if (this.globalPlaceholders == null) this.globalPlaceholders = TagResolver.builder();
this.globalPlaceholders.tag(expansionName+key, tag);
return this;
@@ -212,10 +212,11 @@ final class ExpansionImpl implements Expansion {
}
@Override
public boolean equals(Object o){
if (this==o) return true;
if (o == null || o.getClass() != ExpansionImpl.class) return false;
return ((ExpansionImpl)o).name.equals(this.name);
public boolean equals(final Object o) {
if (this == o) return true;
if (!(o instanceof Expansion that)) return false;
return that.name().equalsIgnoreCase(this.name());
}
@Override
@@ -1,17 +1,16 @@
package io.github.miniplaceholders.api;
import io.github.miniplaceholders.api.enums.Platform;
import io.github.miniplaceholders.connect.InternalPlatform;
import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import io.github.miniplaceholders.api.enums.Platform;
import org.jetbrains.annotations.NotNull;
import io.github.miniplaceholders.connect.InternalPlatform;
import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver;
import org.jetbrains.annotations.Nullable;
import static io.github.miniplaceholders.api.utils.Resolvers.applyIfNotEmpty;
import static java.util.Objects.requireNonNull;
@@ -15,7 +15,7 @@ import net.kyori.adventure.text.minimessage.tag.resolver.ArgumentQueue;
import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver;
final class Tags {
private Tags(){}
private Tags() {}
static Relational relational(@NotNull final String name, @NotNull final RelationalPlaceholder relationalPlaceholder){
return new Tags.Relational(name, relationalPlaceholder);
@@ -35,7 +35,7 @@ final class Tags {
}
TagResolver of(@NotNull final Audience audience, @NotNull final Audience otherAudience){
return new TagResolver(){
return new TagResolver() {
@Override
public @Nullable Tag resolve(@NotNull String name, @NotNull ArgumentQueue arguments,
@NotNull Context ctx) throws ParsingException {
@@ -53,10 +53,10 @@ final class Tags {
}
@Override
public boolean equals(Object o){
if(o == this) return true;
if(!(o instanceof Relational)) return false;
return ((Relational)o).key.equals(this.key);
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof final Relational that)) return false;
return that.key.equalsIgnoreCase(this.key);
}
@Override
@@ -93,10 +93,10 @@ final class Tags {
}
@Override
public boolean equals(Object o){
if(o == this) return true;
if(!(o instanceof Single)) return false;
return ((Single)o).key.equals(this.key);
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof final Single that)) return false;
return that.key.equalsIgnoreCase(this.key);
}
@Override
@@ -1,6 +1,8 @@
package io.github.miniplaceholders.api.utils;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.minimessage.Context;
import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver;
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -25,20 +27,89 @@ public final class LegacyUtils {
.build();
/**
* Parse a string with possible legacy symbols
* Parse a string with possible legacy Ampersand/Section symbols
* <br>
* <p><b>
* This method should only be used in case a String is provided from a legacy plugin/mod
* or legacy source, where it is very likely to get a legacy string.
* It is not recommended to use this method regularly in any sense
* </b></p>
*
* @param string the string
* @return a parsed string
* @since 1.0.0
*/
public static @NotNull Component parsePossibleLegacy(@Nullable String string) {
if (string == null || string.isBlank()) return Component.empty();
if (string.indexOf('&') != 0) {
return miniMessage().deserialize(
miniMessage().serialize(LEGACY_HEX_SERIALIZER.deserialize(string))
);
} else {
if (string == null || string.isEmpty()) return Component.empty();
if (string.indexOf(LegacyComponentSerializer.SECTION_CHAR) != -1) {
string = string.replace(LegacyComponentSerializer.SECTION_CHAR, LegacyComponentSerializer.AMPERSAND_CHAR);
}
if (string.indexOf(LegacyComponentSerializer.AMPERSAND_CHAR) == -1) {
return miniMessage().deserialize(string);
}
return miniMessage().deserialize(
miniMessage().serialize(LEGACY_HEX_SERIALIZER.deserialize(string))
.replace("\\<", "<")
.replace("\\>", ">")
);
}
/**
* Parse a string with possible legacy Ampersand/Section symbols
* using a parsing Context
* <p><b>
* This method should only be used in case a String is provided from a legacy plugin/mod
* or legacy source, where it is very likely to get a legacy string.
* It is not recommended to use this method regularly in any sense
* </b></p>
*
* @param string the string
* @param context the provided parsing context
* @return a parsed string
* @since 2.2.1
*/
public static @NotNull Component parsePossibleLegacy(@Nullable String string, @NotNull final Context context) {
if (string == null || string.isEmpty()) return Component.empty();
if (string.indexOf(LegacyComponentSerializer.SECTION_CHAR) != -1) {
string = string.replace(LegacyComponentSerializer.SECTION_CHAR, LegacyComponentSerializer.AMPERSAND_CHAR);
}
if (string.indexOf(LegacyComponentSerializer.AMPERSAND_CHAR) == -1) {
return context.deserialize(string);
}
return context.deserialize(
miniMessage().serialize(LEGACY_HEX_SERIALIZER.deserialize(string))
.replace("\\<", "<")
.replace("\\>", ">")
);
}
/**
* Parse a string with possible legacy Ampersand/Section symbols
* using the provided resolver
* <p><b>
* This method should only be used in case a String is provided from a legacy plugin/mod
* or legacy source, where it is very likely to get a legacy string.
* It is not recommended to use this method regularly in any sense
* </b></p>
*
* @param string the string
* @param resolver a resolver
* @return a parsed string
* @since 2.2.1
*/
public static @NotNull Component parsePossibleLegacy(@Nullable String string, @NotNull final TagResolver resolver) {
if (string == null || string.isEmpty()) return Component.empty();
if (string.indexOf(LegacyComponentSerializer.SECTION_CHAR) != -1) {
string = string.replace(LegacyComponentSerializer.SECTION_CHAR, LegacyComponentSerializer.AMPERSAND_CHAR);
}
if (string.indexOf(LegacyComponentSerializer.AMPERSAND_CHAR) == -1) {
return miniMessage().deserialize(string, resolver);
}
return miniMessage().deserialize(
miniMessage().serialize(LEGACY_HEX_SERIALIZER.deserialize(string))
.replace("\\<", "<")
.replace("\\>", ">"),
resolver
);
}
}
+5 -3
View File
@@ -1,11 +1,13 @@
/** MiniPlaceholders API Module */
open module io.github.miniplaceholders.api {
requires io.github.miniplaceholders.connect;
requires net.kyori.adventure;
requires net.kyori.adventure.text.minimessage;
requires net.kyori.examination.api;
requires static org.jetbrains.annotations;
requires io.github.miniplaceholders.connect;
requires net.kyori.adventure.text.serializer.legacy;
requires net.kyori.examination.api;
requires static org.jetbrains.annotations;
exports io.github.miniplaceholders.api;
exports io.github.miniplaceholders.api.enums;
@@ -0,0 +1,20 @@
package io.github.miniplaceholders.test;
import io.github.miniplaceholders.api.utils.LegacyUtils;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class LegacyTest {
@Test
void testLegacyParsing() {
final String string = "<rainbow>hello... i &8hate legacy format §bso much";
final Component parsed = LegacyUtils.parsePossibleLegacy(string);
final String result = PlainTextComponentSerializer.plainText().serialize(parsed);
final String expected = "hello... i hate legacy format so much";
assertEquals(expected, result);
}
}
+4
View File
@@ -12,4 +12,8 @@ dependencyResolutionManagement {
from(files("../gradle/libs.versions.toml"))
}
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.6.0"
}
+1 -2
View File
@@ -4,5 +4,4 @@ import org.gradle.configurationcache.extensions.capitalized
val Project.capitalizeName: String
get() = this.name.substring(17).capitalized()
val Project.simpleName: String
get() = this.name.substring(17)
fun Project.simpleName(): String = this.name.substring(17)
@@ -2,8 +2,10 @@ plugins {
id("miniplaceholders.base")
}
tasks.jar {
manifest {
attributes("Automatic-Module-Name" to "io.github.miniplaceholders.${project.simpleName}")
tasks {
jar {
manifest {
attributes("Automatic-Module-Name" to "io.github.miniplaceholders.${project.simpleName()}")
}
}
}
@@ -20,4 +20,9 @@ tasks {
}
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
java{
toolchain{
languageVersion.set(JavaLanguageVersion.of(17))
vendor.set(JvmVendorSpec.ADOPTIUM)
}
}
@@ -10,7 +10,7 @@ tasks {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
relocate("net.william278.desertwell", "io.github.miniplaceholders.libs.desertwell")
relocate("cloud.commandframework", "io.github.miniplaceholders.libs.cloud")
if (project.simpleName != "sponge") {
if (project.simpleName() != "sponge") {
relocate("io.leangen.geantyref", "io.github.miniplaceholders.libs.geantyref")
}
destinationDirectory.set(file("${project.rootDir}/jar"))
+1 -1
View File
@@ -1,5 +1,5 @@
plugins {
kotlin("jvm") version "1.8.21" apply false
kotlin("jvm") version "1.9.0" apply false
}
tasks {
+1 -1
View File
@@ -16,7 +16,7 @@ dependencies {
compileOnly(libs.adventure.minimesssage)
}
blossom{
blossom {
replaceToken("{version}", project.version)
replaceTokenIn("src/main/java/io/github/miniplaceholders/common/PluginConstants.java")
}
+1 -1
View File
@@ -1,5 +1,5 @@
group = io.github.miniplaceholders
version = 2.2.0
version = 2.2.1
description = MiniMessage Component-based Placeholders for Paper, Folia, Fabric, Sponge, velocity and Krypton platforms
org.gradle.jvmargs=-Xmx2G
+12 -12
View File
@@ -3,27 +3,27 @@ metadata.format.version = "1.1"
[versions]
velocity = "3.2.0-SNAPSHOT"
paper = "1.19.4-R0.1-SNAPSHOT"
krypton = "cbfaff4aa4"
minecraft = "1.19.4"
paper = "1.20.1-R0.1-SNAPSHOT"
krypton = "7796647145"
minecraft = "1.20.1"
runtask = "2.1.0"
pluginyml = "0.5.3"
pluginyml = "0.6.0"
userdev = "1.5.5"
blossom = "1.3.1"
indra = "3.0.1"
indra = "3.1.2"
shadow = "8.1.1"
jmh = "0.7.1"
dokka = "1.8.10"
dokka = "1.8.20"
cloud = "1.8.3"
adventure = "4.13.1"
adventurefabric = "5.8.0"
adventure = "4.14.0"
adventurefabric = "5.9.0"
brigadier = "1.0.500"
kotlin="1.8.21"
kotlin="1.9.0"
fabric-api = "0.80.1+1.20"
fabric-loader = "0.14.19"
fabric-api = "0.86.0+1.20.1"
fabric-loader = "0.14.21"
desertwell = "2.0.4"
@@ -60,7 +60,7 @@ plugin-shadow = { group = "com.github.johnrengelman", name = "shadow", version.r
plugin-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
plugin-indra-common = { module = "net.kyori:indra-common", version.ref = "indra" }
plugin-indra-spotless = { module = "net.kyori:indra-licenser-spotless", version.ref = "indra" }
plugin-dokka = "org.jetbrains.dokka:dokka-gradle-plugin:1.8.10"
plugin-dokka = "org.jetbrains.dokka:dokka-gradle-plugin:1.8.20"
desertwell = { group = "net.william278", name = "DesertWell", version.ref = "desertwell" }
Binary file not shown.
+2 -1
View File
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Vendored
+4 -1
View File
@@ -130,10 +130,13 @@ location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
+1 -1
View File
@@ -14,7 +14,7 @@ dependencies {
tasks {
runServer {
minecraftVersion("1.19.4")
minecraftVersion("1.20.1")
}
processResources {
filesMatching("paper-plugin.yml") {
+2 -2
View File
@@ -30,9 +30,9 @@ dependencyResolutionManagement {
}
plugins {
id("fabric-loom") version "1.2.6"
id("fabric-loom") version "1.3.8"
id("org.spongepowered.gradle.plugin") version "2.1.1"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.6.0"
}
arrayOf(