Skip to content

Commit

Permalink
Update to Minecraft 1.19
Browse files Browse the repository at this point in the history
Which really doesn't mean anything special, we've just bumped dependencies.
  • Loading branch information
Puremin0rez committed Jul 2, 2022
1 parent b86b931 commit 8fa9929
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocatio

plugins {
id("java")
id("com.github.johnrengelman.shadow") version "7.1.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
}

group = "net.shotbow"
version = "1.18"
version = "1.19"

java {
toolchain {
Expand All @@ -22,8 +22,8 @@ repositories {

dependencies {
compileOnly(group = "org.spigotmc", name = "spigot-api", version = "1.13-R0.1-SNAPSHOT")
implementation(group = "net.kyori", name = "adventure-platform-bukkit", version = "4.0.1")
implementation(group = "net.kyori", name = "adventure-text-minimessage", version = "4.1.0-SNAPSHOT")
implementation(group = "net.kyori", name = "adventure-platform-bukkit", version = "4.1.1")
implementation(group = "net.kyori", name = "adventure-text-minimessage", version = "4.11.0")
}

defaultTasks("clean", "build")
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
10 changes: 5 additions & 5 deletions gradlew
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

#
# Copyright © 2015-2021 the original authors.
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,10 +32,10 @@
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class FishInfoFactory {
private final Random random = new Random();
private final InterestingConfig config;

private final MiniMessage miniMessage = MiniMessage.get();
private final MiniMessage miniMessage = MiniMessage.miniMessage();
private final LegacyComponentSerializer legacyHexSerializer = LegacyComponentSerializer.builder().hexColors().useUnusualXRepeatedCharacterHexFormat().build();

public FishInfoFactory(InterestingConfig config) {
Expand Down Expand Up @@ -66,7 +66,7 @@ public FishInfo makeNewFishInfo() {
}

public String parseColors(String text) {
return legacyHexSerializer.serialize(miniMessage.parse(text.replace('&', ChatColor.COLOR_CHAR)));
return legacyHexSerializer.serialize(miniMessage.deserialize(text.replace('&', ChatColor.COLOR_CHAR)));
}

}

0 comments on commit 8fa9929

Please sign in to comment.