Skip to content

Commit 83e505d

Browse files
committed
Fix compile errors
1 parent 47e520a commit 83e505d

6 files changed

Lines changed: 9 additions & 11 deletions

File tree

build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import groovy.json.JsonSlurper
33
plugins {
44
id 'java'
55
id 'maven-publish'
6-
id 'org.tenne.rest' version '0.4.2'
76
id 'com.github.johnrengelman.shadow' version "8.1.1"
87
}
98

@@ -14,16 +13,16 @@ static URL getWebsite() { return new URL("https://github.com/CyberedCake/CyberAP
1413
static String getDescription() { return "The new and improved CyberAPI!"; }
1514
static String[] getAuthors() { return new String[]{"CyberedCake"}; }
1615
static int getTargetJavaVersion() { return 17; }
17-
static boolean isTestingEnvironment() { return Boolean.FALSE.booleanValue(); }
18-
static boolean isOffline() { return Boolean.FALSE.booleanValue(); }
16+
static boolean isTestingEnvironment() { return false; }
17+
static boolean isOffline() { return false; }
1918

2019

2120

2221

2322

2423
def getLatestTag
2524
try {
26-
if(isOffline()) {
25+
if (isOffline()) {
2726
throw new IllegalStateException("Offline mode set to 'TRUE'")
2827
}
2928
getLatestTag = new JsonSlurper().parse(new URL("https://api.github.com/repos/CyberedCake/CyberAPI/releases/latest")).tag_name

bungee/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
implementation 'net.kyori:adventure-text-minimessage:4.17.0'
2323

2424
// bungeecord and plugin hooks
25-
compileOnly 'net.md-5:bungeecord-api:1.21-R0.1-SNAPSHOT'
25+
compileOnly 'net.md-5:bungeecord-api:1.21-R0.4-SNAPSHOT'
2626
compileOnly 'net.luckperms:api:5.4'
2727
// compileOnly 'dev.simplix:protocolize-api:2.2.6'
2828

common/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repositories {
1818

1919
dependencies {
2020
// servers
21-
compileOnly 'net.md-5:bungeecord-api:1.21-R0.1-SNAPSHOT'
21+
compileOnly 'net.md-5:bungeecord-api:1.21-R0.4-SNAPSHOT'
2222
compileOnly 'org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT'
2323

2424
// adventure API (https://docs.adventure.kyori.net/)
@@ -31,7 +31,7 @@ dependencies {
3131
compileOnly 'org.apache.logging.log4j:log4j-core:2.23.1'
3232
compileOnly 'net.luckperms:api:5.4'
3333

34-
implementation 'org.jetbrains:annotations:24.1.0'
34+
implementation("org.jetbrains:annotations:26.+")
3535
implementation 'com.google.code.gson:gson:2.11.0'
3636
}
3737

common/src/main/java/net/cybercake/cyberapi/common/basic/converters/romannumerals/NumeralConverter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import net.cybercake.cyberapi.common.basic.Pair;
55
import net.cybercake.cyberapi.common.basic.Sort;
66
import net.cybercake.cyberapi.common.basic.converters.GenericNumeralConvert;
7-
import org.checkerframework.common.value.qual.IntRange;
87
import org.jetbrains.annotations.ApiStatus;
98

109
import java.util.List;
@@ -152,7 +151,7 @@ public static Optional<String> toRomanNumeralOptional(int digits) {
152151
* @see NumeralConverter#toRomanNumeralOptional(int)
153152
* @see NumeralConverter
154153
*/
155-
public static String toRomanNumeralThrows(@IntRange(from = 1, to = 3999) int digits) {
154+
public static String toRomanNumeralThrows(int digits) {
156155
return GenericNumeralConvert.ROMAN_NUMERALS.to(digits);
157156
}
158157

common/src/main/java/net/cybercake/cyberapi/common/player/LuckPermsData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import net.luckperms.api.node.types.SuffixNode;
1818
import net.luckperms.api.util.Tristate;
1919
import org.bukkit.entity.Player;
20+
import org.jetbrains.annotations.Nullable;
2021

21-
import javax.annotation.Nullable;
2222
import java.util.Objects;
2323
import java.util.function.Predicate;
2424

spigot/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies {
2424
implementation 'net.kyori:adventure-platform-bukkit:4.3.3'
2525

2626
// spigot and plugin hooks
27-
compileOnly 'com.comphenix.protocol:ProtocolLib:5.1.0'
27+
compileOnly 'net.dmulloy2:ProtocolLib:5.4.0'
2828
compileOnly 'org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT'
2929
compileOnly 'net.luckperms:api:5.4'
3030
compileOnly 'me.clip:placeholderapi:2.11.5'

0 commit comments

Comments
 (0)