Rewrote commands to work on self and from console. Jail will not work from console and was marked as false from console due to the summoner being teleported as well, console is not a summoner which lead to a crash. so use the jail command when in game.
Included a latency check if player has bad latency which should nerf out the false hits with ignore control. Set all anticheat cmds to false for console use due to using the gm cmds on a console did nothing.
Thanks to @jackpozi for more further code review on the tc counterpart of the module that is also brought over to this module.
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
Permanent silence casted on offender when using .anticheat jail or if auto jail is turned on, they will not be able to cast any spells to teleport out of there. Code Style Clean up review on the TC Side of the module thanks to @jackpoz that i was able to bring over to this module and remove magic number dealing with resurrection sickness.
.anticheat parole, it is recommended to use when player is in GM Jail. So how this works, it changes their homebind to their faction capitals, remove shackles spell and deletes the autoreport on them.
Remove Repeat, didn't hurt anything but it was a oversight and there will be no observer able difference of it repeating before, but just bad practice on my end.
Readjusted the Sql again, Removes the teleporthack_report collumns. It is pretty much worthless with its insane high count that would cause drag on the db and well not needed, it seems like a good idea at the time but it isnt, instead it will add a +1 to the total_reports collumn and the teleport and ignore control hacks will spam their own message once the reports hit default 70 or whatever the user has set. New detection type Ignore Control Hack, This is if a player is rooted or stunned, they are able to still move when effected.
New Detection Type for Teleport Hack, New SQL column, new conf to enable detection logging of teleport hack. Add notice since new hack detection requires the new teleport helpers introduced with c50f7feda