mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Made it build
This commit is contained in:
parent
9f32ba81b1
commit
63523d712b
7 changed files with 30 additions and 9 deletions
|
@ -72,7 +72,7 @@ public final class ConnectionRequestEvent implements Event, Cancellable {
|
|||
* @return the cancel status of this event
|
||||
*/
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
public boolean cancelled() {
|
||||
return cancelled;
|
||||
}
|
||||
|
||||
|
@ -82,6 +82,30 @@ public final class ConnectionRequestEvent implements Event, Cancellable {
|
|||
* @param cancelled the cancel status of this event.
|
||||
*/
|
||||
@Override
|
||||
public void cancelled(boolean cancelled) {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
/**
|
||||
* The cancel status of this event. If this event is cancelled, the connection will be rejected.
|
||||
*
|
||||
* @return the cancel status of this event
|
||||
* @deprecated use {@link #cancelled()} instead
|
||||
*/
|
||||
@Override
|
||||
@Deprecated(forRemoval = true)
|
||||
public boolean isCancelled() {
|
||||
return cancelled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the cancel status of this event. If this event is canceled, the connection will be rejected.
|
||||
*
|
||||
* @param cancelled the cancel status of this event.
|
||||
* @deprecated use {@link #cancelled(boolean)} instead
|
||||
*/
|
||||
@Override
|
||||
@Deprecated(forRemoval = true)
|
||||
public void setCancelled(boolean cancelled) {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
|
|
@ -36,7 +36,6 @@ dependencies {
|
|||
|
||||
// Let's shade in our own api/common module
|
||||
shadow(projects.api) { isTransitive = false }
|
||||
shadow(projects.common) { isTransitive = false }
|
||||
|
||||
// Permissions
|
||||
modImplementation(libs.fabric.permissions)
|
||||
|
|
|
@ -31,7 +31,6 @@ dependencies {
|
|||
|
||||
// Let's shade in our own api
|
||||
shadow(projects.api) { isTransitive = false }
|
||||
shadow(projects.common) { isTransitive = false }
|
||||
|
||||
// Include all transitive deps of core via JiJ
|
||||
includeTransitive(projects.core)
|
||||
|
|
|
@ -115,7 +115,7 @@ dependencies {
|
|||
}
|
||||
|
||||
repositories {
|
||||
// mavenLocal()
|
||||
mavenLocal()
|
||||
maven("https://repo.opencollab.dev/maven-releases/")
|
||||
maven("https://repo.opencollab.dev/maven-snapshots/")
|
||||
maven("https://jitpack.io")
|
||||
|
|
|
@ -275,7 +275,7 @@ public final class GeyserServer {
|
|||
this.proxiedAddresses != null ? this.proxiedAddresses.get(inetSocketAddress) : null
|
||||
);
|
||||
geyser.eventBus().fire(requestEvent);
|
||||
if (requestEvent.isCancelled()) {
|
||||
if (requestEvent.cancelled()) {
|
||||
geyser.getLogger().debug("Connection request from " + ip + " was cancelled using the API!");
|
||||
connectionAttempts++;
|
||||
return false;
|
||||
|
|
|
@ -138,7 +138,6 @@ import org.geysermc.geyser.registry.type.ItemMappings;
|
|||
import org.geysermc.geyser.session.auth.AuthData;
|
||||
import org.geysermc.geyser.session.auth.BedrockClientData;
|
||||
import org.geysermc.geyser.session.cache.*;
|
||||
import org.geysermc.geyser.skin.FloodgateSkinUploader;
|
||||
import org.geysermc.geyser.text.GeyserLocale;
|
||||
import org.geysermc.geyser.text.MinecraftLocale;
|
||||
import org.geysermc.geyser.translator.inventory.InventoryTranslator;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[versions]
|
||||
base-api = "feature-floodgate-merge-1.1.0-SNAPSHOT"
|
||||
floodgate = "development-2.2.2-SNAPSHOT"
|
||||
floodgate = "development-3.0.0-SNAPSHOT"
|
||||
cumulus = "1.1.2"
|
||||
erosion = "1.0-20230406.174837-8"
|
||||
events = "1.1-SNAPSHOT"
|
||||
|
@ -28,7 +28,7 @@ folia = "1.19.4-R0.1-SNAPSHOT"
|
|||
viaversion = "4.9.2"
|
||||
adapters = "1.12-SNAPSHOT"
|
||||
commodore = "2.2"
|
||||
bungeecord = "a7c6ede"
|
||||
bungeecord = "1.20-R0.3-SNAPSHOT"
|
||||
velocity = "3.3.0-SNAPSHOT"
|
||||
viaproxy = "3.2.1"
|
||||
fabric-minecraft = "1.20.5"
|
||||
|
@ -108,7 +108,7 @@ neoforge-minecraft = { group = "net.neoforged", name = "neoforge", version.ref =
|
|||
|
||||
adapters-spigot = { group = "org.geysermc.geyser.adapters", name = "spigot-all", version.ref = "adapters" }
|
||||
adapters-paper = { group = "org.geysermc.geyser.adapters", name = "paper-all", version.ref = "adapters" }
|
||||
bungeecord-proxy = { group = "com.github.SpigotMC.BungeeCord", name = "bungeecord-proxy", version.ref = "bungeecord" }
|
||||
bungeecord-proxy = { group = "net.md-5", name = "bungeecord-proxy", version.ref = "bungeecord" }
|
||||
checker-qual = { group = "org.checkerframework", name = "checker-qual", version.ref = "checkerframework" }
|
||||
commodore = { group = "me.lucko", name = "commodore", version.ref = "commodore" }
|
||||
guava = { group = "com.google.guava", name = "guava", version.ref = "guava" }
|
||||
|
|
Loading…
Reference in a new issue