misc: Removed version check
This commit is contained in:
parent
32360cc099
commit
37b7b615ba
@ -1,5 +1,5 @@
|
|||||||
group = io.github.4drian3d
|
group = io.github.4drian3d
|
||||||
version = 4.0.2
|
version = 4.0.3-SNAPSHOT
|
||||||
description = AuthMeReloaded Support for Velocity
|
description = AuthMeReloaded Support for Velocity
|
||||||
url = https://modrinth.com/plugin/authmevelocity
|
url = https://modrinth.com/plugin/authmevelocity
|
||||||
id = authmevelocity
|
id = authmevelocity
|
||||||
|
@ -20,7 +20,6 @@ package io.github._4drian3d.authmevelocity.velocity.listener.input;
|
|||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import com.velocitypowered.api.event.EventManager;
|
import com.velocitypowered.api.event.EventManager;
|
||||||
import com.velocitypowered.api.event.EventTask;
|
import com.velocitypowered.api.event.EventTask;
|
||||||
import com.velocitypowered.api.network.ProtocolVersion;
|
|
||||||
import com.velocitypowered.api.proxy.Player;
|
import com.velocitypowered.api.proxy.Player;
|
||||||
import com.velocitypowered.proxy.protocol.packet.TabCompleteResponse;
|
import com.velocitypowered.proxy.protocol.packet.TabCompleteResponse;
|
||||||
import io.github._4drian3d.authmevelocity.velocity.AuthMeVelocityPlugin;
|
import io.github._4drian3d.authmevelocity.velocity.AuthMeVelocityPlugin;
|
||||||
@ -45,9 +44,6 @@ public final class CompletionPacketListener implements Listener<PacketSendEvent>
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
final Player player = event.getPlayer();
|
final Player player = event.getPlayer();
|
||||||
if (player.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_13) < 0) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return EventTask.async(() -> {
|
return EventTask.async(() -> {
|
||||||
if (plugin.isLogged(player)) {
|
if (plugin.isLogged(player)) {
|
||||||
plugin.logDebug("PacketSendEvent | TabCompleteResponse | Player is already logged");
|
plugin.logDebug("PacketSendEvent | TabCompleteResponse | Player is already logged");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user