mirror of
https://github.com/RayzsYT/ProAntiTab.git
synced 2026-11-30 20:39:53 -05:00
Check Load
This commit is contained in:
1 parent
8e6c3f518f
commit
111e4778fe
2 files changed
+3
-1
No files matched your search
@@ -2,6 +2,7 @@ package de.rayzs.pat.api.netty.handlers;
|
||||
|
||||
import com.mojang.brigadier.suggestion.Suggestions;
|
||||
import de.rayzs.pat.api.storage.Storage;
|
||||
import de.rayzs.pat.plugin.BukkitLoader;
|
||||
import de.rayzs.pat.plugin.logger.Logger;
|
||||
import de.rayzs.pat.api.netty.*;
|
||||
import org.bukkit.entity.Player;
|
||||
@@ -58,7 +59,7 @@ public class ModernPacketHandler implements PacketHandler {
|
||||
if((input.length() < 1 || cancelsBeforeHand) && Reflection.isWeird())
|
||||
return false;
|
||||
|
||||
if(spaces > 1 && cancelsBeforeHand) {
|
||||
if(spaces > 1 && cancelsBeforeHand || !BukkitLoader.isLoaded()) {
|
||||
suggestions.getList().clear();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -53,6 +53,7 @@ public class BukkitLoader extends JavaPlugin {
|
||||
PluginManager manager = getServer().getPluginManager();
|
||||
|
||||
if(!Storage.ConfigSections.Settings.HANDLE_THROUGH_PROXY.ENABLED) {
|
||||
loaded = true;
|
||||
GroupManager.initialize();
|
||||
PacketAnalyzer.injectAll();
|
||||
} else BackendUpdater.handle();
|
||||
|
||||
Reference in new issue
Block a user