Package com.alessiodp.lastloginapi.api
Class LastLogin
- java.lang.Object
-
- com.alessiodp.lastloginapi.api.LastLogin
-
public class LastLogin extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LastLoginAPIgetApi()Get theLastLoginAPIinstancestatic booleanisFlagHook()Flag to know if LastLoginAPI has been hookedstatic voidsetApi(LastLoginAPI instance)Set the LastLoginAPI instance.
-
-
-
Method Detail
-
getApi
public static LastLoginAPI getApi() throws IllegalStateException
Get theLastLoginAPIinstance- Returns:
- the
LastLoginAPIinterface - Throws:
IllegalStateException- if LastLoginAPI has not been initialized, in other words, LastLoginAPI has not been loaded
-
setApi
public static void setApi(LastLoginAPI instance)
Set the LastLoginAPI instance. This should not be used.- Parameters:
instance- the LastLoginAPI instance.
-
isFlagHook
public static boolean isFlagHook()
Flag to know if LastLoginAPI has been hooked- Returns:
- true if the API has been hooked at least one time
-
-