- Now if a user tries to access an account which is not allowed due to the difference in country, if they try more than 3 times in a period of 5 minutes, their IP is added to the blacklist, in this way many requests to the API making it more viable in the long term.
- Changes in config.yml
Code (YAML):
# Personalize the messages to your liking, if you want to use color code it is with "§"
messages:
ip-blocked
:
"Acceso denegado: IP bloqueada. ¿Cree que fue un error? discord: discord.supernovamc.online"
country-blocked
:
"Acceso denegado: Conexiones desde tu país no están permitidas. ¿Cree que fue un error? discord: discord.supernovamc.online"
suspicious-activity
:
"Acceso denegado: Actividad sospechosa detectada. ¿Cree que fue un error? discord: discord.supernovamc.online"
player-registered
:
"Jugador registrado {player} desde {location}."
login-blocked
:
"Intento de inicio de sesión bloqueado para el jugador {player} desde {location}."
api-switch
:
"Cambiando a la siguiente API."
suspicious-connection
:
"ha sido agregada a la lista negra por intentos de inicio de sesión sospechosos."