Compare commits

...
12 Commits
Author SHA1 Message Date
Jason Penilla 58ff03aa95 release: Version 2.0.8 2022-06-18 23:51:55 -07:00
Jason Penilla 4155249878 Dependency updates 2022-06-18 23:51:25 -07:00
Jason Penilla de0936c5d2 Update for Minecraft 1.19 2022-06-13 19:28:31 -07:00
Jason Penilla a8e5e910ee fabric: update loom to 0.12 2022-05-29 19:49:41 -07:00
Jason Penilla 0d48b46621 Update SpongeGradle 2022-05-07 13:08:42 -07:00
Jason Penilla 2a18bc156d 2.0.8-SNAPSHOT 2022-05-03 18:15:53 -07:00
Jason Penilla 0dd650dacb release: Version 2.0.7 2022-05-03 18:06:49 -07:00
Jason Penilla 624a97346d Dependency updates 2022-05-03 18:04:56 -07:00
Jason Penilla 3d4fdc1f53 Minor clean up 2022-05-03 18:04:37 -07:00
Jason Penilla 286f72f746 Dependency updates 2022-04-20 22:18:29 -07:00
Renovate Bot 0cc8d9a98d chore(deps): update dependency gradle to v7.4.2 2022-03-31 10:51:27 -07:00
Jason Penilla 80ae413c9d 2.0.7-SNAPSHOT 2022-03-12 12:03:08 -07:00
12 changed files with 28 additions and 30 deletions

No files matched your search

@@ -1,4 +1,3 @@
import com.github.jengelman.gradle.plugins.shadow.internal.DependencyFilter
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
fun ShadowJar.commonRelocation(pkg: String) {
+1 -1
View File
@@ -15,7 +15,7 @@ dependencies {
tasks {
runServer {
minecraftVersion("1.18.2")
minecraftVersion("1.19")
}
shadowJar {
commonRelocation("org.slf4j")
@@ -28,9 +28,9 @@ import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ThreadLocalRandom;
import java.util.stream.Stream;
import javax.imageio.ImageIO;
@@ -38,7 +38,7 @@ import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
public final class IconManager<I> {
private final Map<String, I> icons = new HashMap<>();
private final Map<String, I> icons = new ConcurrentHashMap<>();
private final MiniMOTD<I> miniMOTD;
private final Path iconsDirectory;
@@ -49,7 +49,7 @@ public final class MiniMOTDConfig {
@Comment("The list of MOTDs to display\n"
+ "\n"
+ " - Supported placeholders: {onlinePlayers}, {maxPlayers}\n"
+ " - Supported placeholders: <online_players>, <max_players>\n"
+ " - Putting more than one will cause one to be randomly chosen each refresh")
private final List<MOTD> motds = new ArrayList<>();
@@ -46,7 +46,7 @@ public final class PlayerCountModifier implements Int2IntFunction {
return this.function.apply(actualPlayers);
}
public final @NonNull String input() {
public @NonNull String input() {
return this.input;
}
+1 -5
View File
@@ -1,7 +1,7 @@
plugins {
id("quiet-fabric-loom")
id("minimotd.platform-conventions")
id("com.github.johnrengelman.shadow")
id("quiet-fabric-loom")
}
val shade: Configuration by configurations.creating
@@ -32,10 +32,6 @@ indra {
}
}
loom {
serverOnlyMinecraftJar()
}
tasks {
shadowJar {
configurations = listOf(shade)
@@ -36,7 +36,7 @@ import java.util.Base64;
import java.util.concurrent.CompletableFuture;
import javax.imageio.ImageIO;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.command.v1.CommandRegistrationCallback;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents;
import net.fabricmc.loader.api.FabricLoader;
import net.kyori.adventure.platform.fabric.FabricServerAudiences;
@@ -99,7 +99,7 @@ public final class MiniMOTDFabric implements ModInitializer, MiniMOTDPlatform<St
}
final CommandHandler handler = new CommandHandler(this.miniMOTD);
CommandRegistrationCallback.EVENT.register((dispatcher, $) -> dispatcher.register(
CommandRegistrationCallback.EVENT.register((dispatcher, commandBuildContext, commandSelection) -> dispatcher.register(
literal("minimotd")
.requires(source -> source.hasPermission(4))
.then(literal("reload").executes(new WrappingExecutor(handler::reload)))
+3 -3
View File
@@ -23,8 +23,8 @@
"minimotd-fabric.mixins.json"
],
"depends": {
"fabricloader": ">=0.12.8",
"fabric": ">=0.31.0",
"minecraft": ">=1.18"
"fabricloader": ">=0.14.6",
"fabric": "*",
"minecraft": "1.19.x"
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
group=xyz.jpenilla
version=2.0.6
version=2.0.8
description=Use MiniMessage text formatting in the server list MOTD.
org.gradle.caching=true
+10 -10
View File
@@ -5,8 +5,8 @@ metadata:
plugins:
net.kyori.blossom: 1.3.0
org.spongepowered.gradle.plugin: 2.0.1
net.minecrell.plugin-yml.bungee: &plugin-yml 0.5.1
org.spongepowered.gradle.plugin: 2.0.2
net.minecrell.plugin-yml.bungee: &plugin-yml 0.5.2
net.minecrell.plugin-yml.bukkit: *plugin-yml
xyz.jpenilla.run-paper: 1.0.6
@@ -14,21 +14,21 @@ versions:
indra: 2.1.1
shadow: 7.1.2
testLoggerPlugin: 3.2.0
adventure: 4.10.1
adventurePlatform: 4.1.0
adventurePlatformFabric: 5.2.0
adventure: 4.11.0
adventurePlatform: 4.1.1
adventurePlatformFabric: 5.4.0-SNAPSHOT
configurate: 4.1.2
checkerQual: 3.21.3
checkerQual: 3.22.2
slf4j: 1.7.32
gson: 2.8.0
guava: 21.0
bstats: 2.2.1
bstats: 3.0.0
paperApi: 1.16.5-R0.1-SNAPSHOT
paperlib: 1.0.8-SNAPSHOT
waterfallApi: 1.16-R0.4-SNAPSHOT
fabricApi: 0.47.8+1.18.2
fabricLoader: 0.13.3
fabricMinecraft: 1.18.2
fabricApi: 0.56.0+1.19
fabricLoader: 0.14.8
fabricMinecraft: 1.19
spongeApi7: 7.2.0
velocityApi: 3.1.2-SNAPSHOT
jupiterEngine: 5.8.2
+1 -1
View File
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
+5 -2
View File
@@ -3,7 +3,10 @@ enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") {
mavenContent { snapshotsOnly() }
}
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.spongepowered.org/repository/maven-public/")
maven("https://repo.jpenilla.xyz/snapshots/") {
mavenContent { snapshotsOnly() }
@@ -24,7 +27,7 @@ pluginManagement {
plugins {
id("ca.stellardrift.polyglot-version-catalogs") version "5.0.1"
id("quiet-fabric-loom") version "0.11-SNAPSHOT"
id("quiet-fabric-loom") version "0.12-SNAPSHOT"
}
rootProject.name = "MiniMOTD"