DiffuseHyperion / InertiaAntiCheat

Stop people from using unwanted mods on your server!
Other
15 stars 6 forks source link

SUGGESTION: Show what element caused the kick on console #27

Closed Mrgaton closed 6 months ago

Mrgaton commented 6 months ago

i am having trouble making this to work so this feature would be nice to me and probably to anyone new that want this to work quickly

Mrgaton commented 6 months ago

image umm what i am doing wrong?

# Immediately kick players who do not have these mods in their modlist.
# Enabling debug will show the full modlist of players joining, allowing you to discover mod names.

whitelist = ["Applied Energistics 2"," AppleSkin"," Aquamirae"," Auto HUD"," BCLib"," Better End"," Better Nether"," Camera Overhaul"," Cardinal Components API (base)"," Cardinal Components API (entities)"," Chat Heads"," cloth-basic-math"," Cloth Config v11"," core"," toml"," mclib"," toml4j"," Comforts"," Croptopia"," Distant Horizons"," Dynamic Crosshair"," Eating Animation"," EpheroLib"," Fabric API"," Fabric API Base"," Fabric API Lookup API (v1)"," Fabric Biome API (v1)"," Fabric Block API (v1)"," Fabric BlockView API (v2)"," Fabric BlockRenderLayer Registration (v1)"," Fabric Client Tags"," Fabric Command API (v1)"," Fabric Command API (v2)"," Fabric Commands (v0)"," Fabric Containers (v0)"," Fabric Content Registries (v0)"," Fabric Convention Tags"," Fabric Crash Report Info (v1)"," Fabric Data Attachment API (v1)"," Fabric Data Generation API (v1)"," Fabric Dimensions API (v1)"," Fabric Entity Events (v1)"," Fabric Events Interaction (v0)"," Fabric Events Lifecycle (v0)"," Fabric Game Rule API (v1)"," Fabric Item API (v1)"," Fabric Item Group API (v1)"," Fabric Key Binding API (v1)"," Fabric Key Bindings (v0)"," Fabric Lifecycle Events (v1)"," Fabric Loot API (v2)"," Fabric Loot Tables (v1)"," Fabric Message API (v1)"," Fabric Mining Level API (v1)"," Fabric Model Loading API (v1)"," Fabric Models (v0)"," Fabric Networking API (v1)"," Fabric Networking (v0)"," Fabric Object Builder API (v1)"," Fabric Particles (v1)"," fabric-permissions-api"," Fabric Recipe API (v1)"," Fabric Registry Sync (v0)"," Fabric Renderer API (v1)"," Fabric Renderer - Indigo"," Fabric Renderer Registries (v1)"," Fabric Rendering Data Attachment (v1)"," Fabric Rendering Fluids (v1)"," Fabric Rendering (v0)"," Fabric Rendering (v1)"," Fabric Resource Conditions API (v1)"," Fabric Resource Loader (v0)"," Fabric Screen API (v1)"," Fabric Screen Handler API (v1)"," Fabric Sound API (v1)"," Fabric Transfer API (v1)"," Fabric Transitive Access Wideners (v1)"," Fabric Loader"," FabricSkyBoxes"," Forge Config API Port"," GeckoLib 4"," Iceberg"," Immersive Aircraft"," Indium"," InertiaAntiCheat"," Inventory Sorter"," glsl-transformer"," Iris"," OpenJDK 64-Bit Server VM"," Kirin UI"," Kyrpt Config"," Legendary Tooltips"," Lithium"," Memory Leak Fix"," Minecraft"," MixinExtras"," Naturalist"," Obscure API"," jcpp"," antlr4-runtime"," MathParser.org-mXparser"," Presence Footsteps"," Prism"," 3d-Skin-Layers"," Sodium"," Sound Physics Remastered"," SpectreLib"," Starlight"," Energy"," Simple Voice Chat"," WunderLib"," YetAnotherConfigLibExtensions"]
DiffuseHyperion commented 6 months ago
  1. This doesn't look like an error message caused by this mod. Can you show the full kick message and console logs?
  2. Try using modlists instead of a giant whitelist. See here
Mrgaton commented 6 months ago

I just copy pasted the mods that showed up on the console when the client loged in

Mrgaton commented 6 months ago

Oh i see I think I putted a space in some nanes

OmaigatTER commented 6 months ago

there is a way to disable the client having to hash all the mods? because it takes a bit to do

OmaigatTER commented 6 months ago

it takes so much that the client gets kicked out from the grace time :c

OmaigatTER commented 6 months ago

i even tried to put it to 10 seconds but it takes around 20 and I don't want to wait that much every time I join the server

DiffuseHyperion commented 6 months ago

Oh i see I think I putted a space in some nanes

Assuming this is resolved so closing this issue

there is a way to disable the client having to hash all the mods? because it takes a bit to do

Weird that it's taking so long, since in the alpha versions the client doesn't hash anything, it just sends a list of all loaded mod names to the server. This should be nearly instantaneous, so not sure why its taking so long. Try enabling debug mode and see if its the client or server being slow, and open a new issue :)

Mrgaton commented 6 months ago

On the console it shows the mod pack hahs

Mrgaton commented 6 months ago
[20:06:40] [Netty Server IO #2/INFO]: [InertiaAntiCheat] literal{Mrgaton} is joining with the following modlist: [Applied Energistics 2, AppleSkin, Aquamirae, Auto HUD, BCLib, Better End, Better Nether, Camera Overhaul, Cardinal Components API (base), Cardinal Components API (entities), Chat Heads, cloth-basic-math, Cloth Config v11, core, toml, mclib, toml4j, Comforts, Croptopia, Distant Horizons, Dynamic Crosshair, Eating Animation, EpheroLib, Fabric API, Fabric API Base, Fabric API Lookup API (v1), Fabric Biome API (v1), Fabric Block API (v1), Fabric BlockView API (v2), Fabric BlockRenderLayer Registration (v1), Fabric Client Tags, Fabric Command API (v1), Fabric Command API (v2), Fabric Commands (v0), Fabric Containers (v0), Fabric Content Registries (v0), Fabric Convention Tags, Fabric Crash Report Info (v1), Fabric Data Attachment API (v1), Fabric Data Generation API (v1), Fabric Dimensions API (v1), Fabric Entity Events (v1), Fabric Events Interaction (v0), Fabric Events Lifecycle (v0), Fabric Game Rule API (v1), Fabric Item API (v1), Fabric Item Group API (v1), Fabric Key Binding API (v1), Fabric Key Bindings (v0), Fabric Lifecycle Events (v1), Fabric Loot API (v2), Fabric Loot Tables (v1), Fabric Message API (v1), Fabric Mining Level API (v1), Fabric Model Loading API (v1), Fabric Models (v0), Fabric Networking API (v1), Fabric Networking (v0), Fabric Object Builder API (v1), Fabric Particles (v1), fabric-permissions-api, Fabric Recipe API (v1), Fabric Registry Sync (v0), Fabric Renderer API (v1), Fabric Renderer - Indigo, Fabric Renderer Registries (v1), Fabric Rendering Data Attachment (v1), Fabric Rendering Fluids (v1), Fabric Rendering (v0), Fabric Rendering (v1), Fabric Resource Conditions API (v1), Fabric Resource Loader (v0), Fabric Screen API (v1), Fabric Screen Handler API (v1), Fabric Sound API (v1), Fabric Transfer API (v1), Fabric Transitive Access Wideners (v1), Fabric Loader, FabricSkyBoxes, Forge Config API Port, GeckoLib 4, Iceberg, Immersive Aircraft, Indium, InertiaAntiCheat, Inventory Sorter, glsl-transformer, Iris, OpenJDK 64-Bit Server VM, Kirin UI, Kyrpt Config, Legendary Tooltips, Lithium, Memory Leak Fix, Minecraft, MixinExtras, Naturalist, Obscure API, jcpp, antlr4-runtime, MathParser.org-mXparser, Presence Footsteps, Prism, 3d-Skin-Layers, Sodium, Sound Physics Remastered, SpectreLib, Starlight, Energy, Simple Voice Chat, WunderLib, YetAnotherConfigLibExtensions]
[20:06:40] [Thread-27/INFO]: [InertiaAntiCheat] literal{Mrgaton}'s modlist hash: PpWbK+RrmAj6YKAQr3ZIXQ==
Mrgaton commented 6 months ago

it says the modlist hash but that hash only the file names or the mod binary itself

DiffuseHyperion commented 6 months ago

it says the modlist hash but that hash only the file names or the mod binary itself

The hash of a list of file names