File tree Expand file tree Collapse file tree
src/main/java/net/cybercake/cyberapi/common
basic/converters/romannumerals Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import groovy.json.JsonSlurper
33plugins {
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
1413static String getDescription () { return " The new and improved CyberAPI!" ; }
1514static String [] getAuthors () { return new String []{" CyberedCake" }; }
1615static 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
2423def getLatestTag
2524try {
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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ repositories {
1818
1919dependencies {
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
Original file line number Diff line number Diff line change 44import net .cybercake .cyberapi .common .basic .Pair ;
55import net .cybercake .cyberapi .common .basic .Sort ;
66import net .cybercake .cyberapi .common .basic .converters .GenericNumeralConvert ;
7- import org .checkerframework .common .value .qual .IntRange ;
87import org .jetbrains .annotations .ApiStatus ;
98
109import 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
Original file line number Diff line number Diff line change 1717import net .luckperms .api .node .types .SuffixNode ;
1818import net .luckperms .api .util .Tristate ;
1919import org .bukkit .entity .Player ;
20+ import org .jetbrains .annotations .Nullable ;
2021
21- import javax .annotation .Nullable ;
2222import java .util .Objects ;
2323import java .util .function .Predicate ;
2424
Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments