forked from upstream/ProAntiTab
Fix 1.16.5 Support
This commit is contained in:
1 parent
3e6f8a5e7f
commit
2cf4574ff5
3 files changed
+3
-3
No files matched your search
@@ -56,7 +56,7 @@ public class BukkitLoader extends JavaPlugin {
|
||||
manager.registerEvents(new BukkitBlockCommandListener(), this);
|
||||
}
|
||||
|
||||
if(Reflection.getMinor() >= 18) manager.registerEvents(new BukkitAntiTabListener(), this);
|
||||
if(Reflection.getMinor() >= 16) manager.registerEvents(new BukkitAntiTabListener(), this);
|
||||
manager.registerEvents(new BukkitPlayerConnectionListener(), this);
|
||||
|
||||
registerCommand("proantitab", "pat");
|
||||
|
||||
@@ -24,7 +24,7 @@ public class BukkitAntiTabListener implements Listener {
|
||||
}
|
||||
|
||||
public static void updateCommands() {
|
||||
if(Reflection.getMinor() >= 18) Bukkit.getOnlinePlayers().forEach(Player::updateCommands);
|
||||
if(Reflection.getMinor() >= 16) Bukkit.getOnlinePlayers().forEach(Player::updateCommands);
|
||||
}
|
||||
|
||||
public static void handleTabCompletion(List<String> commands) {
|
||||
|
||||
@@ -15,7 +15,7 @@ public class PacketAnalyzer {
|
||||
public static final ConcurrentHashMap<UUID, Channel> INJECTED_PLAYERS = new ConcurrentHashMap<>();
|
||||
|
||||
private static final String PIPELINE_NAME = "pat-packethandler", HANDLER_NAME = "packet_handler";
|
||||
private static final PacketHandler PACKET_HANDLER = Reflection.getMinor() >= 18 ? new ModernPacketHandler() : new LegacyPacketHandler();
|
||||
private static final PacketHandler PACKET_HANDLER = Reflection.getMinor() >= 16 ? new ModernPacketHandler() : new LegacyPacketHandler();
|
||||
private static final HashMap<Player, String> PLAYER_INPUT_CACHE = new HashMap<>();
|
||||
|
||||
public static void injectAll() {
|
||||
|
||||
Reference in new issue
Block a user