Improve check logic
This commit is contained in:
@@ -23,7 +23,6 @@ public class LoginLocationFixListener implements Listener{
|
||||
@EventHandler
|
||||
public void onPlayerJoin(PlayerJoinEvent event) {
|
||||
Player player = event.getPlayer();
|
||||
if (!authmeApi.isRegistered(player.getName()) || !authmeApi.isAuthenticated(player)) {
|
||||
Material material = Material.matchMaterial("PORTAL");
|
||||
if(material == null){
|
||||
material = Material.matchMaterial("PORTAL_BLOCK");
|
||||
@@ -77,5 +76,4 @@ public class LoginLocationFixListener implements Listener{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user