forked from TuxCoding/FastLogin
@@ -2,9 +2,19 @@ package com.github.games647.fastlogin.core;
|
||||
|
||||
public enum PremiumStatus {
|
||||
|
||||
PREMIUM,
|
||||
PREMIUM("Premium"),
|
||||
|
||||
CRACKED,
|
||||
CRACKED("Cracked"),
|
||||
|
||||
UNKNOWN
|
||||
UNKNOWN("Unknown");
|
||||
|
||||
private final String readableName;
|
||||
|
||||
PremiumStatus(String readableName) {
|
||||
this.readableName = readableName;
|
||||
}
|
||||
|
||||
public String getReadableName() {
|
||||
return readableName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ public class RateLimiter {
|
||||
/**
|
||||
* Ask if access is allowed. If so register the request.
|
||||
*
|
||||
* @return true if allowed
|
||||
* @return true if allowed - false otherwise without any side effects
|
||||
*/
|
||||
public boolean tryAcquire() {
|
||||
// current time millis is not monotonic - it can jump back depending on user choice or NTP
|
||||
|
||||
Reference in New Issue
Block a user