mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-29 18:27:36 +02:00
Use JitPack and update API reference
This commit is contained in:
@ -81,7 +81,7 @@ Possible values: `Premium`, `Cracked`, `Unknown`
|
||||
* [CrazyLogin](https://dev.bukkit.org/bukkit-plugins/crazylogin/)
|
||||
* [LoginSecurity](https://dev.bukkit.org/bukkit-plugins/loginsecurity/)
|
||||
* [UltraAuth](https://dev.bukkit.org/bukkit-plugins/ultraauth-aa/)
|
||||
* [SodionAuth](https://github.com/Mohist-Community/SodionAuth)
|
||||
* [SodionAuth (2.0+)](https://github.com/Mohist-Community/SodionAuth)
|
||||
|
||||
### BungeeCord/Waterfall
|
||||
|
||||
|
Binary file not shown.
@ -235,12 +235,11 @@
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>red.mohist.sodionauth</groupId>
|
||||
<artifactId>SodionAuth-Bukkit</artifactId>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<groupId>com.github.Mohist-Community</groupId>
|
||||
<artifactId>SodionAuth</artifactId>
|
||||
<version>e3395df27a</version>
|
||||
<optional>true</optional>
|
||||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/lib/SodionAuth-Bukkit-2.0-API-only.jar</systemPath>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
@ -37,13 +37,17 @@ public class SodionAuthHook implements AuthPlugin<Player> {
|
||||
|
||||
@Override
|
||||
public boolean forceRegister(Player player, String password) {
|
||||
plugin.getLog().warn("AutoRegister is not implemented by SodionAuth yet.");
|
||||
plugin.getLog().warn("Disable it to prevent further issue!");
|
||||
return false;
|
||||
try{
|
||||
return SodionAuthApi.register(new BukkitPlayer(player), password);
|
||||
} catch (UnsupportedOperationException e){
|
||||
plugin.getLog().warn("Currently SodionAuth is not accepting forceRegister, " +
|
||||
"It may be caused by unsupported AuthBackend");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRegistered(String playerName) {
|
||||
return SodionAuthApi.isRegister(playerName);
|
||||
return SodionAuthApi.isRegistered(playerName);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user