Skip to content

Commit

Permalink
Remove removed util mention (was useless anyway)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iru21 committed May 19, 2023
1 parent d0134ef commit d6a6b4a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/kotlin/me/iru/data/Session.kt
Expand Up @@ -2,7 +2,6 @@ package me.iru.data

import me.iru.Authy
import me.iru.LoginType
import me.iru.utils.TeleportUtil
import org.bukkit.entity.Player
import java.lang.Long.parseLong
import java.sql.Timestamp
Expand All @@ -27,7 +26,6 @@ class Session {
val curtime = Timestamp(System.currentTimeMillis())
val timestamp = curtime.time
if((parseLong(session.toString()) + (authy.config.getInt("sessionExpiresIn") * 3600000) > timestamp) && p.address?.address?.hostAddress == authyPlayer.ip) {
TeleportUtil.teleportToValidPlace(p)
authManager.login(p, LoginType.Session)
return true
}
Expand Down

0 comments on commit d6a6b4a

Please sign in to comment.