From 6101a62918b413264cad76efdd5bf19f5cab56f2 Mon Sep 17 00:00:00 2001 From: Jascha Starke Date: Sat, 21 Sep 2013 23:23:40 +0200 Subject: [PATCH] AuthMe correct API-Hook --- .../minecraft/limitedcreative/hooks/AuthMeHooks.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/jaschastarke/minecraft/limitedcreative/hooks/AuthMeHooks.java b/src/main/java/de/jaschastarke/minecraft/limitedcreative/hooks/AuthMeHooks.java index a5add41..a0f511c 100644 --- a/src/main/java/de/jaschastarke/minecraft/limitedcreative/hooks/AuthMeHooks.java +++ b/src/main/java/de/jaschastarke/minecraft/limitedcreative/hooks/AuthMeHooks.java @@ -2,8 +2,7 @@ package de.jaschastarke.minecraft.limitedcreative.hooks; import org.bukkit.entity.Player; -import uk.org.whoami.authme.cache.auth.PlayerCache; - +import uk.org.whoami.authme.api.API; import de.jaschastarke.minecraft.limitedcreative.Hooks; import de.jaschastarke.minecraft.limitedcreative.LimitedCreative; @@ -12,7 +11,7 @@ public class AuthMeHooks { Hooks.IsLoggedIn.register(new PlayerCheckHooker.Check() { @Override public boolean test(Player player) { - boolean li = PlayerCache.getInstance().isAuthenticated(player.getName().toLowerCase()); + boolean li = API.isAuthenticated(player); if (plugin.isDebug()) // not nessesary, but so no string concation without debug needed plugin.getLog().debug("AuthMe: "+player.getName()+": logged in: "+li); return li;