mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-09 19:48:37 +01:00
parent
94cfd7fb1d
commit
a901f1fc31
@ -36,9 +36,9 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("us.myles:viaversion:3.2.1") { isTransitive = false }
|
implementation("us.myles:viaversion:3.3.0-21w07a") { isTransitive = false }
|
||||||
implementation("nl.matsv:viabackwards-all:3.2.0") { isTransitive = false }
|
implementation("nl.matsv:viabackwards-all:3.3.0-21w06a") { isTransitive = false }
|
||||||
implementation("de.gerrygames:viarewind-all:1.5.2") { isTransitive = false }
|
implementation("de.gerrygames:viarewind-all:1.5.4-SNAPSHOT") { isTransitive = false }
|
||||||
implementation("io.netty:netty-all:4.1.58.Final")
|
implementation("io.netty:netty-all:4.1.58.Final")
|
||||||
implementation("org.yaml:snakeyaml:1.26")
|
implementation("org.yaml:snakeyaml:1.26")
|
||||||
implementation("com.google.guava:guava:30.0-jre")
|
implementation("com.google.guava:guava:30.0-jre")
|
||||||
|
@ -11,7 +11,7 @@ data class WebClient(
|
|||||||
val ws: WebSocketServerSession,
|
val ws: WebSocketServerSession,
|
||||||
val state: WebState,
|
val state: WebState,
|
||||||
) {
|
) {
|
||||||
val listenedIds: MutableSet<UUID> = mutableSetOf()
|
val listenedIds: MutableSet<UUID> = Collections.newSetFromMap(ConcurrentHashMap())
|
||||||
val rateLimiter = RateLimiter.create(VIAaaSConfig.rateLimitWs)
|
val rateLimiter = RateLimiter.create(VIAaaSConfig.rateLimitWs)
|
||||||
|
|
||||||
fun listenId(uuid: UUID): Boolean {
|
fun listenId(uuid: UUID): Boolean {
|
||||||
@ -29,4 +29,4 @@ data class WebClient(
|
|||||||
}
|
}
|
||||||
listenedIds.remove(uuid)
|
listenedIds.remove(uuid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user