remove platform.canceltask

This commit is contained in:
creeper123123321 2021-04-29 14:42:44 -03:00 committed by GitHub
parent abb42fff72
commit 6af4a7f27a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,10 +44,6 @@ object AspirinPlatform : ViaPlatform<UUID> {
override fun runRepeatingSync(p0: Runnable, p1: Long): AspirinTask =
AspirinTask(eventLoop.scheduleAtFixedRate(p0, 0, p1 * 50L, TimeUnit.MILLISECONDS))
override fun cancelTask(p0: PlatformTask<*>?) {
(p0 as AspirinTask).obj.cancel(false)
}
override fun getDump(): JsonObject = JsonObject()
override fun kickPlayer(p0: UUID, p1: String): Boolean = false
override fun getApi(): ViaAPI<UUID> = AspirinViaAPI
@ -63,4 +59,4 @@ object AspirinPlatform : ViaPlatform<UUID> {
override fun getPluginVersion(): String = VersionInfo.VERSION
override fun isOldClientsAllowed(): Boolean = true
override fun isProxy(): Boolean = true
}
}