Improve check logic
This commit is contained in:
parent
395f8f825f
commit
b5b435d398
@ -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{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user