In this feature, when detecting any form of violation, the anticheat logs
detailed information into a folder within the plugin named
logs. If this feature is enabled, it will create a .txt file (named with the day) with comprehensive data related to the specific violation from all users.
The
time zone and
format can be
freely customized in the 'config.yml' configuration file. If the default value is chosen, it will
automatically utilize the system's time zone and format to show.
Configuration in config.yml:
Code (YAML):
## Logs
# Create a file in 'FoxAddition/logs/' to store all alerts.
logs
:
# Do you want to enable this feature?
enable
: true
# Define your preferred timezone to display in the file.
# You can find your timezone from the list of IANA time zones:
#
# https://www.iana.org/time-zones
#
# Alternatively, you can use "auto" to automatically detect the
# current timezone.
timezone
: auto
# Customize the time format in the file.
# Default:
#
# yyyy-MM-dd HH:mm:ss
timeformat
: yyyy-MM-dd HH:mm:ss
# Cleanup settings for log files.
# This only clean when the plugin starts.
cleanup
:
# Enable automatic log cleanup after a specified number of days?
enable
: true
# Specify the number of days to retain log files before cleanup.
days
: 7
Example how this show in logs:
Code (Text):
[2023-07-16 00:24:59] [ALERT] Player detected FastBow (Type: Lenience) [lenience:200/200] [interval:220/950] [vls:1(+1)]
[2023-07-16 00:25:00] [ALERT] Player detected FastBow (Type: Lenience) [lenience:200/200] [interval:281/950] [vls:2(+1)]
[2023-07-16 00:25:00] [ALERT] Player detected FastBow (Type: Lenience) [lenience:200/200] [interval:693/950] [vls:3(+1)]
[2023-07-16 00:29:33] [ALERT] Player detected Reach [in:horizontal] [distance:5.152102690501036/3.75] [vls:1(+1)]
[2023-07-16 00:29:33] [ALERT] Player detected Reach [in:horizontal] [distance:5.152102690501036/3.8676000013947487] [vls:2(+1)]
[2023-07-16 00:32:15] [ALERT] Player detected Phase [Block:GRASS] [loc:-101,7, 69,2, 230,6] [vls:1(+1)]
[2023-07-16 00:32:15] [ALERT] Player detected Phase [Block:GRASS] [loc:-101,7, 69,2, 230,6] [vls:2(+1)]
[2023-07-16 00:32:15] [ALERT] Player detected Phase [Block:GRASS] [loc:-101,7, 69,2, 230,6] [vls:3(+1)]
[2023-07-16 00:32:15] [ALERT] Player detected Phase [Block:GRASS] [loc:-101,7, 69,2, 230,6] [vls:4(+1)]