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

20
pom.xml
View file

@ -53,15 +53,15 @@
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
@ -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;
}