Skip to content

Commit 836cd28

Browse files
authored
2.2.0-SNAPSHOT (#36)
* Set version to 2.2.0-SNAPSHOT * Update paper-api to 1.21.4-R0.1-SNAPSHOT * Use de.md5lukas:anvilgui * Update Shadow to 8.3.5 * Update VanishChecker to 1.0.4 * Update CommandAPI to 9.7.0 * Update Gradle to 8.11.1 * Fix issues with annotations * Remove deprecated method * Update README.md
1 parent 5dec9f1 commit 836cd28

File tree

10 files changed

+24
-31
lines changed

10 files changed

+24
-31
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Starting with Version 2.0.4-SNAPSHOT, versioning is handled like so:
2626
<dependency>
2727
<groupId>uk.firedev</groupId>
2828
<artifactId>DaisyLib</artifactId>
29-
<version>2.1.0-SNAPSHOT</version>
29+
<version>2.2.0-SNAPSHOT</version>
3030
<scope>provided</scope>
3131
</dependency>
3232
</dependencies>
@@ -39,6 +39,6 @@ repositories {
3939
}
4040

4141
dependencies {
42-
compileOnly("uk.firedev:DaisyLib:2.1.0-SNAPSHOT")
42+
compileOnly("uk.firedev:DaisyLib:2.2.0-SNAPSHOT")
4343
}
4444
```

build.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ repositories {
1919
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
2020
maven("https://repo.minebench.de/")
2121
maven("https://repo.codemc.io/repository/maven-snapshots/")
22+
maven("https://repo.md5lukas.de/public")
2223
}
2324

2425
dependencies {
@@ -36,7 +37,7 @@ dependencies {
3637
}
3738

3839
group = "uk.firedev"
39-
version = "2.1.0-SNAPSHOT"
40+
version = "2.2.0-SNAPSHOT"
4041
description = "A collection of classes for easier use of Paper's API"
4142
java.sourceCompatibility = JavaVersion.VERSION_21
4243

gradle/wrapper/gradle-wrapper.jar

-9 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.

gradlew.bat

+10-10
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343
%JAVA_EXE% -version >NUL 2>&1
4444
if %ERRORLEVEL% equ 0 goto execute
4545

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5151

5252
goto fail
5353

@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757

5858
if exist "%JAVA_EXE%" goto execute
5959

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6565

6666
goto fail
6767

settings.gradle.kts

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ rootProject.name = "DaisyLib"
33
dependencyResolutionManagement {
44
versionCatalogs {
55
create("libs") {
6-
library("paper-api", "io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT")
6+
library("paper-api", "io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
77

88
// Requires the remapping shenanigans to work - Compiled against an old Spigot version.
99
library("inventorygui", "de.themoep:inventorygui:1.6.4-SNAPSHOT")
10-
// Does not support MojMap
11-
library("anvilgui", "net.wesjd:anvilgui:1.10.3-SNAPSHOT")
1210

1311
library("universalscheduler", "com.github.Anon8281:UniversalScheduler:0.1.6")
1412
library("placeholderapi", "me.clip:placeholderapi:2.11.6")
1513
library("vault", "com.github.MilkBowl:VaultAPI:1.7.1")
16-
library("commandapi", "dev.jorel:commandapi-bukkit-shade:9.6.1")
17-
library("vanishchecker", "uk.firedev:VanishChecker:1.0.1")
14+
library("commandapi", "dev.jorel:commandapi-bukkit-shade:9.7.0")
15+
library("vanishchecker", "uk.firedev:VanishChecker:1.0.4")
1816
library("miniplaceholders", "io.github.miniplaceholders:miniplaceholders-api:2.2.3")
1917
library("boostedyaml", "dev.dejvokep:boosted-yaml:1.3.7")
18+
// TODO update this to 2.0.1 after my PR is merged
19+
library("anvilgui", "de.md5lukas:anvilgui:2.0.0")
2020

21-
plugin("shadow", "com.gradleup.shadow").version("8.3.3")
21+
plugin("shadow", "com.gradleup.shadow").version("8.3.5")
2222
//plugin("paperweight", "io.papermc.paperweight.userdev").version("1.7.1")
2323
plugin("plugin-yml", "net.minecrell.plugin-yml.paper").version("0.6.0")
2424
}

src/main/java/uk/firedev/daisylib/message/string/StringMessage.java

-8
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,6 @@ public StringMessage parsePlaceholderAPI(@Nullable OfflinePlayer player) {
156156
return this;
157157
}
158158

159-
/**
160-
* @deprecated Use {@link #parsePlaceholderAPI(OfflinePlayer)} instead. This method will be removed for version 2.2.0-SNAPSHOT.
161-
*/
162-
@Deprecated(forRemoval = true)
163-
public StringMessage parsePAPI(@Nullable OfflinePlayer player) {
164-
return parsePlaceholderAPI(player);
165-
}
166-
167159
public StringMessage addPrefix(@NotNull String prefix) {
168160
this.message = prefix + this.message;
169161
return this;

src/main/java/uk/firedev/daisylib/requirement/RequirementManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public List<RequirementType> getRegisteredRequirementTypes() {
9191
* @param checkLogic The code to run when checking the requirements. The List<String> will be the provided values to check against.
9292
* @return Whether this type was registered or not
9393
*/
94-
public boolean registerRequirement(@NotNull String identifier, @NotNull String author, @NotNull Plugin plugin, @NotNull BiFunction<@NotNull RequirementData, @NotNull List<String>, @NotNull Boolean> checkLogic) {
94+
public boolean registerRequirement(@NotNull String identifier, @NotNull String author, @NotNull Plugin plugin, @NotNull BiFunction<RequirementData, List<String>, Boolean> checkLogic) {
9595

9696
return registerRequirement(new RequirementType() {
9797

src/main/java/uk/firedev/daisylib/reward/RewardManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public List<RewardType> getRegisteredRewardTypes() {
9292
* @param checkLogic The code to run when checking the reward. The String will be the provided value to check against.
9393
* @return Whether this type was registered or not
9494
*/
95-
public boolean registerRewardType(@NotNull String identifier, @NotNull String author, @NotNull Plugin plugin, @NotNull BiConsumer<@NotNull Player, @NotNull String> checkLogic) {
95+
public boolean registerRewardType(@NotNull String identifier, @NotNull String author, @NotNull Plugin plugin, @NotNull BiConsumer<Player, String> checkLogic) {
9696

9797
return registerRewardType(new RewardType() {
9898
@Override

0 commit comments

Comments
 (0)