Skip to content

Commit

Permalink
Update FakeOnlinePlayer.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Jul 8, 2023
1 parent 3cdc5b6 commit 7706331
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ import org.bukkit.util.RayTraceResult
import org.bukkit.util.Vector
import org.jetbrains.annotations.Contract
import xyz.xenondevs.nova.integration.permission.PermissionManager
import java.net.InetAddress
import java.net.InetSocketAddress
import java.util.*

Expand Down Expand Up @@ -183,7 +184,7 @@ class FakeOnlinePlayer(
throw UnsupportedOperationException("Player is not online")
}

override fun banIp(reason: String?, expires: Date?, source: String?, kickPlayer: Boolean): BanEntry<InetSocketAddress>? {
override fun banIp(reason: String?, expires: Date?, source: String?, kickPlayer: Boolean): BanEntry<InetAddress>? {
throw UnsupportedOperationException("Player is not online")
}

Expand Down Expand Up @@ -1166,6 +1167,10 @@ class FakeOnlinePlayer(
throw UnsupportedOperationException("Player is not online")
}

override fun playHurtAnimation(yaw: Float) {
throw UnsupportedOperationException("Player is not online")
}

override fun setCollidable(collidable: Boolean) {
throw UnsupportedOperationException("Player is not online")
}
Expand Down

0 comments on commit 7706331

Please sign in to comment.