Skip to content

Commit 9773b57

Browse files
Bump org.lushplugins:ChatColorHandler from 5.1.6 to 6.0.4 (#68)
* Bump org.lushplugins:ChatColorHandler from 5.1.6 to 6.0.4 Bumps org.lushplugins:ChatColorHandler from 5.1.6 to 6.0.4. --- updated-dependencies: - dependency-name: org.lushplugins:ChatColorHandler dependency-version: 6.0.4 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Updated ChatColorHandler --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: OakLoaf <oak@beaconstudios.org>
1 parent f477b49 commit 9773b57

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

api/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ plugins {
66
dependencies {
77
compileOnly("org.spigotmc:spigot-api:26.1-R0.1-SNAPSHOT")
88

9-
implementation("org.lushplugins:ChatColorHandler:5.1.6")
9+
implementation("org.lushplugins.chatcolorhandler:paper:8.1.0")
1010

1111
compileOnlyApi("org.jetbrains:annotations:26.1.0")
1212
}
1313

1414
java {
15-
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
15+
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
1616

1717
withSourcesJar()
1818
}

api/src/main/java/org/lushplugins/pluginupdater/api/listener/NotificationHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.bukkit.event.EventHandler;
66
import org.bukkit.event.Listener;
77
import org.bukkit.event.player.PlayerJoinEvent;
8-
import org.lushplugins.chatcolorhandler.ChatColorHandler;
8+
import org.lushplugins.chatcolorhandler.paper.PaperColor;
99
import org.lushplugins.pluginupdater.api.updater.PluginData;
1010
import org.lushplugins.pluginupdater.api.updater.Updater;
1111

@@ -28,7 +28,7 @@ public void onPlayerJoin(PlayerJoinEvent event) {
2828
if (notificationPermission == null || player.hasPermission(notificationPermission)) {
2929
PluginData pluginData = updater.getPluginData();
3030
if (pluginData.isUpdateAvailable() && !pluginData.isAlreadyDownloaded()) {
31-
Bukkit.getScheduler().runTaskLaterAsynchronously(updater.getPlugin(), () -> ChatColorHandler.sendMessage(player, notificationMessage
31+
Bukkit.getScheduler().runTaskLaterAsynchronously(updater.getPlugin(), () -> PaperColor.handler().sendMessage(player, notificationMessage
3232
.replace("%plugin%", pluginData.getPluginName())
3333
.replace("%current_version%", pluginData.getCurrentVersion())
3434
.replace("%latest_version%", pluginData.getLatestVersion())

api/src/main/java/org/lushplugins/pluginupdater/api/version/VersionChecker.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import java.io.*;
1313
import java.net.HttpURLConnection;
14+
import java.net.URI;
1415
import java.net.URL;
1516
import java.nio.channels.Channels;
1617
import java.nio.channels.ReadableByteChannel;
@@ -54,7 +55,7 @@ default boolean download(PluginData pluginData, PlatformData platformData) throw
5455
return false;
5556
}
5657

57-
URL url = new URL(downloadUrl);
58+
URL url = URI.create(downloadUrl).toURL();
5859
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
5960
connection.addRequestProperty("User-Agent", "PluginUpdater/" + UpdaterConstants.VERSION);
6061
connection.setInstanceFollowRedirects(true);

0 commit comments

Comments
 (0)