A fork of The Altening Auth API 2.0 originally made by Trol. The objective of this fork is to improve the performance and readability for its users.
- Use JDK 1.8+
- Create a new
TheAlteningAuthentication
instance depending on the service wanted:
import com.thealtening.auth.TheAlteningAuthentication
TheAlteningAuthentication mojang = TheAlteningAuthentication.mojang();
TheAlteningAuthentication theAltening = TheAlteningAuthentication.theAltening();
- I case that you want to switch to another service, use the
updateService
method from your auth instance.
theAlteningAuth.updateService(AlteningServiceType.MOJANG);
theAlteningAuth.updateService(AlteningServiceType.THEALTENING);
Note: if the given service type is null
or the same as the current, no change will be made.
The fork as the original repository requires it is under GNU GPLv3.