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>
|
<dependency>
|
||||||
<groupId>com.cypherx</groupId>
|
<groupId>com.cypherx</groupId>
|
||||||
<artifactId>xauth</artifactId>
|
<artifactId>xauth</artifactId>
|
||||||
<version>3.1</version>
|
<version>2.0.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -26,12 +26,14 @@ import de.jaschastarke.minecraft.limitedcreative.Core;
|
||||||
|
|
||||||
public class xAuth implements CommunicationBridge {
|
public class xAuth implements CommunicationBridge {
|
||||||
public static boolean isLoggedInNotGuest(Player player) {
|
public static boolean isLoggedInNotGuest(Player player) {
|
||||||
xAuthPlayer xpl = getAuth().getPlayer(player.getName());
|
xAuthPlayer xpl = getAuth().getPlyrMngr().getPlayer(player.getName());
|
||||||
boolean li = true;
|
boolean li = true;
|
||||||
if (!xpl.isAuthenticated())
|
if (!xpl.isAuthenticated())
|
||||||
li = false;
|
li = false;
|
||||||
else if (xpl.isGuest())
|
else if (xpl.isGuest())
|
||||||
li = false;
|
li = false;
|
||||||
|
else if (!getAuth().getPlyrMngr().checkSession(xpl))
|
||||||
|
li = false;
|
||||||
Core.debug("xAuth: "+player.getName()+": logged in not guest: "+li);
|
Core.debug("xAuth: "+player.getName()+": logged in not guest: "+li);
|
||||||
return li;
|
return li;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue