official xauth update
This commit is contained in:
parent
0e305c3e34
commit
ad2856bac8
2 changed files with 13 additions and 11 deletions
2
pom.xml
2
pom.xml
|
@ -88,7 +88,7 @@
|
|||
<dependency>
|
||||
<groupId>com.cypherx</groupId>
|
||||
<artifactId>xauth</artifactId>
|
||||
<version>3.1</version>
|
||||
<version>2.0.3</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
|
|
|
@ -26,12 +26,14 @@ import de.jaschastarke.minecraft.limitedcreative.Core;
|
|||
|
||||
public class xAuth implements CommunicationBridge {
|
||||
public static boolean isLoggedInNotGuest(Player player) {
|
||||
xAuthPlayer xpl = getAuth().getPlayer(player.getName());
|
||||
xAuthPlayer xpl = getAuth().getPlyrMngr().getPlayer(player.getName());
|
||||
boolean li = true;
|
||||
if (!xpl.isAuthenticated())
|
||||
li = false;
|
||||
else if (xpl.isGuest())
|
||||
li = false;
|
||||
else if (!getAuth().getPlyrMngr().checkSession(xpl))
|
||||
li = false;
|
||||
Core.debug("xAuth: "+player.getName()+": logged in not guest: "+li);
|
||||
return li;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue