1
0

Arcade fix! Now its possible to run the server

This commit is contained in:
labalityowo
2023-05-20 13:13:21 +07:00
parent b4f55262b4
commit 91e871ea5f
11 changed files with 162 additions and 188 deletions

View File

@ -217,6 +217,8 @@ public class TwoFactorAuth extends MiniClientPlugin<TwoFactorData>
TwoFactorData data = Get(player);
/*
if (data.getLastLoginIp().isPresent() && player.getAddress().getAddress().toString().substring(1).equals(data.getLastLoginIp().get()))
{
player.sendMessage(F.main("2FA", "Authenticated"));
@ -237,17 +239,20 @@ public class TwoFactorAuth extends MiniClientPlugin<TwoFactorData>
runSync(() -> setup2FA(event.getPlayer()));
}
}
*/
}
@EventHandler
public void onQuit(PlayerQuitEvent event)
{
/*
Player player = event.getPlayer();
if (setupData.remove(player.getUniqueId()) != null)
{
player.setItemInHand(null);
}
authenticating.remove(player.getUniqueId());
*/
}
@EventHandler(priority = EventPriority.LOWEST)