NEW | Network Security [1.13.x - 1.21.x] AntiVPN and AntiProxy [FREE] 2.0.0-BETAv2
- The 2FA verification system via Discord has been improved.
- Now, when a player tries to join from a different IP, they may see an extra ":information_source: More Info" button in Discord.
This button lets the account owner review:
- The IP address of the login attempt
- Country and continent
- Exact login time
- Other accounts linked to the same IP
This information is visible **only** to the verified Discord user. No one else can view it.
# :technologist: For plugin/API developers:
- The `solicitarConfirmacion();` method has been updated to allow optional extra details.
- If data is `null`, the API gracefully falls back to the default confirmation mode (without the details button).
Code (Java):
CompletableFuture
<Boolean
> confirmacion
= DiscordConfirmationAPI.
solicitarConfirmacionConDetalles
(
playerUUID,
ip,
// null or real
country,
// null or real
continent,
// null or real
attemptTime,
// null or real
linkedAccounts
// null or real
)
;
Examples:
Code (Java):
String ip
=
"123.45.67.89"
;
String country
=
"US"
;
String continent
=
"North America"
;
String time
= LocalTime.
now
(
).
toString
(
)
;
String accounts
= DATABASE.
getPlayersLinkedToIP
(ip
)
;
DiscordConfirmationAPI
.
solicitarConfirmacionConDetalles
(playerUUID, ip, country, continent, time, accounts
)
.
thenAccept
(confirmed
->
{
if
(confirmed
)
{
// ----------
}
else
{
// ----------
}
}
)
;
Code (Java):
DiscordConfirmationAPI
.
solicitarConfirmacionConDetalles
(playerUUID,
null,
null,
null,
null,
null
)
.
thenAccept
(confirmed
->
{
if
(confirmed
)
{
// OK
}
}
)
;