File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
src/main/java/net/elytrium/velocitytools Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ dependencies() {
4444
4545 compileOnly(" com.github.spotbugs:spotbugs-annotations:4.7.3" )
4646
47- compileOnly(" com.velocitypowered:velocity-api:3.3 .0-SNAPSHOT" )
48- annotationProcessor(" com.velocitypowered:velocity-api:3.3 .0-SNAPSHOT" )
49- compileOnly(" com.velocitypowered:velocity-proxy:3.3 .0-SNAPSHOT" ) // From Elytrium Repo.
47+ compileOnly(" com.velocitypowered:velocity-api:3.4 .0-SNAPSHOT" )
48+ annotationProcessor(" com.velocitypowered:velocity-api:3.4 .0-SNAPSHOT" )
49+ compileOnly(" com.velocitypowered:velocity-proxy:3.4 .0-SNAPSHOT" ) // From Elytrium Repo.
5050
5151 // Needs for some velocity methods.
5252 compileOnly(" io.netty:netty-transport:4.1.101.Final" )
Original file line number Diff line number Diff line change 2828import com .velocitypowered .proxy .util .ratelimit .Ratelimiters ;
2929import edu .umd .cs .findbugs .annotations .SuppressFBWarnings ;
3030import java .io .IOException ;
31+ import java .net .InetAddress ;
3132import java .nio .file .Files ;
3233import java .nio .file .Path ;
3334import java .util .List ;
@@ -69,7 +70,7 @@ public class VelocityTools {
6970 @ MonotonicNonNull
7071 private static Serializer SERIALIZER ;
7172 @ MonotonicNonNull
72- private static Ratelimiter RATELIMITER ;
73+ private static Ratelimiter < InetAddress > RATELIMITER ;
7374
7475 private final ProxyServer server ;
7576 private final Path dataDirectory ;
@@ -198,7 +199,7 @@ private static void setSerializer(Serializer serializer) {
198199 SERIALIZER = serializer ;
199200 }
200201
201- private static void setRatelimiter (Ratelimiter ratelimiter ) {
202+ private static void setRatelimiter (Ratelimiter < InetAddress > ratelimiter ) {
202203 RATELIMITER = ratelimiter ;
203204 }
204205
@@ -210,7 +211,7 @@ public static Serializer getSerializer() {
210211 return SERIALIZER ;
211212 }
212213
213- public static Ratelimiter getRatelimiter () {
214+ public static Ratelimiter < InetAddress > getRatelimiter () {
214215 return RATELIMITER ;
215216 }
216217}
You can’t perform that action at this time.
0 commit comments