mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-29 19:01:22 +01:00
Add summary log message about added packet level hooks.
This commit is contained in:
parent
616e5436a2
commit
a5ec614444
@ -1,5 +1,6 @@
|
|||||||
package fr.neatmonster.nocheatplus.net.protocollib;
|
package fr.neatmonster.nocheatplus.net.protocollib;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -12,6 +13,7 @@ import com.comphenix.protocol.events.PacketAdapter;
|
|||||||
|
|
||||||
import fr.neatmonster.nocheatplus.components.DisableListener;
|
import fr.neatmonster.nocheatplus.components.DisableListener;
|
||||||
import fr.neatmonster.nocheatplus.logging.LogUtil;
|
import fr.neatmonster.nocheatplus.logging.LogUtil;
|
||||||
|
import fr.neatmonster.nocheatplus.utilities.StringUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Quick and dirty ProtocolLib setup.
|
* Quick and dirty ProtocolLib setup.
|
||||||
@ -43,6 +45,13 @@ public class ProtocolLibComponent implements DisableListener{
|
|||||||
LogUtil.logWarning(t); // TODO: Maybe temporary.
|
LogUtil.logWarning(t); // TODO: Maybe temporary.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!registeredPacketAdapters.isEmpty()) {
|
||||||
|
List<String> names = new ArrayList<String>(registeredPacketAdapters.size());
|
||||||
|
for (PacketAdapter adapter : registeredPacketAdapters) {
|
||||||
|
names.add(adapter.getClass().getSimpleName());
|
||||||
|
}
|
||||||
|
LogUtil.logInfo("[NoCheatPlus] Available packet level hooks: " + StringUtil.join(names, " | "));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user