official xauth update

This commit is contained in:
Jascha Starke 2012-03-23 16:20:42 +01:00
parent 0e305c3e34
commit ad2856bac8
2 changed files with 13 additions and 11 deletions

View file

@ -88,7 +88,7 @@
<dependency>
<groupId>com.cypherx</groupId>
<artifactId>xauth</artifactId>
<version>3.1</version>
<version>2.0.3</version>
</dependency>
</dependencies>
<properties>

View file

@ -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;
}