Skip to content

Commit 0a1fbc8

Browse files
committed
Add async authenticate function option
1 parent 315a02a commit 0a1fbc8

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Phoenix-API (Version: 1.8.6)
1+
# Phoenix-API (Version: 1.8.12)
22
This is the API for Phoenix & pxQueue!
33

44
## Installing
@@ -27,7 +27,7 @@ Add this to your `pom.xml` under `<dependencies>`:
2727
<dependency>
2828
<groupId>xyz.refinedev.phoenix</groupId>
2929
<artifactId>pxAPI</artifactId>
30-
<version>1.8.6</version>
30+
<version>1.8.12</version>
3131
<scope>provided</scope>
3232
</dependency>
3333
```

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<groupId>xyz.refinedev.phoenix</groupId>
1616
<artifactId>pxAPI</artifactId>
17-
<version>1.8.6</version>
17+
<version>1.8.12</version>
1818

1919
<properties>
2020
<maven.compiler.source>1.8</maven.compiler.source>

src/main/java/xyz/refinedev/phoenix/utils/auth/api/Authenticator.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,20 @@
88
*/
99
public interface Authenticator {
1010

11-
public String getName();
11+
String getName();
1212

13-
public void setup(Player player);
13+
void setup(Player player);
1414

15-
public boolean authenticate(Player player, String input);
15+
boolean authenticate(Player player, String input);
1616

17-
public boolean canSetup(Player player);
17+
boolean canSetup(Player player);
1818

19-
public boolean canAuthenticate(Player player);
19+
boolean canAuthenticate(Player player);
2020

21-
public boolean isEnabled();
21+
boolean isEnabled();
22+
23+
default boolean isAsync() {
24+
return false;
25+
}
2226

2327
}

0 commit comments

Comments
 (0)