official xauth update
This commit is contained in:
parent
0e305c3e34
commit
ad2856bac8
2 changed files with 13 additions and 11 deletions
20
pom.xml
20
pom.xml
|
@ -53,15 +53,15 @@
|
||||||
</resources>
|
</resources>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>2.0.2</version>
|
<version>2.0.2</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.5</source>
|
<source>1.5</source>
|
||||||
<target>1.5</target>
|
<target>1.5</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -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