Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.28.0 #1629

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open

v1.28.0 #1629

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
72f0f7d
bump version to 1.27.1-SNAPSHOT
Scarsz Jan 5, 2024
47ee7d4
switch to using crafthead.net
granny Jan 11, 2024
0b26e80
remove reference to crafatar
granny Jan 11, 2024
b172fde
Switch to a more stable avatar service (#1624)
Scarsz Jan 11, 2024
9812dc6
Don't debug-log ignoring own webhooks
J-295 Jan 16, 2024
88e0d6a
also fix missing space
J-295 Jan 16, 2024
07bbd90
Don't debug-log ignoring own webhooks (#1628)
Scarsz Jan 16, 2024
37b105f
ugly code to continue getting advancement as string, fixes #1601 again
granny Jan 18, 2024
e9c99bf
fix advancement title not getting cached
granny Jan 18, 2024
08e99e9
Load accounts from AOF backend before renaming file during JDBC import
Scarsz Mar 9, 2024
2e37767
change check for folia
granny Mar 9, 2024
9d71fe1
- use NMS for doesAnnounceToChat detection
granny Mar 9, 2024
6a9706e
bump adventure version
granny Mar 9, 2024
507ba5f
skip update checker if comparing against a local hash
granny Mar 9, 2024
5736182
ignore channel id's in Channels that are empty quotes
granny Mar 9, 2024
f607d9b
fix NPE when getting text channel
granny Mar 10, 2024
95a86b9
[ci-skip] remove static imports
granny Mar 10, 2024
43e00e3
fix formatting issue with reply message
granny Mar 10, 2024
c9b1965
vankka nitpick
granny Mar 10, 2024
2e4eff9
Use overlay in AvatarURL option (#1641)
J-295 Mar 14, 2024
3c98388
switch to using crafthead.net in offline mode detection
granny Mar 13, 2024
338f384
Implant web proxy support (#1556)
ItzMiracleOwO Mar 14, 2024
8cbb6e9
Improve Chinese translation (#1647)
SamLam140330 Mar 14, 2024
41df62f
Add extra debug information (#1645)
thewilloftheshadow Mar 14, 2024
a26cc43
Reorder roles in config (#1636)
J-295 Mar 14, 2024
12b4ada
Norwegian translation added (#1602)
RemixedX Mar 14, 2024
db167af
Apply Discord regexes to message addon URLs (#1658)
J-295 Mar 29, 2024
748e4df
fix advancements on some 1.17.x-1.18.x paper versions
granny Apr 11, 2024
b45e8e5
feat: add boost status placeholder
thewilloftheshadow Apr 11, 2024
2a69064
Add boost status placeholder (#1666)
Scarsz Apr 11, 2024
08811db
update the channel test for user-inputted channel id's that start wit…
granny Apr 13, 2024
052e66c
bump version to 1.28.0-SNAPSHOT
granny Apr 13, 2024
ebb4048
add missing proxy options to danish config
granny Apr 13, 2024
c3373f1
update dynamicproxy to snapshot version
granny Apr 13, 2024
3aa252d
[ci skip] remove trailing whitespace
granny Apr 13, 2024
b225174
missed this
granny Apr 13, 2024
4855e58
add error handler to delayed message deletion
granny Apr 13, 2024
fa481b0
Update en.yml
J-295 Apr 13, 2024
6cc37db
temporarily exclude annotations from being shaded in, fixes #1627
granny Apr 14, 2024
d93d654
[ci skip] be consistent with annotations
granny Apr 14, 2024
cb0fd61
do for other configs
J-295 Apr 19, 2024
fae60c3
omit excessive github api requests
granny Apr 20, 2024
0926d22
error for crafatar
J-295 Apr 23, 2024
d90b808
remove no longer needed stuff
J-295 Apr 23, 2024
b897f88
combine first two error lines
J-295 Apr 23, 2024
cf9ef24
Update src/main/java/github/scarsz/discordsrv/DiscordSRV.java
Scarsz Apr 24, 2024
e1f38e9
AvatarUrl changes (#1668)
Scarsz Apr 24, 2024
00600cd
Update fr.yml
J-295 Apr 29, 2024
ed741e3
Incorrect config option name in comment (#1671)
Scarsz Apr 29, 2024
57b46c6
[ci skip] bump gradle wrapper to 8.5
granny May 3, 2024
c68b722
NPE check on advancementdisplay
granny May 3, 2024
0c967b3
[ci skip] bump minecraft version
granny May 6, 2024
c7bc096
[ci skip] bump jdk version in workflow to 21
granny May 6, 2024
e3521e7
[ci skip] bump gradle dependencies
granny May 6, 2024
037e366
work with mojang mappings
granny May 6, 2024
43e1da3
use snapshot builds of jdaappender, fixes #1634
granny May 13, 2024
b1b54b5
write aof to tmp file during saves
Scarsz May 15, 2024
238cf44
Fix a grammatical error in french translation (#1674)
PtitLegume May 15, 2024
a3cb363
fix placeholder in ukrainian translation
granny May 15, 2024
2e173a9
fix placeholder in ukrainian translations, electric boogaloo
granny May 15, 2024
1dff58d
remove comment from aof file, closes #1637
granny May 15, 2024
3c65b78
get rid of deprecation inspection in intellij
granny May 15, 2024
cfef295
Add Proxy settings to SENSITIVE_OPTIONS (#1677)
J-295 May 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/buildprs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3.5.2
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3.11.0
with:
distribution: 'temurin'
java-version: 17
java-version: 21
cache: 'gradle'
- name: Build
run: ./gradlew build --no-daemon
4 changes: 2 additions & 2 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3.5.2
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3.11.0
with:
distribution: 'temurin'
java-version: 17
java-version: 21
cache: 'gradle'
- name: Set version to release
run: ./gradlew --no-daemon unSnapshotVersion
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3.5.2
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3.11.0
with:
distribution: 'temurin'
java-version: 17
java-version: 21
cache: 'gradle'
- name: Build
run: ./gradlew build --no-daemon
Expand Down
57 changes: 30 additions & 27 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ plugins {
idea
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "7.1.2"
id("io.github.goooler.shadow") version "8.1.7"
id("org.cadixdev.licenser") version "0.6.1"
id("net.kyori.indra.git") version "2.1.1"
id("net.researchgate.release") version "3.0.2"
id("xyz.jpenilla.run-paper") version "2.2.0"
id("xyz.jpenilla.run-paper") version "2.3.0"
}

group = "com.discordsrv"
Expand All @@ -22,7 +22,7 @@ java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion

disableAutoTargetJvm() // required because paper-api uses Java 17 (w/ gradle metadata)
disableAutoTargetJvm() // required because paper-api uses Java 21 (w/ gradle metadata)
}

license {
Expand Down Expand Up @@ -142,6 +142,10 @@ tasks {
exclude("META-INF/*.RSA")
exclude("META-INF/maven/**")
exclude("META-INF/proguard/**")

// TODO: temporarily exclude rogue annotations from jdaappender
exclude("org/jetbrains/annotations/**")
exclude("org/intellij/lang/annotations/**")
}
}

Expand Down Expand Up @@ -179,6 +183,7 @@ repositories {
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots")
maven("https://repo.granny.dev/snapshots/") // TODO: remove once JDAAppender is properly updated in scarsz' nexus
maven("https://nexus.scarsz.me/content/groups/public/")
}

Expand All @@ -187,21 +192,21 @@ dependencies {
compileOnly("io.papermc.paper:paper-api:${minecraftVersion}-R0.1-SNAPSHOT") {
exclude("commons-lang") // Exclude lang in favor of our own lang3
}

// JDA
api("net.dv8tion:JDA:4.4.0_352.fix-5") {
exclude(module = "opus-java") // we don't use voice features
}

// Config
api("github.scarsz:configuralize:1.3.2") {
// already provided by bukkit
exclude(module = "json-simple")
exclude(module = "snakeyaml")
}

// Logging
implementation("me.scarsz.jdaappender:jda4:1.2.0")
implementation("me.scarsz.jdaappender:jda4:1.2.0-SNAPSHOT")
implementation("org.slf4j:slf4j-jdk14:1.7.36")
implementation("org.slf4j:jcl-over-slf4j:1.7.36")
// MC < 1.12 = 2.0-beta9
Expand All @@ -211,22 +216,22 @@ dependencies {
compileOnly("org.apache.logging.log4j:log4j-core:2.0-beta9")

// adventure, adventure-platform, MCDiscordReserializer
val adventureVersion = "4.14.0"
val adventureVersion = "4.16.0"
api("net.kyori:adventure-api:${adventureVersion}")
api("net.kyori:adventure-text-minimessage:${adventureVersion}")
api("net.kyori:adventure-text-serializer-legacy:${adventureVersion}")
api("net.kyori:adventure-text-serializer-plain:${adventureVersion}")
api("net.kyori:adventure-text-serializer-gson:${adventureVersion}")
implementation("net.kyori:adventure-platform-bukkit:4.3.1")
implementation("net.kyori:adventure-platform-bukkit:4.3.2")
api("dev.vankka:mcdiscordreserializer:4.3.0")

// Annotations
compileOnlyApi("org.jetbrains:annotations:23.0.0")

// Lombok
compileOnly("org.projectlombok:lombok:1.18.24")
annotationProcessor("org.projectlombok:lombok:1.18.24")
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")

// Apache Commons, guava
implementation("commons-io:commons-io:2.11.0")
implementation("commons-collections:commons-collections:3.2.2")
Expand All @@ -235,15 +240,13 @@ dependencies {
implementation("com.google.guava:guava:31.1-jre")

// DynamicProxy
runtimeOnly("dev.vankka:dynamicproxy:1.0.0:runtime") {
exclude(module = "javaparser-symbol-solver-core")
}
compileOnly("dev.vankka:dynamicproxy:1.0.0")
annotationProcessor("dev.vankka:dynamicproxy:1.0.0")

runtimeOnly("dev.vankka:dynamicproxy-runtime:1.0.1-SNAPSHOT")
compileOnly("dev.vankka:dynamicproxy:1.0.1-SNAPSHOT")
annotationProcessor("dev.vankka:dynamicproxy:1.0.1-SNAPSHOT")

// MySQL
compileOnly("mysql:mysql-connector-java:8.0.28") // NEWER than CraftBukkit's

// Misc libraries
api("com.vdurmont:emoji-java:5.1.1")
implementation("org.bstats:bstats-bukkit:2.2.1")
Expand All @@ -260,7 +263,7 @@ dependencies {
///
/// Plugin Hooks
///

// chat hooks
compileOnly("ru.mrbrikster:chatty-api:2.18.2")
compileOnly("br.com.finalcraft:fancychat:1.0.2")
Expand All @@ -271,22 +274,22 @@ dependencies {
compileOnly("com.palmergames.bukkit:TownyChat:0.45")
compileOnly("mineverse.aust1n46:venturechat:2.20.1")
compileOnly("com.comphenix.protocol:ProtocolLib:4.5.0")

// vanish hooks
compileOnly("de.myzelyam:SuperVanish:6.2.0")

// permissions hooks
compileOnly("net.luckperms:api:5.4")

// world hooks
compileOnly("com.onarandombox.MultiverseCore:Multiverse-Core:2.4")

// misc hooks
compileOnly("org.dynmap:dynmap-api:2.0")
compileOnly("com.gmail.nossr50:mcmmo:1.5.07")
compileOnly("net.milkbowl.vault:VaultAPI:1.7")
compileOnly("me.clip:placeholderapi:2.10.7")
compileOnly("me.clip:placeholderapi:2.10.9")

// debug hooks
compileOnly("ch.njol:skript:2.5")

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version=1.27.0
minecraftVersion=1.20.2
version=1.28.0-SNAPSHOT
minecraftVersion=1.20.6
repoPassword=

org.gradle.jvmargs=-Dfile.encoding=UTF-8
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
8 changes: 7 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
42 changes: 29 additions & 13 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand All @@ -80,13 +80,11 @@ do
esac
done

APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

APP_NAME="Gradle"
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down Expand Up @@ -116,6 +114,7 @@ esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar


# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
Expand All @@ -132,22 +131,29 @@ 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.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down Expand Up @@ -192,18 +198,28 @@ if "$cygwin" || "$msys" ; then
done
fi

# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.

set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
Expand Down
16 changes: 10 additions & 6 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
Expand All @@ -25,7 +25,8 @@
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand All @@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Expand Down Expand Up @@ -69,18 +70,21 @@ goto fail

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal
Expand Down