From b7fa126d9a529cb5901a8dc1a0abcf9686bb17a9 Mon Sep 17 00:00:00 2001 From: Allan Fernando Date: Tue, 17 Oct 2023 21:21:06 -0300 Subject: [PATCH] !online command now shows ping Fix fabricloader version to work with quilt --- .../armelin/dischatbridge/listeners/DiscordEventListener.java | 2 +- curse_upload | 4 ++-- fabric/src/main/resources/fabric.mod.json | 2 +- gradle.properties | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/src/main/java/one/armelin/dischatbridge/listeners/DiscordEventListener.java b/common/src/main/java/one/armelin/dischatbridge/listeners/DiscordEventListener.java index b8f2ba5..a20f039 100644 --- a/common/src/main/java/one/armelin/dischatbridge/listeners/DiscordEventListener.java +++ b/common/src/main/java/one/armelin/dischatbridge/listeners/DiscordEventListener.java @@ -47,7 +47,7 @@ public void onMessageReceived(@NotNull MessageReceivedEvent e) { "```\n=============== Online Players (" + onlinePlayers.size() + ") ===============\n" ); for (ServerPlayer player : onlinePlayers) { - playerList.append("\n").append(player.getScoreboardName()); + playerList.append("\n").append(player.getScoreboardName()).append("\t").append(player.latency).append("ms"); } playerList.append("```"); e.getChannel().sendMessage(playerList.toString()).queue(); diff --git a/curse_upload b/curse_upload index 39b7fad..ef338d4 100644 --- a/curse_upload +++ b/curse_upload @@ -10,7 +10,7 @@ cd ../../../ FILE_LOCATION=`echo "./forge/build/libs/$FILE_NAME"` #See https://github.com/curseforge/api for how to retrieve game version numbers -JSON=`printf '{"changelog": "%s", "gameVersions": [7498,10150,9990], "releaseType": "release"}' "$CHANGE_LOG"` +JSON=`printf '{"changelog": "%s", "gameVersions": [9639,7498,10150,9990], "releaseType": "release"}' "$CHANGE_LOG"` echo "Uploading $FILE_NAME to Curse Forge..." echo @@ -26,7 +26,7 @@ cd ../../../ FILE_LOCATION=`echo "./fabric/build/libs/$FILE_NAME"` #See https://github.com/curseforge/api for how to retrieve game version numbers -JSON=`printf '{"changelog": "%s", "gameVersions": [7499,9990], "releaseType": "release"}' "$CHANGE_LOG"` +JSON=`printf '{"changelog": "%s", "gameVersions": [9639,7499,9153,9990], "releaseType": "release"}' "$CHANGE_LOG"` echo "Uploading $FILE_NAME to Curse Forge..." echo diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json index 93c88dc..2eddbf7 100644 --- a/fabric/src/main/resources/fabric.mod.json +++ b/fabric/src/main/resources/fabric.mod.json @@ -29,7 +29,7 @@ "dischatbridge.mixins.json" ], "depends": { - "fabricloader": ">=0.14.23", + "fabricloader": ">=0.14.22", "minecraft": ">=1.20.1" } } diff --git a/gradle.properties b/gradle.properties index 5ab6552..cf5fdf9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx4G minecraft_version=1.20.1 archives_base_name=DisChatBridge -mod_version=2.1.0 +mod_version=2.1.1 maven_group=one.armelin.dischatbridge architectury_version=9.1.12