Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
Ursprung
7edb43844c
Commit
1aee8a7a6c
@ -39,7 +39,10 @@ public final class BukkitAckSequenceProvider extends AckSequenceProvider {
|
|||||||
if (previousSequence == -1) {
|
if (previousSequence == -1) {
|
||||||
final int serverProtocolVersion = connection.getProtocolInfo().getServerProtocolVersion();
|
final int serverProtocolVersion = connection.getProtocolInfo().getServerProtocolVersion();
|
||||||
final long delay = serverProtocolVersion > ProtocolVersion.v1_8.getVersion() && serverProtocolVersion < ProtocolVersion.v1_14.getVersion() ? 2 : 1;
|
final long delay = serverProtocolVersion > ProtocolVersion.v1_8.getVersion() && serverProtocolVersion < ProtocolVersion.v1_14.getVersion() ? 2 : 1;
|
||||||
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new AckSequenceTask(connection, sequenceStorage), delay);
|
|
||||||
|
if (plugin.isEnabled()) {
|
||||||
|
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new AckSequenceTask(connection, sequenceStorage), delay);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren